blackhydrogen / noop-sewi

Sana Encounter Web Interface (SEWI)
0 stars 1 forks source link

VideoResourceViewer improved, VideoControls now MediaControls #31

Closed TheFuzzy closed 10 years ago

TheFuzzy commented 10 years ago

VideoControls has been renamed to MediaControls for brevity; its purpose is now generalized for any task requiring a media control bar.

VideoResourceViewer now properly implements load(); it no longer triggers a 'DataLoaded' event. Instead, it will now load the video metadata only after load() is called, followed by the video itself.

MediaControls now displays the time elapsed and duration of the media. Simply use update() with the duration parameter set to change the duration displayed, and currentTime parameter to update the current elapsed time displayed.

VideoResourceViewer also implements the time display.