第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

添加的流永遠(yuǎn)不會(huì)被 agora.io 觸發(fā)

添加的流永遠(yuǎn)不會(huì)被 agora.io 觸發(fā)

森欄 2022-08-18 16:40:33
我有:        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')它到達(dá)了,但永遠(yuǎn)不會(huì)被調(diào)用。我做錯(cuò)了什么?publishing localSHAMOON added stream
查看完整描述

1 回答

?
有只小跳蛙

TA貢獻(xiàn)1824條經(jīng)驗(yàn) 獲得超8個(gè)贊

僅當(dāng)將遠(yuǎn)程流添加到通道時(shí),才會(huì)觸發(fā)回調(diào)。要偵聽的事件是將本地流添加到通道時(shí)的事件。stream-addedstream-published


this.agoraClient.on('stream-published', function (evt) {

  console.log("local stream published successfully");

});


查看完整回答
反對(duì) 回復(fù) 2022-08-18
  • 1 回答
  • 0 關(guān)注
  • 130 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)