Suggestions

close search

StringeeRoomDelegate

@protocol StringeeRoomDelegate <NSObject> 

Stringee room delegate monitors room's events such as: roomm connection, joining room, leaving room...

- didRoomConnect:streams:

Invoked when the client makes/joins a room successfully. You will receive other clients'streams and can subscribe them:
- stringeeRoom: A StringeeRoom instance.
- streams: The streams were published to the room.

- (void)didRoomConnect:(StringeeRoom *)stringeeRoom streams:(NSArray*)streams;
- didRoomDisConnect:

Invoked when the client disconnects from a room:
- stringeeRoom: A StringeeRoom instance.

- (void)didRoomDisConnect:(StringeeRoom *)stringeeRoom;
- didRoomError:code:message

Invoked when the client fails to disconnect from a room:
- stringeeRoom: A StringeeRoom instance.
- code: The error code.
- message: The error message.

- (void)didRoomError:(StringeeRoom *)stringeeRoom code:(int)code message:(NSString *)message;
- didStreamAdd:stream:

Invoked when the other client's stream is published. You can subscribe the stream:
- stringeeRoom: A StringeeRoom instance.
- stream: The stream which is published.

- (void)didStreamAdd:(StringeeRoom *)stringeeRoom stream:(StringeeRoomStream *)stream;
- didStreamRemove:stream:

Invoked when another client leaves the room, the client's stream will be removed. You should change your UI.
- stringeeRoom: A StringeeRoom instance.
- stream: The stream which is removed.

- (void)didStreamRemove:(StringeeRoom *)stringeeRoom stream:(StringeeRoomStream *)stream;
- didStreamPublish:stream:

Invoked when the client's local stream is published:
- stringeeRoom: A StringeeRoom instance.
- stream: The stream which is published.

- (void)didStreamPublish:(StringeeRoom *)stringeeRoom stream:(StringeeRoomStream *)stream;
- didStreamPublishError:stream:error

Invoked when the client fails to publish the local stream:
- stringeeRoom: A StringeeRoom instance.
- stream: The stream which is published.
- code: The error code.
- message: The error message.

- (void)didStreamPublishError:(StringeeRoom *)stringeeRoom stream:(StringeeRoomStream *)stream error:(NSString *)error;
- didStreamUnPublish:stream:

Invoked when the client unpublish the local stream successfully:
- stringeeRoom: A StringeeRoom instance.
- stream: The stream which is unpublished.

- (void)didStreamUnPublish:(StringeeRoom *)stringeeRoom stream:(StringeeRoomStream *)stream;
- didStreamUnPublishError:stream:error

Invoked when the client fails to unpublish the local stream:
- stringeeRoom: A StringeeRoom instance.
- stream: The stream which is unpublished.
- code: The error code.
- message: The error message.

- (void)didStreamUnPublishError:(StringeeRoom *)stringeeRoom stream:(StringeeRoomStream *)stream error:(NSString *)error;
- didStreamSubscribe:stream

Invoked when the client subscribes a stream successfully. You can render remoteVideoView in this method:
- stringeeRoom: A StringeeRoom instance.
- stream: The stream which is subscribed.

- (void)didStreamSubscribe:(StringeeRoom *)stringeeRoom stream:(StringeeRoomStream *)stream;
- didStreamSubscribeError:stream:error

Invoked when the client fails to subscribe a stream:
- stringeeRoom: A StringeeRoom instance.
- stream: The stream which is subscribed.
- code: The error code.
- message: The error message.

- (void)didStreamSubscribeError:(StringeeRoom *)stringeeRoom stream:(StringeeRoomStream *)stream error:(NSString *)error;
- didStreamUnSubscribe:stream

Invoked when the client unsubscribe a stream successfully:
- stringeeRoom: A StringeeRoom instance.
- stream: The stream which is unsubscribed.

- (void)didStreamUnSubscribe:(StringeeRoom *)stringeeRoom stream:(StringeeRoomStream *)stream;
- didStreamUnSubscribeError:stream:error

Invoked when the client fails to unsubscribe a stream:
- stringeeRoom: A StringeeRoom instance.
- stream: The stream which is unsubscribed.
- code: The error code.
- message: The error message.

- (void)didStreamUnSubscribeError:(StringeeRoom *)stringeeRoom stream:(StringeeRoomStream *)stream error:(NSString *)error;