Global

Members

(constant) MediaSource

An emulation of the MediaSource API so that we can support native and non-native functionality such as flash and video/mp2t videos. returns an instance of HtmlMediaSource or FlashMediaSource depending on what is supported and what options are passed in.
Source:

(constant) URL

A wrapper around the native URL for our MSE object implementation, this object is exposed under videojs.URL
Source:

Methods

get() → {Double}

Return the presentation duration.
Source:
Returns:
the duration of the media in seconds
Type
Double

open(msObjectURL, swfId)

Provide a method for a swf object to notify JS that a media source is now open.
Parameters:
Name Type Description
msObjectURL String string referencing the MSE Object URL
swfId String the swf id
Source:

set(value) → {Double}

Set the presentation duration.
Parameters:
Name Type Description
value Double the duration of the media in seconds
Source:
Returns:
the duration of the media in seconds
Type
Double

supportsNativeMediaSources() → {Boolean}

Check to see if the native MediaSource object exists and supports an MP4 container with both H.264 video and AAC-LC audio.
Source:
Returns:
if native media sources are supported
Type
Boolean

Worker(self)

Our web wroker interface so that things can talk to mux.js that will be running in a web worker. the scope is passed to this by webworkify.
Parameters:
Name Type Description
self Object the scope for the web worker
Source: