Packagevegas.net
Classpublic class NetStreamExpert
InheritanceNetStreamExpert Inheritance NetStreamClient Inheritance CoreEventDispatcher Inheritance Object

This expert control a NetStream.



Public Properties
 PropertyDefined By
 Inheritedbuffer : Number
[read-only] Specifies the unit value of the buffer that is filled (value between 0 and 1).
NetStreamClient
 InheritedbufferLength : Number
[read-only] Indicates the number of seconds to save the buffer in memory.
NetStreamClient
 InheritedbufferPercent : Number
[read-only] Specifies the percentage of the buffer that is filled (value between 0 and 100).
NetStreamClient
 InheritedbufferTime : Number
Indicates the buffer time of the stream.
NetStreamClient
 Inheritedbytes : Number
[read-only] The unit size value in bytes of the file being loaded into the player (value between 0 and 1).
NetStreamClient
 InheritedbytesLoaded : Number
[read-only] The number of bytes of data that have been loaded into the application.
NetStreamClient
 InheritedbytesPercent : Number
[read-only] The percentage size in bytes of the file being loaded into the player (value between 0 and 100).
NetStreamClient
 InheritedbytesTotal : Number
[read-only] The total size in bytes of the file being loaded into the application.
NetStreamClient
 Inheritedchannel : String
[read-only] Indicates the channel of this dispatcher if this instance is global.
CoreEventDispatcher
 InheritedcuePoint : Signaler
[read-only] This signal emit cuepoint informations when an embedded cue point is reached while playing an FLV file.
NetStreamClient
 Inheritedduration : Number
[read-only] Indicates the duration of the media.
NetStreamClient
 Inheritederror : Signaler
[read-only] This signal emit when the Flash Player notify an ErrorEvent.
NetStreamClient
 InheritedimageData : Signaler
[read-only] This signal emit when Flash Player receives image data as a byte array embedded in a media file that is playing.
NetStreamClient
 Inheritedmeta : Signaler
[read-only] This signal emit metadatas informations when the application receives descriptive information embedded in the video being played.
NetStreamClient
 Inheritedmetadata : FLVMetaData
The flv metadata object.
NetStreamClient
 InheritedmuteIt : Signaler
This signal emit when the sound is muted.
NetStreamClient
 InheritednetStream : NetStream
The owner NetStream reference of this object.
NetStreamClient
 Inheritedpan : Number
Specifies the left-to-right panning of the sound, ranging from -1 (full pan left) to 1 (full pan right).
NetStreamClient
  paused : Boolean
[read-only] Indicates if the stream is paused.
NetStreamExpert
 InheritedplayStatus : Signaler
[read-only] This signal emit when the application receives descriptive information embedded in the video being played.
NetStreamClient
 Inheritedprogress : Number
[read-only] Specifies the percentage progress value of the stream.
NetStreamClient
  src : String
The optional source uri of the stream to play (can be defines in argument of the play() method of the expert).
NetStreamExpert
 Inheritedstatus : Signaler
[read-only] This signal emit when the application receives descriptive information embedded in the video being played.
NetStreamClient
 InheritedtextData : Signaler
[read-only] This signal emit when the Flash Player receives text data embedded in a media file that is playing.
NetStreamClient
 Inheritedtime : Number
[read-only] Indicates the time value in seconds of the stream.
NetStreamClient
  timer : Timer
The timer reference of this expert.
NetStreamExpert
 InheritedunmuteIt : Signaler
This signal emit when the sound is unmuted.
NetStreamClient
 Inheritedverbose : Boolean
The verbose mode.
NetStreamClient
 Inheritedvideo : Video
The Video reference of this expert.
NetStreamClient
 Inheritedvolume : Number
Specifies the volume, ranging from 0 (silent) to 1 (full volume).
NetStreamClient
 InheritedxmpData : Signaler
[read-only] This signal emit when receives information specific to Adobe Extensible Metadata Platform (XMP) that is embedded in the Adobe F4V or FLV video file.
NetStreamClient
Public Methods
 MethodDefined By
  
NetStreamExpert(netStream:NetStream = null, video:Video = null, timer:Timer = null)
Creates a new NetStreamExpert instance.
NetStreamExpert
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target.
CoreEventDispatcher
 Inherited
clear():void
Clear the video reference.
NetStreamClient
  
close():void
Close the internal NetStream of this expert.
NetStreamExpert
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
CoreEventDispatcher
  
dispose():void
[override] Dispose the expert and close all process and remove all dependencies of this expert.
NetStreamExpert
 Inherited
Returns the internal system.events.EventDispatcher reference.
CoreEventDispatcher
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
CoreEventDispatcher
 Inherited
isGlobal():Boolean
Indicates if the dispatcher use a global event flow.
CoreEventDispatcher
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreEventDispatcher
 Inherited
