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: |
Change the MediaStream that is being sent. 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 |
Change the MediaStream that is being sent.
For example, you can use it to change the camera device or the image quality.
Note: It is not possible to change the state of a MediaStream from not sending to sending.You cannot change the state of MediaStream from not sending to sending and vice versa.
It is also not possible to interchange "MediaStream with either video or audio only" and "MediaStream with both video and audio".
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 |