web api 视频通话 leave

集成问题

#1

web端加入视频会议后,client.leave()后本地摄像头依然在使用,即使对localstream调用stop和close也依然在使用。web的sdk版本为2.7.0


#2

提供下Console log


#3

09:15:07:712 Agora-SDK [INFO]: [E9BC1] Leaving channel
AgoraRTCSDK-2.7.0.js:2 09:15:07:714 Agora-SDK [DEBUG]: [E9BC1] unregister client 2083278011
AgoraRTCSDK-2.7.0.js:2 09:15:07:730 Agora-SDK [DEBUG]: [589327189571232] Stop stream player with id 589327189571232
AgoraRTCSDK-2.7.0.js:2 09:15:07:730 Agora-SDK [DEBUG]: destroy remote Player 589327189571232
AgoraRTCSDK-2.7.0.js:2 09:15:07:733 Agora-SDK [DEBUG]: Media Player Status Change Triggered by destroy() {type: “player-status-change”, playerId: 1, mediaType: “video”, status: “aborted”, reason: “stop”, …}
AgoraRTCSDK-2.7.0.js:2 09:15:07:733 Agora-SDK [DEBUG]: Media Player Status Change Triggered by destroy() {type: “player-status-change”, playerId: 1, mediaType: “audio”, status: “aborted”, reason: “stop”, …}
AgoraRTCSDK-2.7.0.js:2 09:15:07:735 Agora-SDK [DEBUG]: [589327189571232] Close stream with id 589327189571232
AgoraRTCSDK-2.7.0.js:2 09:15:07:752 Agora-SDK [INFO]: [E9BC1] Leave channel success
AgoraRTCSDK-2.7.0.js:2 09:15:07:753 Agora-SDK [DEBUG]: renewSession 3F1A2B39194B4102A1244971C7EA4217 => 85399DE1B0824FDA9D50F2233C6922BD


#4

对应调用代码:
this.localStream.stop();
this.localStream.close();
this.client.leave();


#5
AgoraRTCSDK-2.7.0.js:2 09:15:07:730 Agora-SDK [DEBUG]: [589327189571232] Stop stream player with id 589327189571232
AgoraRTCSDK-2.7.0.js:2 09:15:07:730 Agora-SDK [DEBUG]: destroy remote Player 589327189571232
AgoraRTCSDK-2.7.0.js:2 09:15:07:733 Agora-SDK [DEBUG]: Media Player Status Change Triggered by destroy() {type: “player-status-change”, playerId: 1, mediaType: “video”, status: “aborted”, reason: “stop”, …}
AgoraRTCSDK-2.7.0.js:2 09:15:07:733 Agora-SDK [DEBUG]: Media Player Status Change Triggered by destroy() {type: “player-status-change”, playerId: 1, mediaType: “audio”, status: “aborted”, reason: “stop”, …}
AgoraRTCSDK-2.7.0.js:2 09:15:07:735 Agora-SDK [DEBUG]: [589327189571232] Close stream with id 589327189571232

看你发的logstopclose的是远端用户589327189571232的流呀,不是本地端用户


#6

看下你更完整的调用代码?