Class mx.controls.streamingmedia.PlayerNetStream

NetStream
   +--mx.controls.streamingmedia.PlayerNetStream

Description

A subclass of NetStream that is tailored to work with the FLVPlayer class.

Field Index

_player, checkSizeInterval, detectedFirstBuffer, initId, player
Inherited from NetStream
bufferLength, bufferTime, bytesLoaded, bytesTotal, currentFps, liveDelay, time

Method Index

new PlayerNetStream()

attachAudio(), attachVideo(), close(), detect(), getPlayer(), onMetaData(), onStatus(), pause(), play(), seek(), setBufferTime(), setPlayer()
Inherited from NetStream
onResult(), publish(), receiveAudio(), receiveVideo(), send()

Constructor Detail

PlayerNetStream

public function PlayerNetStream(nc:
NetConnection, aPlayer:IPlayer)
Constructor takes two mandatory parameters.
Parameters
nc The NetConnection used by this NetStream
aPlayer The IPlayer associated with the NetStream

Field Detail

_player

private _player:IPlayer

initId

private initId:Number

checkSizeInterval

private checkSizeInterval:Number

detectedFirstBuffer

private detectedFirstBuffer:Boolean

player

public player:IPlayer

Method Detail

getPlayer

public function getPlayer():
IPlayer

setPlayer

public function setPlayer(aPlayer:
IPlayer)

pause

public function pause(shouldPause:
Boolean):Void
Add debugging logging call.

setBufferTime

public function setBufferTime(time:
Number):Void

play

public function play(name:
Object, st:Number, len:Number, reset:Object)

seek

public function seek(offset:
Number):Void

close

public function close():Void

attachAudio

public function attachAudio(theMicrophone:
Microphone):Void

attachVideo

public function attachVideo(theCamera:
Camera, snapshotMilliseconds:Number):Void

onStatus

public function onStatus(info)
onStatus function for the NetStream. "this" is the NetStream object.

detect

public function detect()
Detect when the video object's width and height are set.

onMetaData

public function onMetaData(info)
This is the handler which will process meta information The argument passed in is an array.