videojs-contrib-media-sources

WebJar for videojs-contrib-media-sources

License

License

Categories

Categories

IDE Development Tools JavaScript Languages
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

videojs-contrib-media-sources
Last Version

Last Version

4.7.2
Release Date

Release Date

Type

Type

jar
Description

Description

videojs-contrib-media-sources
WebJar for videojs-contrib-media-sources
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/videojs/videojs-contrib-media-sources

Download videojs-contrib-media-sources

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/videojs-contrib-media-sources/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>videojs-contrib-media-sources</artifactId>
    <version>4.7.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/videojs-contrib-media-sources/
implementation 'org.webjars.bower:videojs-contrib-media-sources:4.7.2'
// https://jarcasting.com/artifacts/org.webjars.bower/videojs-contrib-media-sources/
implementation ("org.webjars.bower:videojs-contrib-media-sources:4.7.2")
'org.webjars.bower:videojs-contrib-media-sources:jar:4.7.2'
<dependency org="org.webjars.bower" name="videojs-contrib-media-sources" rev="4.7.2">
  <artifact name="videojs-contrib-media-sources" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='videojs-contrib-media-sources', version='4.7.2')
)
libraryDependencies += "org.webjars.bower" % "videojs-contrib-media-sources" % "4.7.2"
[org.webjars.bower/videojs-contrib-media-sources "4.7.2"]

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.bower » global jar [4.3.0,5)
org.webjars.bower » mux.js jar [4.3.2]
org.webjars.bower : video.js jar [5.17.0,6),[6.2.0,7)
org.webjars.bower » webwackify jar [0.1.6]

Project Modules

There are no modules declared in this project.

videojs-media-sources

Notice: this project is deprecated and succeeded by videojs-http-streaming. VHS supports HLS and DASH and is built into video.js 7, see the video.js 7 blog post

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.

Maintenance Status: Stable

Table of Contents generated with DocToc

Getting Started

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.

Options

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' });

mode

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.

Release History

  • 1.0.0: throw an error if appends are called during an update
  • 0.3.0: Delegate SourceBuffer.abort() calls to the SWF
  • 0.2.0: Improve interactivity by batching communication with Flash.
  • 0.1.0: Initial release

License

See LICENSE-APACHE2.

org.webjars.bower

Video.js

Web Video Framework

Versions

Version
4.7.2