iOS SDK API Reference

SKWMediaConnection.h
Go to the documentation of this file.
1 // SKWMediaConnection.h
3 // SkyWay SDK
5 #import "SKWConnection.h"
6 
11 @class SKWMediaStream;
12 @class SKWAnswerOption;
13 
14 
18 typedef NS_ENUM(NSUInteger, SKWMediaConnectionEventEnum)
19 {
36 };
37 
41 typedef void (^SKWMediaConnectionEventCallback)(NSObject* __nullable arg);
42 
53 
71 - (void)answer;
72 
101 - (void)answer:(SKWMediaStream* __nullable)stream;
102 
139 - (void)answer:(SKWMediaStream* __nullable)stream options:(SKWAnswerOption* __nullable)options;
140 
151 - (void)close;
152 
187 - (void)on:(SKWMediaConnectionEventEnum)event callback:(SKWMediaConnectionEventCallback __nullable)callback;
188 
207 - (void)replaceStream:(SKWMediaStream* __nullable)newStream;
208 
209 @end
-[SKWMediaConnection answer]
void answer()
When receiving a call event on a peer, you can call .answer on the media connection provided by the c...
SKWMediaStream
Media stream.
Definition: SKWMediaStream.h:18
SKWMediaConnectionEventCallback
void(^ SKWMediaConnectionEventCallback)(NSObject *__nullable arg)
Media Event Callback signature.
Definition: SKWMediaConnection.h:41
SKW_MEDIACONNECTION_EVENT_REMOVE_STREAM
@ SKW_MEDIACONNECTION_EVENT_REMOVE_STREAM
Emitted when a remote peer remove a stream.
Definition: SKWMediaConnection.h:27
SKWMediaConnection
Alternative class as MediaConnection.
Definition: SKWMediaConnection.h:52
SKWConnection.h
SKWAnswerOption
SKWMediaConnection answer Option.
Definition: SKWAnswerOption.h:14
-[SKWMediaConnection close]
void close()
Closes the media connection.
SKW_MEDIACONNECTION_EVENT_ERROR
@ SKW_MEDIACONNECTION_EVENT_ERROR
Errors on the media conenction are almost always fatal and will destroy the media connection.
Definition: SKWMediaConnection.h:35
SKWConnection
Base class of SKWDataConnection and SKWMediaConnection.
Definition: SKWConnection.h:62
SKW_MEDIACONNECTION_EVENT_CLOSE
@ SKW_MEDIACONNECTION_EVENT_CLOSE
Emitted when either you or the remote peer closes the media connection.
Definition: SKWMediaConnection.h:31
SKWMediaConnectionEventEnum
SKWMediaConnectionEventEnum
Media connection event type.
Definition: SKWMediaConnection.h:18
SKW_MEDIACONNECTION_EVENT_STREAM
@ SKW_MEDIACONNECTION_EVENT_STREAM
Emitted when a remote peer adds a stream.
Definition: SKWMediaConnection.h:23