MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 79

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 78
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.
Vedere la pagina 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 154 155

Commenti su questo manuale

Nessun commento