Packagecom.threerings.media
Interfacepublic interface VideoPlayer extends MediaPlayer, flash.events.IEventDispatcher
ImplementorsFlvVideoPlayer

Implemented by video-playing backends.



Public Methods
 MethodDefined by
  
getDisplay():DisplayObject
Get the actual visualization of the video.
VideoPlayer
 Inherited
getDuration():Number
Get the duration of the media, in seconds, or NaN if not yet known.
MediaPlayer
 Inherited
getMetadata():Object
Get metadata, or null if none or not yet available.
MediaPlayer
 Inherited
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
 Inherited
getState():int
MediaPlayer
 Inherited
getVolume():Number
Get the volume, from 0 to 1.
MediaPlayer
 Inherited
pause():void
Pause the media, if not already.
MediaPlayer
 Inherited
play():void
Play the media, if not already.
MediaPlayer
 Inherited
seek(position:Number):void
Seek to the specified position.
MediaPlayer
 Inherited
setVolume(volume:Number):void
Set the volume, between 0-1.
MediaPlayer
 Inherited
unload():void
Unload the media.
MediaPlayer
Events
 EventSummaryDefined by
 Inherited Dispatched when the total duration of the media is known.MediaPlayer
 Inherited Dispatched when there's a problem.MediaPlayer
 Inherited Dispatched when media metadata is available, if ever.MediaPlayer
 Inherited Dispatched periodically as the position is updated, during playback.MediaPlayer
   Disptached when the size of the video is known.VideoPlayer
 Inherited Dispatched when the state of the mediaplayer changes, usually in response to commands such as play/pause, etc.MediaPlayer
Method detail
getDisplay()method
public function getDisplay():DisplayObject

Get the actual visualization of the video.

Returns
DisplayObject
getSize()method 
public function getSize():Point

Get the size of the video, or null if not yet known.

Returns
Point
Event detail
sizeevent 
Event object type: com.threerings.util.ValueEvent

Disptached when the size of the video is known. value: a Point expressing the width/height.