Used as a mixin for dojox and AIR media
Calculates the current status of the playing media and fires the appropriate events.
See the dojox/av/_Media reference documentation for more information.
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.
The initial volume setting of the player. Acccepts between 0 and 1.
Setting to true tells the SWF to output log messages to Firebug.
Time in milliseconds between 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.
How often, in milliseconds to get an update of the video position.
Calculate media status, based on playhead movement, and onStop and onStart events
Checks that path is relative to HTML file or converts it to an absolute path.
Parameter | Type | Description |
---|---|---|
_url | undefined |
Ensures volume is less than one
Parameter | Type | Description |
---|---|---|
vol | number |
helper for subscribing to topics
Parameter | Type | Description |
---|---|---|
topic | undefined | |
method | undefined |
Fires a boolean to tell if media is paused for buffering or if buffering has finished
Parameter | Type | Description |
---|---|---|
isBuffering | Boolean |
Fires when the player is clicked Could be used to toggle play/pause, or do an external activity, like opening a new window.
Parameter | Type | Description |
---|---|---|
evt | Object |
Fires the amount of that the media has been downloaded. Number, 0-100
Parameter | Type | Description |
---|---|---|
percent | Number |
Fires when video ends Could be used to change pause button to play or show a post video graphic, like YouTube
Parameter | Type | Description |
---|---|---|
data | Object |
Fired when the player encounters an error
Parameter | Type | Description |
---|---|---|
data | Object | |
url | String |
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |
Fired when the SWF player has loaded NOT when the video has loaded
Parameter | Type | Description |
---|---|---|
mov | SWF |
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |
The video properties. Width, height, duration, etc.
Parameter | Type | Description |
---|---|---|
data | Object | |
evt | Object |
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |
Fires when the pause button is clicked
Parameter | Type | Description |
---|---|---|
data | Object |
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |
Fires when video starts and resumes
Parameter | Type | Description |
---|---|---|
data | Object |
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |
The status of the video from the SWF playing, stopped, bufering, etc.
Parameter | Type | Description |
---|---|---|
data | Object |
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |
The position of the playhead in seconds
Parameter | Type | Description |
---|---|---|
time | Float |
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |
Fires when video starts Good for setting the play button to pause during an autoPlay for example
Parameter | Type | Description |
---|---|---|
data | Object |
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |
Simple status
Parameter | Type | Description |
---|---|---|
data | Object |
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |
Fire when the Stop button is clicked
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |
Fired on SWF resize, or when its toggled between fullscreen.
Parameter | Type | Description |
---|---|---|
data | Object |
1 2 | console.warn( "ERROR-" +data.type.toUpperCase()+ ":" , data.info.code, " - URL:" , url); |