iOS SDK API Reference
|
Mesh room class. More...
#import <SKWMeshRoom.h>
Instance Methods | |
(void) | - close |
Close PeerConnection and emit leave and close event. | |
(void) | - replaceStream: |
Replace the stream being sent on all MediaConnections with a new one. More... | |
(BOOL) | - send: |
Send data to all participants in the room with WebSocket. More... | |
(void) | - on:callback: |
Set blocks for SKWRoom events. More... | |
(void) | - offAll |
Cancels the set event callback block of SKWRoom. More... | |
(void) | - getLog |
Start getting room's logs from signaling server. More... | |
Properties | |
NSString *__nullable | name |
Room name. | |
Mesh room class.
Class that manages fullmesh type room.
- (void) getLog |
Start getting room's logs from signaling server.
The result is returned in the SKW_ROOM_EVENT_LOG event.
- (void) on: | (SKWRoomEventEnum) | event | |
callback: | (SKWRoomEventCallback __nullable) | callback | |
Set blocks for SKWRoom events.
event | Event type |
callback | Callback block literal |
- (void) replaceStream: | (SKWMediaStream *__nullable) | newStream |
Replace the stream being sent on all MediaConnections with a new one.
newStream | The stream to replace the old stream with. |
- (BOOL) send: | (NSObject *__nonnull) | data |
Send data to all participants in the room with WebSocket.
It emits broadcast event. The max size of data that can be sent is 20MB. The frequent of consecutive send is limited to once every 100 msec. Outgoing data that exceeds the sending frequency limit is queued and sent sequentially every 100 msec.
data | Send data |