【问题标题】:How to turn off webcam after ending meeting with amazon chime sdk如何在结束与 amazon chime sdk 的会议后关闭网络摄像头
【发布时间】:2021-09-24 02:02:24
【问题描述】:

我有一个使用 aws-chime-sdk-js 的视频会议网站,还有一个停止当前会议的按钮。问题是我无法让网络摄像头停止将自己显示为正在录制(LED 灯和红色图标),即使遵循下面概述的这些函数调用:

https://aws.github.io/amazon-chime-sdk-js/modules/faqs.html#after-leaving-a-meeting-the-camera-led-is-still-on-indicating-that-the-camera-has-not-been-released-what-could-be-wrong

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 单独发布曲目,但无济于事。任何想法如何关闭网络摄像头?

【问题讨论】:

标签: amazon-web-services webrtc getusermedia aws-chime-sdk


【解决方案1】:

您可以在卸载组件时或在会议结束后重新加载窗口。重新加载页面的动作会关闭已经打开的凸轮。例如,使用 javascript。

window.location.reload();

【讨论】:

    猜你喜欢
    • 2021-02-28
    • 1970-01-01
    • 2014-09-26
    • 2015-03-24
    • 2014-01-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多