
159
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
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])
NetStream.Play.Failed error A call to Stream.play() failed. In Server-Side ActionScript, you
can use the NetStream class to publish a stream to a multicast
group. You cannot use the NetStream class to play a stream being
published into a group.
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.
Code property Level property Description
Comentarios a estos manuales