Package | com.threerings.media |
Interface | public interface VideoPlayer extends MediaPlayer, flash.events.IEventDispatcher |
Implementors | FlvVideoPlayer |
Method | Defined by | ||
---|---|---|---|
getDisplay():DisplayObject
Get the actual visualization of the video.
| VideoPlayer | ||
![]() |
getDuration():Number
Get the duration of the media, in seconds, or NaN if not yet known.
| MediaPlayer | |
![]() |
getMetadata():Object
Get metadata, or null if none or not yet available.
| MediaPlayer | |
![]() |
getPosition():Number
Get the position of the media, in seconds, or NaN if not yet ready.
| MediaPlayer | |
getSize():Point
Get the size of the video, or null if not yet known.
| VideoPlayer | ||
![]() |
getState():int
| MediaPlayer | |
![]() |
getVolume():Number
Get the volume, from 0 to 1.
| MediaPlayer | |
![]() |
pause():void
Pause the media, if not already.
| MediaPlayer | |
![]() |
play():void
Play the media, if not already.
| MediaPlayer | |
![]() |
seek(position:Number):void
Seek to the specified position.
| MediaPlayer | |
![]() |
setVolume(volume:Number):void
Set the volume, between 0-1.
| MediaPlayer | |
![]() |
unload():void
Unload the media.
| MediaPlayer |
Event | Summary | Defined by | ||
---|---|---|---|---|
![]() | Dispatched when the total duration of the media is known. | MediaPlayer | ||
![]() | Dispatched when there's a problem. | MediaPlayer | ||
![]() | Dispatched when media metadata is available, if ever. | MediaPlayer | ||
![]() | Dispatched periodically as the position is updated, during playback. | MediaPlayer | ||
Disptached when the size of the video is known. | VideoPlayer | |||
![]() | Dispatched when the state of the mediaplayer changes, usually in response to commands such as play/pause, etc. | MediaPlayer |
getDisplay | () | method |
public function getDisplay():DisplayObject
Get the actual visualization of the video.
ReturnsDisplayObject |
getSize | () | method |
public function getSize():Point
Get the size of the video, or null if not yet known.
ReturnsPoint |
size | event |
com.threerings.util.ValueEvent
Disptached when the size of the video is known. value: a Point expressing the width/height.