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.

Summary


Constructor
Instance properties
Instance methods
Event handlers
  • onStatus (info)
    • onStatus function for the NetStream.
  • onMetaData (info)
    • This is the handler which will process meta information

Constructor

PlayerNetStream

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

Instance properties

_player

private _player:IPlayer
(read)

checkSizeInterval

private checkSizeInterval:Number
(read)

detectedFirstBuffer

private detectedFirstBuffer:Boolean
(read)

initId

private initId:Number
(read)

player

player:IPlayer
(read,write)

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

function 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

function setPlayer (
aPlayer:IPlayer)

Event handlers

onMetaData

function onMetaData (
info)

This is the handler which will process meta information
The argument passed in is an array.

onStatus

function onStatus (
info)

onStatus function for the NetStream. "this" is the NetStream object.