Methods
-(void)stream:(NSString *)name publishType:(PublishType)type
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
Arguments
name
name of the stream
publishType
PublishType that defines the stream behavior
-(void)start
Starts the broadcasting to the server. BroadcastStreamClient instance has to have the CONN_CONNECTED status; otherwise, an exception will be thrown.
-(void)start;
-(void)pause
Pauses the current stream and switches the BroadcastStreamClient client status to STREAM_PAUSED.
-(void)pause;
-(void)resume
Resumes the current stream. The BroadcastStreamClient client will be switched to the STREAM_PLAYING status.
-(void)resume;
-(void)stop
Stops the broadcasting.
-(void)stop;
-(void)disconnect
Disconnects the BroadcastStreamClient instance from the server. The instance receives the CONN_DISCONNECTED status.
-(void)disconnect;
Properties
<IBroadcastStreamClientDelegate> delegate
an instance of the IBroadcastStreamClientDelegate. For additional information, see IBroadcastStreamClientDelegate
UIImageView *imageView
a view for the current video frame
the current stream state. For additional information, see MediaStreamState
BOOL isAudioRunning
contains the current state of the audio stream. True if the audio is running, false if the stream either stopped or paused