isMuted():Boolean
Returns true if the sound is muted.
NetStreamClient
 Inherited
lock():void
Locks the object.
CoreEventDispatcher
 Inherited
mute():void
Mute the sound of the netstream.
NetStreamClient
 Inherited
onCuePoint(info:Object):void
Invoked when an embedded cue point is reached while playing an FLV file.
NetStreamClient
 Inherited
onImageData(imageData:Object):void
Dispatched when Flash Player receives image data as a byte array embedded in a media file that is playing.
NetStreamClient
 Inherited
onMetaData(info:Object):void
Dispatched when the application receives descriptive information embedded in the video being played.
NetStreamClient
 Inherited
onPlayStatus(info:Object):void
Dispatched when the application receives descriptive information embedded in the video being played.
NetStreamClient
 Inherited
onTextData(textData:Object):void
The onTextData event sends text data through an AMF0 data channel.
NetStreamClient
 Inherited
onXMPData(info:Object):void
The onXMPData() callback function receives information specific to Adobe Extensible Metadata Platform (XMP) that is embedded in the Adobe F4V or FLV video file.
NetStreamClient
  
pause():void
Pauses the internal NetStream of this expert.
NetStreamExpert
  
play(stream:String = null):void
Play the stream video.
NetStreamExpert
  
publish(name:String = null, type:String = null):void
Sends streaming audio, video, and text messages from a client to Flash Media Server, optionally recording the stream during transmission.
NetStreamExpert
 Inherited
registerEventListener(type:String, listener:*, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target (Function or EventListener).
CoreEventDispatcher
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
CoreEventDispatcher
  
resume():void
Resumes the internal NetStream of this expert.
NetStreamExpert
  
seek(position:Number):void
Seek the stream video.
NetStreamExpert
 Inherited
setDuration(duration:Number = 0):void
Sets the duration of the stream video.
NetStreamClient
 Inherited
Sets the internal EventDispatcher reference.
CoreEventDispatcher
 Inherited
setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global system.events.EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher.
CoreEventDispatcher
 Inherited
unlock():void
Unlocks the display.
CoreEventDispatcher
 Inherited
unmute():void
Unmute the sound of the netstream.
NetStreamClient
 Inherited
unregisterEventListener(type:String, listener:*, useCapture:Boolean = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object.
CoreEventDispatcher
 Inherited
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
CoreEventDispatcher
Protected Methods
 MethodDefined By
 Inherited
Invoked when a modification of the expert is success.
NetStreamClient
 Inherited
handleError(e:ErrorEvent):void
Invoked when the NetStream notify an ErrorEvent.
NetStreamClient
 Inherited
Creates and returns the internal EventDispatcher reference (this method is invoked in the constructor).
CoreEventDispatcher
 Inherited
netStatus(e:NetStatusEvent):void
Invoked when the NetStream status is changed.
NetStreamClient
Property Detail
pausedproperty
paused:Boolean  [read-only]

Indicates if the stream is paused.


Implementation
    public function get paused():Boolean
srcproperty 
public var src:String

The optional source uri of the stream to play (can be defines in argument of the play() method of the expert).

timerproperty 
public var timer:Timer

The timer reference of this expert.

Constructor Detail
NetStreamExpert()Constructor
public function NetStreamExpert(netStream:NetStream = null, video:Video = null, timer:Timer = null)

Creates a new NetStreamExpert instance.

Parameters
netStream:NetStream (default = null) — The NetStream reference of this advanced proxy client manager.
 
video:Video (default = null) — The Video reference of this netstream client to register automatickly the stream with the video.
 
timer:Timer (default = null) — The optional timer reference of this expert.
Method Detail
close()method
public function close():void

Close the internal NetStream of this expert.

dispose()method 
override public function dispose():void

Dispose the expert and close all process and remove all dependencies of this expert.

pause()method 
public function pause():void

Pauses the internal NetStream of this expert.

play()method 
public function play(stream:String = null):void

Play the stream video.

Parameters

stream:String (default = null) — The uri of the stream.

publish()method 
public function publish(name:String = null, type:String = null):void

Sends streaming audio, video, and text messages from a client to Flash Media Server, optionally recording the stream during transmission. This method is available only to the publisher of the specified stream.

Parameters

name:String (default = null) — A string that identifies the stream. Clients that subscribe to this stream must pass this same name when they call NetStream.play(). Don't follow the stream name with a "/". For example, don't use the stream name "bolero/".
 
type:String (default = null) — A string that specifies how to publish the stream. Valid values are "record", "append", and "live". The default value is "live".

resume()method 
public function resume():void

Resumes the internal NetStream of this expert.

seek()method 
public function seek(position:Number):void

Seek the stream video.

Parameters

position:Number