new MultiVideoSource(renderer, options)
The MultiVideoSource allows for playback of video files in the Mixer project.
And optimizes video playback in online scenarios
The MultiVideoSource allows for playback of video files in the Mixer project.
It is very similar to the regular videosource, however it used multiple references to the videofile.
In doing so it allows for very fast jumping through the video even when it is loading from a remote server.
The main features are random jumping and a cue list, allowing for smart referincing in video files.
Parameters:
Name | Type | Description |
---|---|---|
renderer |
GlRenderer | GlRenderer object |
options |
Object | JSON Object, with src (file path) and cues, cuepoints in seconds |
- Implements:
- Source:
Example
let myMultiVideoSource = new MultiVideoSource( renderer, { src: 'myfile.mp4', cues: [ 0, 10, 20, 30 ] } );
let myMultiVideoSource = new MultiVideoSource( renderer, { src: 'myfile.mp4', cues: [ 0, 10, 20, 30 ] } );
myMultiVideoSource.jump();
Members
video
exposes the HTMLMediaElement Video for listeners and control
- Source:
Methods
currentTime(time)
skip to time (in seconds) or gets currentTime
in seconds
Parameters:
Name | Type | Description |
---|---|---|
time |
float | time in seconds |
- Source:
duration()
give the duration of the video in seconds (cannot be changed)
- Source:
pause()
pauses the video
- Source:
paused()
returns true then the video is paused. False otherwise
- Source:
play()
start the current video
- Source:
src(Videofile)
gets or sets source @file for the MultiVideoSource
file has to be compatible with HTMLMediaElement Video ie. webm, mp4 etc.
We recommend mp4
Parameters:
Name | Type | Description |
---|---|---|
Videofile |
file | full path to file |
- Source: