SKYLINKConnectionRemotePeerDelegate Protocol Reference

Conforms to NSObject
Declared in SKYLINKConnection.h

Overview

Delegate methods are called on the main thread.

– connection:didJoinPeer:mediaProperties:peerId:

Called when a remote peer joins the room.

- (void)connection:(SKYLINKConnection *)connection didJoinPeer:(id)userInfo mediaProperties:(SKYLINKPeerMediaProperties *)pmProperties peerId:(NSString *)peerId

Parameters

connection

The underlying connection object.

userInfo

User defined information. May be an NSString, NSDictionary or NSArray.

pmProperties

An object defining peer media properties of the joining peer.

peerId

The unique id of the joining peer.

Declared In

SKYLINKConnection.h

– connection:didRenderPeerVideo:peerId:

Called upon receiving a remote video stream.

- (void)connection:(SKYLINKConnection *)connection didRenderPeerVideo:(UIView *)peerVideoView peerId:(NSString *)peerId

Parameters

connection

The underlying connection object.

peerVideoView

The video view of the joining peer.

peerId

The unique id of the peer.

Declared In

SKYLINKConnection.h

– connection:didReceiveUserInfo:peerId:

Called upon receiving an update about a user info.

- (void)connection:(SKYLINKConnection *)connection didReceiveUserInfo:(id)userInfo peerId:(NSString *)peerId

Parameters

connection

The underlying connection object.

userInfo

User defined information. May be an NSString, NSDictionary or NSArray.

peerId

The unique id of the peer.

Declared In

SKYLINKConnection.h

– connection:didLeavePeerWithMessage:peerId:

Called when a peer has left the room implictly or explicitly.

- (void)connection:(SKYLINKConnection *)connection didLeavePeerWithMessage:(NSString *)errorMessage peerId:(NSString *)peerId

Parameters

connection

The underlying connection object.

errorMessage

Error message in case the peer is left due to some error.

peerId

The unique id of the leaving peer.

Declared In

SKYLINKConnection.h