TVILocalParticipantDelegate Protocol Reference

Conforms to NSObject
Declared in TVILocalParticipant.h

Overview

TVILocalParticipantDelegate provides callbacks when important events happen to a TVILocalParticipant.

– localParticipant:didPublishAudioTrack:

Delegate method called when the Local Participant successfully publishes an audio track.

- (void)localParticipant:(nonnull TVILocalParticipant *)participant didPublishAudioTrack:(nonnull TVILocalAudioTrackPublication *)audioTrackPublication

Parameters

participant

The local participant.

audioTrackPublication

The TVILocalAudioTrackPublication object.

Declared In

TVILocalParticipant.h

– localParticipant:didFailToPublishAudioTrack:withError:

Delegate method called when the publication of an audio track fails.

- (void)localParticipant:(nonnull TVILocalParticipant *)participant didFailToPublishAudioTrack:(nonnull TVILocalAudioTrack *)audioTrack withError:(nonnull NSError *)error

Parameters

participant

The local participant.

audioTrack

The audio track that failed publication.

error

An NSError object describing the reason for the failure.

Declared In

TVILocalParticipant.h

– localParticipant:didPublishDataTrack:

Delegate method called when the Local Participant successfully publishes a data track.

- (void)localParticipant:(nonnull TVILocalParticipant *)participant didPublishDataTrack:(nonnull TVILocalDataTrackPublication *)dataTrackPublication

Parameters

participant

The local participant.

dataTrackPublication

The TVILocalDataTrackPublication object.

Declared In

TVILocalParticipant.h

– localParticipant:didFailToPublishDataTrack:withError:

Delegate method called when the publication of a data track fails.

- (void)localParticipant:(nonnull TVILocalParticipant *)participant didFailToPublishDataTrack:(nonnull TVILocalDataTrack *)dataTrack withError:(nonnull NSError *)error

Parameters

participant

The local participant.

dataTrack

The data track that failed publication.

error

An NSError object describing the reason for the failure.

Declared In

TVILocalParticipant.h

– localParticipant:didPublishVideoTrack:

Delegate method called when the Local Participant successfully publishes a video track.

- (void)localParticipant:(nonnull TVILocalParticipant *)participant didPublishVideoTrack:(nonnull TVILocalVideoTrackPublication *)videoTrackPublication

Parameters

participant

The local participant.

videoTrackPublication

The TVILocalVideoTrackPublication object.

Declared In

TVILocalParticipant.h

– localParticipant:didFailToPublishVideoTrack:withError:

Delegate method called when the publication of a video track fails.

- (void)localParticipant:(nonnull TVILocalParticipant *)participant didFailToPublishVideoTrack:(nonnull TVILocalVideoTrack *)videoTrack withError:(nonnull NSError *)error

Parameters

participant

The local participant.

videoTrack

The video track that failed publication.

error

An NSError object describing the reason for the failure.

Declared In

TVILocalParticipant.h

– localParticipant:networkQualityLevelDidChange:

Delegate method called when the Local Participant’s networkQualityLevel has changed.

- (void)localParticipant:(nonnull TVILocalParticipant *)participant networkQualityLevelDidChange:(TVINetworkQualityLevel)networkQualityLevel

Parameters

participant

The local participant.

networkQualityLevel

The new Network Quality Level.

Declared In

TVILocalParticipant.h