Client-Side Information Objects > NetStream information objects

 

NetStream information objects

The following events notify you when certain NetStream activities occur.

Code property

Level property

Meaning

NetStream.Buffer.Empty

Status

Data is not being received quickly enough to fill the buffer. Data flow will be interrupted until the buffer refills, at which time a NetStream.Buffer.Full message will be sent and the stream will begin playing again.

NetStream.Buffer.Full

Status

The buffer is full and the stream will begin playing.

NetStream.Failed

Error

An error has occurred for a reason other than those listed elsewhere in this table, such as the subscriber trying to use the seek command to move to a particular location in the recorded stream, but with invalid parameters.*

NetStream.Pause.Notify

Status

The subscriber has paused playback.

NetStream.Play.Failed

Error

An error has occurred in playback for a reason other than those listed elsewhere in this table, such as the subscriber not having read access.*

NetStream.Play.PublishNotify

Status

Publishing has begun; this message is sent to all subscribers.

NetStream.Play.Reset

Status

The playlist has reset (pending play commands have been flushed).

NetStream.Play.Start

Status

Playback has started.**

NetStream.Play.Stop

Status

Playback has stopped.

NetStream.Play.StreamNotFound

Error

The client tried to play a live or recorded stream that does not exist.

NetStream.Play.UnpublishNotify

Status

Publishing has stopped; this message is sent to all subscribers.

NetStream.Publish.BadName

Error

The client tried to publish a stream that is already being published by someone else.

NetStream.Publish.Idle

Status

The publisher of the stream has been idling for too long.

NetStream.Publish.Start

Status

Publishing has started.

NetStream.Record.Failed

Error

An error has occurred in recording for a reason other than those listed elsewhere in this table; for example, the disk is full.*

NetStream.Record.NoAccess

Error

The client tried to record a stream that is still playing, or the client tried to record (overwrite) a stream that already exists on the server with read-only status.

NetStream.Record.Start

Status

Recording has started.

NetStream.Record.Stop

Status

Recording has stopped.

NetStream.Seek.Failed

Error

The subscriber tried to use the seek command to move to a particular location in the recorded stream, but failed.

NetStream.Seek.Notify

Status

The subscriber has used the seek command to move to a particular location in the recorded stream.

NetStream.Unpause.Notify

Status

The subscriber has resumed playback.

NetStream.Unpublish.Success

Status

Publishing has stopped.

* This information object also has a description property, which is a string that provides a more specific reason for the failure.

** This information object also has a details property, which is a string that provides the name of the stream currently playing on the NetStream. If you are streaming a playlist that contains multiple streams, this information object will be sent each time you begin playing a different stream in the playlist.