![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
videojs-contrib-media-sources
Advanced tools
Readme
A Media Source Extensions shim for video.js.
Media Source Extensions (MSE) is a W3C draft specification that makes it possible to feed data directly to a video element. MSE allows video developers to build functionality like adaptive streaming directly in javascript.
Lead Maintainer: Jon-Carlos Rivera @imbcmdth
Maintenance Status: Stable
Table of Contents generated with DocToc
On browsers that natively support Media Source Extensions, the HTML implementation will be used. If you're running in an environment without MSE, a Flash-backed polyfill will be used. Currently, the Flash polyfill only supports video content encoded in the FLV file format. For information on how FLVs are structured, Adobe hosts the latest version of the spec on their site.
The Flash polyfill attempts to balance throughput to the FLV with end-user responsiveness by asynchronously feeding bytes to the SWF at a fixed rate. By default, that rate is capped at 4MB/s. If you'd like to play higher bitrate content, you can adjust that setting:
// 8MB/s at 60fps
videojs.MediaSource.BYTES_PER_SECOND_GOAL = 8 * 1024 * 1024;
Setting the BYTES_PER_SECOND_GOAL
too high may lead to dropped frames during playback on slower computers.
Check out an example of the plugin in use in example.html.
You can configure some aspects of the MediaSource polyfill by specifying a hash of options when you construct it:
var mediaSource = new videojs.MediaSource({ mode: 'html5' });
Type: string
Values: 'auto'
, 'html5'
, 'flash'
Default Value: 'auto'
How to determine the MediaSources implementation to use. With the
default value of auto
, the presence of native MediaSources is
detected at construction time and they're used if available. Choosing
html5
or flash
will force the use of that respective MediaSource
implementation, even if it does not appear the browser supports it.
See LICENSE-APACHE2.
FAQs
A Media Source Extensions plugin for video.js
The npm package videojs-contrib-media-sources receives a total of 17,297 weekly downloads. As such, videojs-contrib-media-sources popularity was classified as popular.
We found that videojs-contrib-media-sources demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.