Class Index | File Index

Classes


Class gva.component.VideoPlayer


Extends .

Defined in: VideoPlayer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<static>  
gva.component.VideoPlayer.CONFIG
Flash paramters.
<static>  
gva.component.VideoPlayer.EventType
Enumeration for player event types.
Method Summary
Method Attributes Method Name and Description
 
Attempts to create and initialize the default video player.
 
Creates and initializes the fallback video player
 
initialize($context)
 
loadEpisode(episode)
Tells the currently embedded player to play a given episode
 
Handles end of video.
 
onVideoEvent(event)
Handles all flash player video events - listed here for reference.
<static>  
gva.component.VideoPlayer.onVideoEvent(type)
ExternalInterface event handler for Flash video player media events
 
Pauses the loaded episode.
 
play()
Plays the loaded episode.
 
Calls resize on the html5 player if present.
Class Detail
gva.component.VideoPlayer()
Field Detail
<static> gva.component.VideoPlayer.CONFIG
Flash paramters.

<static> gva.component.VideoPlayer.EventType
Enumeration for player event types.
Method Detail
createDefaultPlayer()
Attempts to create and initialize the default video player. If this fails, the fallback is embedded instead via #createFallbackPlayer

createFallbackPlayer()
Creates and initializes the fallback video player

initialize($context)
Parameters:
$context

loadEpisode(episode)
Tells the currently embedded player to play a given episode
Parameters:
{gva.vo.Episode} episode
The episode to play. If not supplied then this._pendingEpisode will be attempted.

onEpisodeComplete()
Handles end of video.

onVideoEvent(event)
Handles all flash player video events - listed here for reference.
Parameters:
{Flash video event} event
Any event broadcasted from the flash player.

<static> gva.component.VideoPlayer.onVideoEvent(type)
ExternalInterface event handler for Flash video player media events
Parameters:
{Flash video event} type
The type of video playback event.

pause()
Pauses the loaded episode.

play()
Plays the loaded episode.

resize()
Calls resize on the html5 player if present.

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