mi::rtmp::IStream_event_handler Class Reference
[RTMP server]
Description
Superclass of all handlers of create stream events. A subclass gets registered via mi::rtmp::IConnection::register_stream_event_handler() and will be called in the case of a create stream event or when the stream is removed.
Public Member Functions
- virtual bool handle( bool is_create, IStream* stream, const IData* command_arguments) =0
- Called on a stream event. More...
Member Functions
- virtual bool mi::rtmp::IStream_event_handler::handle( bool is_create, IStream* stream, const IData* command_arguments) [pure virtual]
-
Called on a stream event.
Note:The stream parameter is only valid during the call of the handle() method and cannot be stored (even if proper reference counting is used).
Parameters
- is_create
- Indicates if this is a create or remove event.
- stream
- The new stream or the one being removed.
- command_arguments
- The command object from the client.
Returns
If is_create is false , the return value is ignored. If is_create is true , the return value indicates whether the stream shall get created.