
158
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Stream.onStatus()
myStream.onStatus = function([infoObject]) {}
Invoked every time the status of a Stream object changes. For example, if you play a file in a stream,
Stream.onStatus() is invoked. Use Stream.onStatus() to check when play starts and ends, when recording starts,
and so on.
Availability
Flash Communication Server 1
Parameters
infoObject An Object with code and level properties that contain information about a stream. This parameter is
optional, but it is usually used. The Stream information object contains the following properties:
The following table describes the code and level property values:
code property level property Meaning
NetStream.Play.Complete status Playback has completed.
NetStream.Play.TransitionComplete status The subscriber is switching to a new stream as a result of a
successful
NetStream.play2() call. For Flash Player 10 and
later and Flash Media Server 3.5 and later.
Adobe Media Server dispatches this event when a transition to a
new stream occurs. Prior to this event, the server dispatches an
onStatus event with a code of
NetStream.Play.Transition to indicate that it processed
the command to switch streams.
NetStream.Play.Switch status The subscriber is switching from one stream to another in a
playlist.
Property Meaning
code A string identifying the event that occurred.
description Detailed information about the code. Not every information object includes this property.
details The stream name.
level A string indicating the severity of the event.
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.MulticastStream.Reset status Dispatched when the low-level multicast stream indicates a reset
point. This only happens on the subscribe-side of the stream.
Komentáře k této Příručce