
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
76
Returns
A NetStream object if successful; otherwise,
null.
Example
nc = new NetConnection();
nc.connect("rtmp://xyz.com/myApp");
ns = new NetStream(nc);
NetStream.attach()
ns.attach(stream)
Attaches a data source to the NetStream object.
Availability
Flash Media Interactive Server 3 and Flash Media Development Server 3
Parameters
stream A Stream object. If you pass false, the attached Stream object detaches from the NetStream object.
Returns
A boolean value. If the attached object is a valid data source,
true; otherwise, false.
Example
myStream = Stream.get("foo");
ns = new NetStream(nc);
ns.attach(myStream);
NetStream.bufferTime
ns.bufferTime
Read-only; indicates the number of seconds assigned to the buffer by the NetStream.setBufferTime() method.
Availability
Flash Media Interactive Server 3 and Flash Media Development Server 3
NetStream.onStatus()
ns.onStatus = function(infoObject){})
Invoked every time a status change or error occurs in a NetStream object. The remote server can accept or reject a
call to
NetStream.publish().
Availability
Flash Media Interactive Server 3 and Flash Media Development Server 3
Parameters
infoObject An Object with code and level properties that provide information about the status of a NetStream
call. Both properties are strings.
Commenti su questo manuale