NetStream Messages

Below is a comparison of the  NetStream information objects (supported by the Adobe Flash Player 6 and up) sent by RTMPy vs.  Flash Media Server.

Also see NetConnectionMessages and SharedObjectMessages.

NetStream information objects

- couldn't reproduce or didn't test this yet
- tested and working
- doesn't work as expected
- doesn't work at all

The following messages notify the Flash Player when certain NetStream activities occur:

Code property Level property Meaning FMS RTMPy Comments
NetStream.InvalidArg Error Invalid arguments were passed to a NetStream method, for example ns.seek("asdasdas").
NetStream.Buffer.Empty Status Data is not being received quickly enough to fill the buffer. Data flow is interrupted until the buffer refills, at which time a NetStream.Buffer.Full message is sent and the stream begins playing again.
NetStream.Buffer.Full Status The buffer is full and the stream begins playing.
NetStream.Buffer.Flush Status Data has finished streaming, and the remaining buffer will be emptied.
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. Tested with 0.2 head (#131)
NetStream.Play.Complete Status Playback has completed.
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.InsufficientBW Warning Data is playing behind the normal speed.
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. The FLV passed to the play() method can't be found. See #75.
NetStream.Play.Switch Status The subscriber is switching from one stream to another in a playlist.
NetStream.Play.FileStructureInvalid Error Flash Player detects an invalid file structure and will not try to play this type of file.
NetStream.Play.Transition Status The server received the command to transition to another stream as a result of bitrate stream switching.
NetStream.Play.NoSupportedTrackFound Error Flash Player does not detect any supported tracks (video, audio or data) and will not try to play the file.
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. Verified with 0.1.1
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. See #81.
NetStream.Record.Stop Status Recording has stopped. See #81.
NetStream.Record.DiskQuotaExceeded Status Indicates that you have exceeded the pre-configured limits set for a recording. A recording can be limited by duration or size, whichever is reached first.
NetStream.Record.AlreadyExists Status Indicates that the stream being recorded maps to a file that is already being recorded to by another stream
NetStream.Seek.Failed Error The subscriber tried to use the seek command to move to a particular location in the recorded stream, but failed, which happens if the stream is not seekable. Tested with 0.2 (#130)
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. Verified with 0.1.1