【发布时间】:2020-05-26 16:46:39
【问题描述】:
我有一个简单的广播测试应用。
我作为主持人加入了一个频道,最终我取消了发布。
this.client = AgoraRTC.createClient({ mode: "live", codec: "h264", role: "host"});
//...then
await this.client.publish([this.audioTrack, this.videoTrack]);
//..eventually
await this.client.unpublish([this.audioTrack, this.videoTrack]);
这会立即在“观众”远程用户中触发users-unpublished 和user-left。
这在 SDK 中没有记录。
如何防止user-left事件在用户没有真正离开频道时被触发?
【问题讨论】: