Function
Used as a mixin for dojox and AIR media
Calculates the current status of the playing media and fires the appropriate events.
Float
The initial volume setting of the player. Acccepts between 0 and 1.
Boolean
Whether the video automatically plays on load or not.
Number
Time in milliseconds that the video should be loaded before it will play. May pause and resume to build up buffer. Prevents stuttering. Note: Older FLVs, without a duration, cannot be buffered.
Number
Time in milliseconds bwteen the playhead time and loaded time that will trigger the buffer. When buffer is triggered, video will pause until the bufferTime amount is buffered. Note: Should be a small number, greater than zero.
Number
How often, in milliseconds to get an update of the video position.
String
The id of this widget and the id of the SWF movie.
Boolean
Setting to true tells the SWF to output log messages to Firebug.
read-only-Number
The percentage the media has downloaded; from 0-100
read-only-Object
The dojox.embed object
read-only-SWF
The SWF object. Methods are passed to this.
String
Whether the SWF can access the container JS
String
Whether SWF is restricted to a domain
String
The render type of the SWF
Boolean
Whether to allow the SWF to go to fullscreen
Function
Connect mediaStatus to the media.
Function
Returns the current time of the video Note: Consider the onPosition event, which returns the time at a set interval. Too many trips to the SWF could impact performance.
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
TODO: Return x/y of click 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
Function
Calculate media status, based on playhead movement, and onStop and onStart events TODO: Figure in real status from the media for more accurate results.
Function
Creates a generic event object.
Object
Function
helper for subscribing to topics
Function
Ensures volume is less than one
Function
Checks that path is relative to HTML file or convertes it to an absolute path.
Function
destroys flash
Object
Object