IrisRtcVideoSessionDelegate Protocol Reference
Conforms to | IrisRtcJingleSessionDelegate |
---|---|
Declared in | IrisRtcVideoSession.h |
Overview
The IrisRtcVideoSessionDelegate
protocol defines the optional methods implemented by
delegates of the IrisRtcSession class.
The delegates should be used to monitor the events like when a remote stream is added or removed. Delegate onAddRemoteStream:mediaTrack: will be called when we got remote stream and onRemoveRemoteStream:mediaTrack: will be called when remote stream is removed.
– onAddRemoteStream:participantId:roomId:traceId:
required method
This method is called when the remote stream is added to peerconnection.
- (void)onAddRemoteStream:(IrisRtcMediaTrack *)track participantId:(NSString *)participantId roomId:(NSString *)roomId traceId:(NSString *)traceId
Parameters
track |
pointer to the IrisRtcMediaTrack containing remote track. |
---|---|
participantId |
Participant Id. |
roomId |
Room Id. |
traceId |
trace Id. |
Discussion
This method is called when the remote stream is added to peerconnection.
Declared In
IrisRtcVideoSession.h
– onRemoveRemoteStream:participantId:roomId:traceId:
required method
This method is called when the remote stream is removed from the peerconnection.
- (void)onRemoveRemoteStream:(IrisRtcMediaTrack *)track participantId:(NSString *)participantId roomId:(NSString *)roomId traceId:(NSString *)traceId
Parameters
track |
pointer to the IrisRtcMediaTrack containing remote track. |
---|---|
participantId |
Participant Id. |
roomId |
Room Id. |
traceId |
trace Id. |
Discussion
This method is called when the remote stream is removed from the peerconnection.
Declared In
IrisRtcVideoSession.h