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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 104
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
102
Example
The following server-side code attempts to delete a given stream and traces the resulting return code:
Client.prototype.delStream = function(streamName){
trace("*** deleting stream: " + streamName);
s = Stream.get(streamName);
if (s) {
s.onStatus = function(info){
if (info.code == "NetStream.Clear.Success"){
trace("*** Stream " + streamName + "deleted.");
}
if (info.code == "NetStream.Clear.Failure"){
trace("*** Failure to delete stream " + streamName);
}
};
s.clear();
}
}
Stream.play()
myStream.play(streamName, [startTime, length, reset, remoteConnection, virtualKey])
Code property Level property Description
NetStream.Clear.Failed error A call to application.clearStreams() failed to delete a stream.
NetStream.Clear.Success status A call to application.clearStreams() successfully deleted a
stream.
NetStream.Failed error An attempt to use a Stream method failed.
NetStream.Play.Failed error An call to Stream.play() failed.
NetStream.Play.InsufficientBW warning Data is playing behind the normal speed.
NetStream.Play.Start status Play was started.
NetStream.Play.StreamNotFound error An attempt was made to play a stream that does not exist.
NetStream.Play.Stop status Play was stopped.
NetStream.Play.Reset status A playlist was reset.
NetStream.Play.PublishNotify status The initial publish operation to a stream was successful. This message is
sent to all subscribers.
NetStream.Play.UnpublishNotify status An unpublish operation from a stream was successful. This message is
sent to all subscribers.
NetStream.Publish.BadName error An attempt was made to publish a stream that is already being published
by someone else.
NetStream.Publish.Start status Publishing was started.
NetStream.Record.Failed error An attempt to record a stream failed.
NetStream.Record.NoAccess error An attempt was made to record a read-only stream.
NetStream.Record.Start status Recording was started.
NetStream.Record.Stop status Recording was stopped.
NetStream.Unpublish.Success status A stream has stopped publishing.
Vedere la pagina 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 154 155

Commenti su questo manuale

Nessun commento