Overview
The MediaPlayer class provides the controls for playing media.
It is used in combination with the Media and MediaViewer
classes to display and control media playing.
See again Also:
Media MediaViewer,
Profile: common
Attribute Summary
| name | type | description |
|---|---|---|
| Public | ||
| autoPlay | Boolean |
If If Profile: commom |
| balance | Number |
Defines the balance, or left right setting, of the audio output. More: [+]Defines the balance, or left right setting, of the audio output.
Value ranges continuously from Profile: common |
| BUFFERING | Integer |
Status value when player is buffering. More: [+]Status value when player is buffering. Buffering may occur when player is paused or playing Profile: common |
| currentCount | Number |
Defines the current number of time the media has repeated More: [+]Defines the current number of time the media has repeated Profile: common |
| currentTime | Duration |
Defines the current media time More: [+]Defines the current media time Profile: common |
| fader | Number |
The fader, or forward and back setting, of audio output on 4+ channel output. More: [+]The fader, or forward and back setting, of audio output
on 4+ channel output.
value ranges continuously from Profile: common |
| media | Media |
Defines the source |
| mute | Boolean |
Equals Equals
See again Also:
Profile: common |
| onBuffering | function(:Duration):Void |
Invoked when the player is buffering data. More: [+]Invoked when the player is buffering data.
Profile: common |
| onEndOfMedia | function():Void |
Invoked when the player reaches the end of media More: [+]Invoked when the player reaches the end of media Profile: common |
| onError | function(:MediaError):Void |
The The
See again Also:
Profile: common |
| onRepeat | function():Void |
Invoked when the player reaches the end of media. More: [+] |
| onStalled | function(:Duration):Void |
Invoked when the player has stalled because it was not receiving data fast enough to continue playing. More: [+]Invoked when the player has stalled
because it was not receiving data fast enough to continue playing.
Profile: common |
| paused | Boolean |
Indicated if the player has been paused, either programatically, by the user, or because the media has finished playing More: [+]Indicated if the player has been paused, either programatically, by the user, or because the media has finished playing Profile: common |
| PAUSED | Integer |
Status value when player is paused More: [+]Status value when player is paused Profile: common |
| PLAYING | Integer |
status value when player is playing More: [+]status value when player is playing Profile: common |
| rate | Number |
Defines the rate at which the media is being played. More: [+]Defines the rate at which the media is being played.
Rate Profile: common |
| REPEAT_FOREVER | Integer |
Value of Value of Profile: common |
| REPEAT_NONE | Number |
Value of Value of Profile: common |
| repeatCount | Number |
Defines the number of times the media should repeat. More: [+]Defines the number of times the media should repeat. if repeatCount is 1 the media will play once. if it is REPEAT_FOREVER, it will repeat indefinitely In this implementation, these are the only values currently supported Profile: common |
| STALLED | Integer |
Status value when player is stalled. More: [+]Status value when player is stalled.
See again Also:
Profile: common |
| startTime | Duration |
Defines the time offset where media should start playing, or restart from when repeating More: [+]Defines the time offset where media should start playing, or restart from when repeating Profile: common |
| status | Integer |
Current status of player More: [+]Current status of player Profile: common |
| stopTime | Duration |
Defines the time offset where media should stop playing or restart when repeating More: [+]Defines the time offset where media should stop playing or restart when repeating Profile: common |
| supportsMultiViews | Boolean |
Indicates if this player can have multiple views associated with it. More: [+]Indicates if this player can have multiple views associated with it.
See again Also:
Profile: common |
| timers | MediaTimer[] |
Defines the media timers for this player More: [+]Defines the media timers for this player Profile: common |
| volume | Number |
Defines the volume at which the media is being played. More: [+]Defines the volume at which the media is being played.
Profile: common |
| Protected | ||
Inherited Attributes
Function Summary
- public pause() : Boolean
-
Pauses playing
More: [+]Pauses playing
-
Returns
- Boolean
Profile: common
- public play() : Boolean
-
Starts or resumes playing
More: [+]Starts or resumes playing
-
Returns
- Boolean
Profile: common