SKYLINKConnectionMediaDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SKYLINKConnection.h SKYLINKProtocol.h |
– connection:didCreateLocalMedia:
Called when receive a local Media. Applies for all media type. Including audio and video.
- (void)connection:(nonnull SKYLINKConnection *)connection didCreateLocalMedia:(nonnull SKYLINKMedia *)localMedia
Parameters
connection |
The underlying connection object. |
---|---|
localMedia |
The newly created local Skylink media object. |
Declared In
SKYLINKConnection.h
– connection:didReceiveRemoteMedia:remotePeerId:
Called when receive a Media from remote peer. Applies for all media type. Including audio and video.
- (void)connection:(nonnull SKYLINKConnection *)connection didReceiveRemoteMedia:(nonnull SKYLINKMedia *)remoteMedia remotePeerId:(null_unspecified NSString *)remotePeerId
Parameters
connection |
The underlying connection object. |
---|---|
remoteMedia |
The received remote Skylink media object. |
remotePeerId |
The received remote peerId. |
Declared In
SKYLINKConnection.h
– connection:didChangeLocalMedia:
Called when local media changed.
- (void)connection:(nonnull SKYLINKConnection *)connection didChangeLocalMedia:(nonnull SKYLINKMedia *)localMedia
Parameters
connection |
The underlying connection object. |
---|---|
localMedia |
The Skylink local media object that is changed. |
Declared In
SKYLINKConnection.h
– connection:didChangeRemoteMedia:remotePeerId:
Called when remote media changed.
- (void)connection:(nonnull SKYLINKConnection *)connection didChangeRemoteMedia:(nonnull SKYLINKMedia *)remoteMedia remotePeerId:(null_unspecified NSString *)remotePeerId
Parameters
connection |
The underlying connection object. |
---|---|
remoteMedia |
The Skylink remote media object that is changed. |
remotePeerId |
The unique id of the remote peer. |
Declared In
SKYLINKConnection.h
– connection:didChangeVideoSize:videoView:peerId:mediaId:
Called when the dimensions of the video view are changed.
- (void)connection:(nonnull SKYLINKConnection *)connection didChangeVideoSize:(CGSize)videoSize videoView:(null_unspecified UIView *)videoView peerId:(null_unspecified NSString *)peerId mediaId:(null_unspecified NSString *)mediaId
Parameters
connection |
The underlying connection object. |
---|---|
videoSize |
The size of the respective video. |
videoView |
The video view for which the size was sent. |
peerId |
The unique id of peer. |
mediaId |
The unique id of video media. |
Declared In
SKYLINKConnection.h
– connection:didObtainInputVideoResolutionWidth:height:fps:captureFormatDict:mediaId:
Called when the local peer’s input stats are changed
- (void)connection:(nonnull SKYLINKConnection *)connection didObtainInputVideoResolutionWidth:(NSInteger)width height:(NSInteger)height fps:(NSInteger)fps captureFormatDict:(nonnull NSDictionary<NSString*,id> *)captureFormatDict mediaId:(nonnull NSString *)mediaId
Parameters
connection |
The underlying connection object. |
---|---|
width |
The video width |
height |
The video height |
fps |
The video frame rate |
captureFormatDict |
The stats dictionary |
mediaId |
The id of media |
Declared In
SKYLINKConnection.h
– connection:didObtainReceivedVideoResolutionWidth:height:fps:remotePeerID:
Called when the received stats are changed from a remote peer
- (void)connection:(nonnull SKYLINKConnection *)connection didObtainReceivedVideoResolutionWidth:(NSInteger)width height:(NSInteger)height fps:(NSInteger)fps remotePeerID:(nonnull NSString *)remotePeerID
Parameters
connection |
The underlying connection object. |
---|---|
width |
The video width |
height |
The video height |
fps |
The video frame rate |
remotePeerID |
The peer id for the input stats |
Declared In
SKYLINKConnection.h
– connection:didObtainSentVideoResolutionWidth:height:fps:mediaId:remotePeerId:
Called when the sent stats are changed to a remote peer
- (void)connection:(nonnull SKYLINKConnection *)connection didObtainSentVideoResolutionWidth:(NSInteger)width height:(NSInteger)height fps:(NSInteger)fps mediaId:(nonnull)mediaId remotePeerId:(nonnull NSString *)remotePeerId
Parameters
connection |
The underlying connection object. |
---|---|
width |
The video width |
height |
The video height |
fps |
The video frame rate |
remotePeerId |
The peer id for the input stats |
Declared In
SKYLINKConnection.h
– connection:didDestroyLocalMedia:
Called when local Media was destroyed.
- (void)connection:(nonnull SKYLINKConnection *)connection didDestroyLocalMedia:(nonnull SKYLINKMedia *)localMedia
Parameters
connection |
The underlying connection object. |
---|---|
localMedia |
The newly created local Skylink media object. |
Declared In
SKYLINKConnection.h