MillicastSDK 2.0.0
Loading...
Searching...
No Matches
Instance Methods | List of all members
<MCWebrtcRemoteTrackDelegate> Protocol Reference

A delegate to receive remote track related events. More...

#import <webrtc_remote_track.h>

Inheritance diagram for <MCWebrtcRemoteTrackDelegate>:
Inheritance graph
[legend]
Collaboration diagram for <MCWebrtcRemoteTrackDelegate>:
Collaboration graph
[legend]

Instance Methods

(void) - webrtcRemoteTrackDisabled:
 
(void) - webrtcRemoteTrack:didUpdateMID:
 

Detailed Description

A delegate to receive remote track related events.

Method Documentation

◆ webrtcRemoteTrack:didUpdateMID:

- (void) webrtcRemoteTrack: (MCWebrtcRemoteTrack *_Nonnull)  webrtcRemoteTrack
didUpdateMID: (NSString *_Nullable)  mid 
optional

The event for updating the MID of the internal webrtc track.

The MID can be updated many times during the WebrtcRemoteTrack's life. When the track is being first enabled, the MID is set, and when the peer connection disconnects, the MID is reset to empty value. After reconnection or migration the MID may be set again, possibly to a different value.

The MID value should only be used by the application when interpreting the webrtc stats, the exact MID value at any time is not needed for any other functionality.

All tracks after their creation, before attempting to enable them, have empty MID.

◆ webrtcRemoteTrackDisabled:

- (void) webrtcRemoteTrackDisabled: (MCWebrtcRemoteTrack *_Nonnull)  webrtcRemoteTrack
optional

The event for disabled state notification.

There's no "enabled" counterpart - the track is only projected in response to the application request - the application should set a continuation callback on the project API. The track can become disabled, meaning unprojected, due to external events (network problems, reconnection, migration, and similar.


The documentation for this protocol was generated from the following file: