RevueSDK · Swift reference Guides

Protocol

TrackDelegate

軌道事件代理 — 訂閱單一 Track 本身的事件

protocol TrackDelegate : AnyObject

Overview

作用在整條軌道、所有接收者一起受影響,所以從這裡回報;某一份 publication 被 LocalTrackPublication.mute()/unmute() 時,改由 ParticipantDelegate.participant(_:trackPublication:didUpdateIsMuted:) 回報那一份。

事件一律在 main thread 觸發(同 ParticipantDelegate)。

使用方式:

Room.shared.localParticipant.cameraTrack.delegates.add(delegate: self)

所有方法都有預設空實作,可選擇性實作需要的事件。

Topics

Instance Methods