Function
Inserts a Flash FLV video into the HTML page and provides methods and events for controlling the video. Also plays the H264/M4V codec with a little trickery: change the '.M4V' extension to '.flv'.
markup: <div id="vid" initialVolume=".7", mediaUrl="../resources/Grog.flv" dojoType="dojox.av.FLVideo"></div> programmatic: new dojox.av.FLVideo({ initialVolume:.7, mediaUrl:"../resources/Grog.flv" }, "vid"); mediaUrl: String REQUIRED: The Url of the video file that will be played. NOTE: Must be either an absolute URL or relative to the HTML file. Relative paths will be converted to abslute paths
Uri
The path to the video player SWF resource
Function
Initialize the media.
Function
Plays the video. If an url is passed in, plays the new link.
Function
Pauses the video
Function
Goes to the time passed in the argument
Function
Sets the volume of the video to the time in the argument - between 0 - 1.
Float
Function
Fired when the SWF player has loaded NOT when the video has loaded
Function
Fires the amount of that the media has been downloaded. Number, 0-100
Function
Fires when the player is clicked Could be used to toggle play/pause, or do an external activity, like opening a new window.
Function
Fired on SWF resize, or when its toggled between fullscreen.
Function
The video properties. Width, height, duration, etc. NOTE: if data is empty, this is an older FLV with no meta data. Duration cannot be determined. In original FLVs, duration could only be obtained with Flash Media Server. NOTE: Older FLVs can still return width and height and will do so on a second event call
Function
The position of the playhead in seconds
Function
Fires when video starts Good for setting the play button to pause during an autoPlay for example
Function
Fires when video starts and resumes
Function
Fires when the pause button is clicked
Function
Fires when video ends Could be used to change pause button to play or show a post video graphic, like YouTube
Function
Fire when the Stop button is clicked TODO: This is not hooked up yet and shouldn't fire.
Function
Fires a boolean to tell if media is paused for buffering or if buffering has finished
Function
Fired when the player encounters an error
console.warn("ERROR-"+data.type.toUpperCase()+":", data.info.code, " - URL:", url);
Function
Simple status
Function
The status of the video from the SWF playing, stopped, bufering, etc.
Function
Fired on page resize
Function
Checks that there is a proper buffer time between current playhead time and the amount of data loaded. Works only on FLVs with a duration (not older). Pauses the video while continuing download.
Function
Helper function to fire onPosition, check download progress, and check buffer.
Function
Function
Object
Object