Class Index | File Index

Classes


Class gva.component.Html5Player


Extends .

Defined in: Html5Player.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<static>  
gva.component.Html5Player.EventType
Enumeration for player event types.
 
Monitors the viewport size so that the grid can flex.
Method Summary
Method Attributes Method Name and Description
 
Creates the markup for the video player and caches DOM queries for parts of the video player such as controls.
 
Creates and sets event listeners for seek and volume sliders
 
Removes the player from the DOM.
 
Resizes video element so controls are not on top to prevent flickering in IE.
 
initialize($context)
 
loadVideo(url)
Sets the src attribute loading the video.
 
Toggles mute for the video.
 
Handler for when the video's ready to play.
 
Handles end of video.
 
Handles changes to the video seek slider.
 
Handles mousedown (dragging) events for the seek slider.
 
Handles mouseup events after seeking has stopped.
 
Handler for when the video progress updates.
 
Handles changes to the sound panel slider.
 
Pauses the video.
 
play()
Toggles play/pause for the video.
 
Handles browser resize events to scale and reorient player elements.
 
setVolume(volume)
Sets the video volume.
 
timeFormat(seconds)
Formats time as MM:SS.
Class Detail
gva.component.Html5Player()
Field Detail
<static> gva.component.Html5Player.EventType
Enumeration for player event types.

viewportMonitor
Monitors the viewport size so that the grid can flex.
Method Detail
createBase()
Creates the markup for the video player and caches DOM queries for parts of the video player such as controls.

createSliders()
Creates and sets event listeners for seek and volume sliders

destroy()
Removes the player from the DOM.

IEResizeFix()
Resizes video element so controls are not on top to prevent flickering in IE.

initialize($context)
Parameters:
$context

loadVideo(url)
Sets the src attribute loading the video.
Parameters:
{String} url
The url for the video to be loaded.

muteToggle()
Toggles mute for the video.

onCanPlay()
Handler for when the video's ready to play.

onEnded()
Handles end of video.

onSeekChange()
Handles changes to the video seek slider.

onSeekStart()
Handles mousedown (dragging) events for the seek slider.

onSeekStop()
Handles mouseup events after seeking has stopped.

onVideoUpdate()
Handler for when the video progress updates. Updates the slider and numerical time displays.

onVolumeChange()
Handles changes to the sound panel slider.

pause()
Pauses the video.

play()
Toggles play/pause for the video.

resize()
Handles browser resize events to scale and reorient player elements.

setVolume(volume)
Sets the video volume.
Parameters:
{Number} volume
Integer volume value between 0 and 100.

{String} timeFormat(seconds)
Formats time as MM:SS.
Parameters:
{Number} seconds
Integer time (s) to format.
Returns:
{String} formattedTime containing formatted time.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Dec 22 2011 17:41:22 GMT-0800 (PST)