| Package | com.threerings.media |
| Class | public class FlvVideoPlayer |
| Inheritance | FlvVideoPlayer flash.events.EventDispatcher |
| Implements | VideoPlayer |
| Property | Defined by | ||
|---|---|---|---|
| _autoPlay : Boolean | FlvVideoPlayer | ||
| _duration : Number = NaN | FlvVideoPlayer | ||
| _gotDurationFromMetadata : Boolean | FlvVideoPlayer | ||
| _metadata : Object | FlvVideoPlayer | ||
| _netCon : NetConnection | FlvVideoPlayer | ||
| _netStream : NetStream | FlvVideoPlayer | ||
| _positionChecker : Timer | FlvVideoPlayer | ||
| _size : Point Our size, null until known.
| FlvVideoPlayer | ||
| _sizeChecker : Timer Checks the video every 100ms to see if the dimensions are now know.
| FlvVideoPlayer | ||
| _state : int = 0 | FlvVideoPlayer | ||
| _vid : Video | FlvVideoPlayer | ||
| _volume : Number = 1 | FlvVideoPlayer | ||
| Method | Defined by | ||
|---|---|---|---|
|
FlvVideoPlayer(autoPlay:Boolean = true)
| FlvVideoPlayer | ||
|
getDisplay():DisplayObject
| FlvVideoPlayer | ||
|
getDuration():Number
| FlvVideoPlayer | ||
|
getMetadata():Object
| FlvVideoPlayer | ||
|
getPosition():Number
| FlvVideoPlayer | ||
|
getSize():Point
| FlvVideoPlayer | ||
|
getState():int
| FlvVideoPlayer | ||
|
getVolume():Number
| FlvVideoPlayer | ||
|
load(url:String):void
Start playing a video!
| FlvVideoPlayer | ||
|
pause():void
| FlvVideoPlayer | ||
|
play():void
| FlvVideoPlayer | ||
|
seek(position:Number):void
| FlvVideoPlayer | ||
|
setVolume(volume:Number):void
| FlvVideoPlayer | ||
|
unload():void
| FlvVideoPlayer | ||
| Method | Defined by | ||
|---|---|---|---|
|
handleAsyncError(event:AsyncErrorEvent):void
| FlvVideoPlayer | ||
|
handleIOError(event:IOErrorEvent):void
| FlvVideoPlayer | ||
|
handleMetaData(info:Object):void
Called when metadata (if any) is found in the video stream.
| FlvVideoPlayer | ||
|
handleNetStatus(event:NetStatusEvent):void
| FlvVideoPlayer | ||
|
handlePositionCheck(event:TimerEvent = null):void
| FlvVideoPlayer | ||
|
handleSecurityError(event:SecurityErrorEvent):void
| FlvVideoPlayer | ||
|
handleSizeCheck(event:TimerEvent):void
Check to see if we now know the dimensions of the video.
| FlvVideoPlayer | ||
|
handleStreamNetStatus(event:NetStatusEvent):void
| FlvVideoPlayer | ||
|
redispatchError(event:ErrorEvent):void
Redispatch some error we received to our listeners.
| FlvVideoPlayer | ||
|
updateState(newState:int):void
| FlvVideoPlayer | ||
| _autoPlay | property |
protected var _autoPlay:Boolean
| _duration | property |
protected var _duration:Number = NaN
| _gotDurationFromMetadata | property |
protected var _gotDurationFromMetadata:Boolean
| _metadata | property |
protected var _metadata:Object
| _netCon | property |
protected var _netCon:NetConnection
| _netStream | property |
protected var _netStream:NetStream
| _positionChecker | property |
protected var _positionChecker:Timer
| _size | property |
protected var _size:PointOur size, null until known.
| _sizeChecker | property |
protected var _sizeChecker:TimerChecks the video every 100ms to see if the dimensions are now know. Yes, this is how to do it. We could trigger on ENTER_FRAME, but then we may not know the dimensions unless we're added on the display list, and we want this to work in the general case.
| _state | property |
protected var _state:int = 0
| _vid | property |
protected var _vid:Video
| _volume | property |
protected var _volume:Number = 1
| FlvVideoPlayer | () | constructor |
public function FlvVideoPlayer(autoPlay:Boolean = true)Parameters
autoPlay:Boolean (default = true) |
| getDisplay | () | method |
public function getDisplay():DisplayObject
Returns
DisplayObject |
| getDuration | () | method |
public function getDuration():Number
Returns
Number |
| getMetadata | () | method |
public function getMetadata():Object
Returns
Object |
| getPosition | () | method |
public function getPosition():Number
Returns
Number |
| getSize | () | method |
public function getSize():Point
Returns
Point |
| getState | () | method |
public function getState():int
Returns
int |
| getVolume | () | method |
public function getVolume():Number
Returns
Number |
| handleAsyncError | () | method |
protected function handleAsyncError(event:AsyncErrorEvent):voidParameters
event:AsyncErrorEvent |
| handleIOError | () | method |
protected function handleIOError(event:IOErrorEvent):voidParameters
event:IOErrorEvent |
| handleMetaData | () | method |
protected function handleMetaData(info:Object):voidCalled when metadata (if any) is found in the video stream.
Parametersinfo:Object |
| handleNetStatus | () | method |
protected function handleNetStatus(event:NetStatusEvent):voidParameters
event:NetStatusEvent |
| handlePositionCheck | () | method |
protected function handlePositionCheck(event:TimerEvent = null):voidParameters
event:TimerEvent (default = null) |
| handleSecurityError | () | method |
protected function handleSecurityError(event:SecurityErrorEvent):voidParameters
event:SecurityErrorEvent |
| handleSizeCheck | () | method |
protected function handleSizeCheck(event:TimerEvent):voidCheck to see if we now know the dimensions of the video.
Parametersevent:TimerEvent |
| handleStreamNetStatus | () | method |
protected function handleStreamNetStatus(event:NetStatusEvent):voidParameters
event:NetStatusEvent |
| load | () | method |
public function load(url:String):voidStart playing a video!
Parametersurl:String |
| pause | () | method |
public function pause():void
| play | () | method |
public function play():void
| redispatchError | () | method |
protected function redispatchError(event:ErrorEvent):voidRedispatch some error we received to our listeners.
Parametersevent:ErrorEvent |
| seek | () | method |
public function seek(position:Number):voidParameters
position:Number |
| setVolume | () | method |
public function setVolume(volume:Number):voidParameters
volume:Number |
| unload | () | method |
public function unload():void
| updateState | () | method |
protected function updateState(newState:int):voidParameters
newState:int |
| log | constant |
protected const log:Log