
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
stream-centre-player
Advanced tools
Player for video streams in StreamCentre by Qoollo.
npm install stream-centre-player
// if you use browserify
var Player = require("stream-centre-player");
var videoElement = document.getElementById('video-player'),
player = new Player(videoElement),
url = 'http://dash.edgesuite.net/envivio/EnvivioDash3/manifest.mpd';
player.initialize(url);
player.play();
<!-- If you just include script on your page -->
<script src="/node_modules/stream-centre-player/player.js"></script>
<script>
var videoElement = document.getElementById('video-player'),
player = new Qoollo.StreamCentre.Player(videoElement),
url = 'http://dash.edgesuite.net/envivio/EnvivioDash3/manifest.mpd';
</script>
Don't ask me where to get CefSharp with MSE. I had to compile it myself. MSE (Media Source Extensions) are mandatory - these are codecs to actually play video. But if you are here, so here's the way.
Install-Package Qoollo.StreamCentre.Player
// call js from C#
chromiumWebBrowser.GetBrowser().MainFrame.ExecuteJavaScriptAsync(code); // chromiumWebBrowser is CefSharp.Wpf.ChromiumWebBrowser
// subscribe for callbacks from js to C#
class BrowserCallback
{
public object Call(string method, Dictionary<string, object> arg)
{
// handle call from js
}
}
chromiumWebBrowser.RegisterJsObject("BrowserCallback", new BrowserCallback());
Just run default gulp task to start dev server with live reload.
gulp
All the source code is located at src/ directory. Everything in
dist/ directory is being overwritten on build, so don't do anything
there.
Currently StreamCentre supports MPEG-DASH video streams, so dash.js
is used under the hood. Source code is written in TypeScript and typings
for dash.js at src/dashjs.d.ts are written by me and, of course, those
typings only cover tiny percent of dash.js. You should see dash.js API docs
for actual dash.js APIs and add missing typings to src/dashjs.d.ts if you need.
TODO: add src/dashjs.d.ts to typings registry.
The following command builds and pushes npm and NuGet packages.
gulp publish
Pushing NuGet package requires NuGet Gallery API key. You should setup your local environment to know this key before publishing package.
node_modules/nuget/bin/NuGet.exe setApiKey YOUR_API_KEY
You can get YOUR_API_KEY at https://www.nuget.org/account
FAQs
Dash.js wrapper for easy-peasy usage
We found that stream-centre-player demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.