ns.play("http://www.helpexamples.com/flash/video/water.flv");
This causes the following information to be displayed:
canSeekToEnd = true
videocodecid = 4
framerate = 15
videodatarate = 400
height = 215
width = 320
duration = 7.347
The list of properties will vary depending on the software that was used to encode the FLV
file.
See also
time (NetStream.time property)
onStatus (NetStream.onStatus handler)
onStatus = function(infoObject:Object) {}
Invoked every time a status change or error is posted for the NetStream object. If you want to
respond to this event handler, you must create a function to process the information object.
The information object has a code property containing a string that describes the result of the
onStatus handler, and a level property containing a string that is either status or error.
In addition to this onStatus handler, Flash also provides a "super" function called
. If onStatus is invoked for a particular object and there is no function
System.onStatus
assigned to respond to it, Flash processes a function assigned to
The following events notify you when certain NetStream activities occur.
Code property
NetStream.Buffer.Empt
y
NetStream.Buffer.Full
NetStream.Buffer.Flus
h
NetStream.Play.Start
978
ActionScript classes
,
play (NetStream.play method)
Level property
status
status
status
status
System.onStatus
Meaning
Data is not being received quickly enough
to fill the buffer. Data flow will be interrupted
until the buffer refills, at which time a
NetStream.Buffer.Full
and the stream will begin playing again.
The buffer is full and the stream will begin
playing.
Data has finished streaming, and the
remaining buffer will be emptied.
Playback has started.
,
NetConnection
if it exists.
message will be sent
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?
Questions and answers