| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
The IMediaPlaybackController allows controlling audio and video playback.
To create a media playback controller for an existing sound asset, use the createAudioController()
method on the IAudioPlaybackControllerFactory interface. To create a media playback controller for an existing
audio narration track, use the createPlaybackController() method on the IAudioTrack interface.
To create a media playback controller for an existing MovieClip, use the createEmbeddedVideoController()
method on the IVideoPlaybackControllerFactory interface. To create a media playback controller for an FLV/MP4 video, use the
createExternalVideoController() method on the IVideoPlaybackControllerFactory interface.
To obtain a media playback controller from an existing video view use the controller property on
the IVideoView interface.
duration:Number [read-only]
| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
Returns the total duration of the media including all loops.
Implementation public function get duration():NumberloopDuration:Number [read-only]
| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
The duration of the current loop.
Implementation public function get loopDuration():NumberloopPosition:Number [read-only]
| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
The position within the current loop.
Implementation public function get loopPosition():NumberplaybackState:String [read-only]
| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
The current playback state of the controller.
See the ispring.presenter.player.media.PlaybackState constants for more details.
Implementation public function get playbackState():StringSee also
position:Number [read-only]
| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
Returns the current playback position of the media.
Implementation public function get position():Numbervolume:Number| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
The current level of the sound volume.
Implementation public function get volume():Number public function set volume(value:Number):void public function pause():void| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
Suspends multimedia playback.
public function play():void| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
Resumes multimedia playback.
public function playFrom(position:Number):void| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
Resumes multimedia playback from the specified position.
Parameters
public function seek(time:Number):void| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
Performs seeking to the specified time.
Parameters
public function stop():void| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.0.3, iSpring Platform 6.0 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
Stops multimedia playback.
Event Object Type: ispring.presenter.player.media.MediaPlaybackEvent2MediaPlaybackEvent2.type property = ispring.presenter.player.media.MediaPlaybackEvent2.PLAYBACK_STATE_CHANGED| Language Version : | ActionScript 3.0 |
| Product Versions : | iSpring Pro 6.1, iSpring Platform 6.1 |
| Runtime Versions : | AIR 1.0, Flash Player 10.1 |
Dispatched when the state of the media playback controller is changed.
The
MediaPlaybackEvent2.PLAYBACK_STATE_CHANGED constant defines the value of the
type
property of the event object for a
mediaPlaybackStateChanged event. The value of this constant
is equal to the value of the
MediaPlaybackEvent.PLAYBACK_STATE_CHANGED constant.
The properties of the event object have the following values:
| Property | Value |
|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget | The Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget. |
oldPlaybackState | The old playback state. See the ispring.presenter.player.media.PlaybackState constants for more details. |
playbackState | The new playback state. See the ispring.presenter.player.media.PlaybackState constants for more details. |
target | The Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event. |
Tue Dec 4 2012, 06:27 PM +04:00