我有一个使用 aws-chime-sdk-js 的视频会议网站,还有一个停止当前会议的按钮。问题是我无法让网络摄像头停止将自己显示为正在录制(LED 灯和红色图标),即使遵循下面概述的这些函数调用:
const stop = async (meetingId) => {
try {
const response = await API.post("chime", "/chime/end", {
body: { meetingId },
});
console.log(response);
// Select no video device (releases any previously selected device)
meetingSession.audioVideo.chooseVideoInputDevice(null);
// Stop local video tile (stops sharing the video tile in the meeting)
meetingSession.audioVideo.stopLocalVideoTile();
meetingSession.audioVideo.stop();
} catch (e) {
console.log(e);
}
};
我什至尝试使用 getUserMedia 单独发布曲目,但无济于事。任何想法如何关闭网络摄像头?