Registers a stream on the the messaging server. If the connection was successfully established, the instance of the BroadcastStreamClient receives the CONN_CONNECTED status and the client is ready to start the broadcast.
-(void)stream:(NSString *)name publishType:(PublishType)type
name of the stream
PublishType that defines the stream behavior
Starts the broadcasting to the server. BroadcastStreamClient instance has to have the CONN_CONNECTED status; otherwise, an exception will be thrown.
Pauses the current stream and switches the BroadcastStreamClient client status to STREAM_PAUSED.
Resumes the current stream. The BroadcastStreamClient client will be switched to the STREAM_PLAYING status.
Stops the broadcasting.
Disconnects the BroadcastStreamClient instance from the server. The instance receives the CONN_DISCONNECTED status.
an instance of the IBroadcastStreamClientDelegate. For additional information, see IBroadcastStreamClientDelegate
a view for the current video frame
the current stream state. For additional information, see MediaStreamState
contains the current state of the audio stream. True if the audio is running, false if the stream either stopped or paused