PlayerNetStream
| Kind of class: | class |
|---|---|
| Inherits from: | NetStream |
| Author: | Andrew Guldman |
| Classpath: | mx.controls.streamingmedia.PlayerNetStream |
| File last modified: | Tuesday, 18 December 2007, 15:44:38 |
A subclass of NetStream that is tailored to work with the FLVPlayer
class.
class.
Summary
Constructor
- PlayerNetStream (nc:NetConnection, aPlayer:IPlayer)
- Constructor takes two mandatory parameters.
Instance properties
- _player : IPlayer
- initId : Number
- checkSizeInterval : Number
- detectedFirstBuffer : Boolean
- player : IPlayer
Instance methods
- getPlayer : IPlayer
- setPlayer (aPlayer:IPlayer)
- pause (shouldPause:Boolean) : Void
- Add debugging logging call.
- setBufferTime (time:Number) : Void
- play (name:Object, st:Number, len:Number, reset:Object)
- seek (offset:Number) : Void
- close : Void
- attachAudio (theMicrophone:Microphone) : Void
- attachVideo (theCamera:Camera, snapshotMilliseconds:Number) : Void
- detect
Event handlers
- onStatus (info)
- onStatus function for the NetStream.
- onMetaData (info)
- This is the handler which will process meta information
Constructor
PlayerNetStream
Constructor takes two mandatory parameters.
Parameters:
nc :
The NetConnection used by this NetStream
aPlayer:
The IPlayer associated with the NetStream
Instance properties
_player
checkSizeInterval
private checkSizeInterval:Number
(read)
detectedFirstBuffer
private detectedFirstBuffer:Boolean
(read)
initId
private initId:Number
(read)
player
Instance methods
attachAudio
function attachAudio (
theMicrophone:Microphone) : Void
attachVideo
function attachVideo (
theCamera:Camera,
snapshotMilliseconds:Number) : Void
close
function close (
) : Void
detect
function detect (
)
Detect when the video object's width and height are set.
getPlayer
pause
function pause (
shouldPause:Boolean) : Void
Add debugging logging call.
play
function play (
name:Object,
st:Number,
len:Number,
reset:Object)
seek
function seek (
offset:Number) : Void
setBufferTime
function setBufferTime (
time:Number) : Void
setPlayer
Event handlers
onMetaData
function onMetaData (
info)
This is the handler which will process meta information
The argument passed in is an array.
The argument passed in is an array.
onStatus
function onStatus (
info)
onStatus function for the NetStream. "this" is the NetStream object.