Interface Media.SessionHandler

Interface Index (Compact) | Summary | Description | Methods | Signals

Methods

Error (u: Error_Code, s: Message) nothing (deprecated)
Ready () nothing

Signals

NewStreamHandler (o: Stream_Handler, u: ID, u: Media_Type, u: Direction)
Objects implementing this interface must also implement:

Description

An media session handler is an object that handles a number of synchronised media streams.

Methods

(Permalink)

Error (u: Error_Code, s: Message) → nothing

Deprecated since 0.13.4. Use StreamHandler.Error on each StreamHandler object instead.

Parameters

Informs the connection manager that an error occured in this session. If used, the connection manager must terminate the session and all of the streams within it, and may also emit a StreamError signal on the channel for each stream within the session.
(Permalink)

Ready () → nothing

Inform the connection manager that a client is ready to handle this session handler (i.e. that it has connected to the NewStreamHandler signal and done any other necessary setup).

Signals

(Permalink)

NewStreamHandler (o: Stream_Handler, u: ID, u: Media_Type, u: Direction)

Parameters

  • Stream_Handler — o
  • The path of a new object implementing the StreamHandler interface.
  • ID — u
  • The unique ID of the new stream
  • Media_Type — u (Media_Stream_Type)
  • Type of media that this stream should handle
  • Direction — u (Media_Stream_Direction)
  • Direction of this stream
Emitted when a new stream handler has been created for this session.