我有: this.agoraClient = AgoraRTC.createClient({ mode: "rtc", codec: "h264" }) this.agoraClient.on('stream-added', (evt) => { console.log('SHAMOON added stream', evt) this.remoteStream = evt.stream this.agoraClient.subscribe(this.remoteStream) }) this.agoraClient.on('stream-subscribed', (evt) => { console.log('SHAMOON subscribed stream', evt) this.remoteStream.play(this.remoteHtmlElementId, { muted: true }); }) await new Promise((resolve, reject) => this.agoraClient.init(this.appId, resolve, reject)) await new Promise((resolve, reject) => this.agoraClient.join(null, this.channelName, this.uid, resolve, reject)) this.localStream = AgoraRTC.createStream({ streamID: this.uid, audio: true, video: false, screen: false }) await new Promise(this.localStream.init) this.localStream.play(this.localHtmlElementId, { muted: true }) console.log('playing local') this.agoraClient.publish(this.localStream) console.log('publishing local')它到達了,但永遠不會被調用。我做錯了什么?publishing localSHAMOON added stream
添加的流永遠不會被 agora.io 觸發
森欄
2022-08-18 16:40:33