Click or drag to resize
RtspSession Class
Encapsulates the concept of an RTSP session.
Inheritance Hierarchy
SystemObject
  StreamCoders.Rtsp.ExtensionsRtspSession

Namespace: StreamCoders.Rtsp.Extensions
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public class RtspSession

The RtspSession type exposes the following members.

Constructors
  NameDescription
Public methodRtspSession
Creates an RtspSession object based on track information provided by an earlier discovery of an RTSP resource. By concept, each RtspTrackInfo object is used to create a SubStream, which gives RtspPrimitives an interface to allow for aggregation and non-aggregation. Each request and response are paired into transaction objects that are waitable and abortable (See Transaction or BulkTransaction class).
Top
Properties
  NameDescription
Public propertyKeepAliveMethodType
Gets or sets the type of the keep alive method. Valid values are GetParmeter and Options
Top
Methods
  NameDescription
Public methodPause
Attempts to progress the session to a pause state (Pause) by using aggregation. (See also RtspPrimitives.ExecuteAggregate)
Public methodPause(Transaction)
Attempts to progress the session to a pause state (Pause) by using aggregation. (See also RtspPrimitives.ExecuteAggregate)
Public methodPauseSubStreams
Attempts to progress the session to a pause state (Pause) on indivual substreams. (See also RtspPrimitives.ExecuteSessionNonAggregate)
Public methodPlay
Attempts to progress the session to a play state (Play) by using aggregation. (See also RtspPrimitives.ExecuteAggregate)
Public methodPlay(Transaction)
Attempts to progress the session to a play state (Play) by using aggregation. (See also RtspPrimitives.ExecuteAggregate)
Public methodPlaySubStreams
Attempts to progress the session to a play state (Play) on indivual substreams. (See also RtspPrimitives.ExecuteSessionNonAggregate)
Public methodResumeSubStreams
Attempts to progress the session to a play state (Play) on indivual substreams. This method should only be used for live streams, as it uses the open interval with Now to play/resume a session. See Seek for VOD. (See also RtspPrimitives.ExecuteSessionNonAggregate)
Public methodSeek(TimeSpan)
Attempts to progress the session to a play state (Play) by supplying time offset. The session can either be paused or in play state. (See also RtspPrimitives.ExecuteAggregate)
Public methodSeek(TimeSpan, Transaction)
Attempts to progress the session to a play state (Play) by supplying time offset. The session can either be paused or in play state. (See also RtspPrimitives.ExecuteAggregate)
Public methodSeekSubStreams
Attempts to progress the session to a play state (Play) by supplying time offset. The session can either be paused or in play state. (See also RtspPrimitives.ExecuteSessionNonAggregate)
Public methodSendKeepAlive
Sends an RTSP request to keep session alive. The type of keep alive sent out depends on the value in KeepAliveMethodType
Public methodSendKeepAlive(Transaction)
Sends an RTSP request to keep session alive. The type of keep alive sent out depends on the value in KeepAliveMethodType
Public methodSetupTcpInterleaveSubStreams
Attempts to progress the session to set up (Setup) individual substreams. (See also RtspPrimitives.CreateTcpInterleaveSession)
Public methodSetupUdpMulticastSubStreams
Attempts to progress the session to set up (Setup) individual substreams. (See also RtspPrimitives.CreateMulticastSession)
Public methodSetupUdpUnicastSubStreams
Attempts to progress the session to set up (Setup) individual substreams. (See also RtspPrimitives.CreateUdpSession)
Public methodTeardown
Attempts to tear down the session by sending an RTSP Teardown request. If KeepAliveTimeout was specified, the corresponding timer will always be disposed.
Top
Events
  NameDescription
Public eventOnDisconnect
Event queue for all listeners interested in OnDisconnect events.
Public eventOnRequestReceived
Event queue for all listeners interested in OnRequestReceived events.
Public eventOnResponseReceived
Event queue for all listeners interested in OnResponseReceived events.
Top
Fields
  NameDescription
Public fieldKeepAliveTimeout
Defines the interval at which a keep-alive message is sent to the server.
Public fieldRtspSubStreams
List of all SubStream objects contained in this session.
Public fieldSessionId
Unique ID identifying this session.
Top
Extension Methods
  NameDescription
Public Extension MethodCopyOverloaded.
Creates a copy of the object.
(Defined by ObjectExtensions.)
Public Extension MethodCopy(Object)Overloaded.
Creates a deep copy of the object using the supplied object as a target for the copy operation.
(Defined by ObjectExtensions.)
Top
See Also