From a2d65954b27b69ba5ebddba2e7dcb548a541f2d0 Mon Sep 17 00:00:00 2001 From: Yuan <294065614@qq.com> Date: Thu, 10 Oct 2024 19:03:05 +0800 Subject: [PATCH] 1 --- sdk/src/CameraPlayer.js | 2 +- sdk/src/MicrophonePlayer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/src/CameraPlayer.js b/sdk/src/CameraPlayer.js index 1cf153c..9478a6f 100644 --- a/sdk/src/CameraPlayer.js +++ b/sdk/src/CameraPlayer.js @@ -57,7 +57,7 @@ export default class CameraPlayer { } } - navigator.mediaDevices.getUserMedia({ video: videoOptions, audio: false }) + navigator.mediaDevices.getUserMedia({ video: videoOptions }) .then((stream) => { // 视频轨道 this.videoStream = stream.getVideoTracks()[0]; diff --git a/sdk/src/MicrophonePlayer.js b/sdk/src/MicrophonePlayer.js index c836b4d..d0f5a6b 100644 --- a/sdk/src/MicrophonePlayer.js +++ b/sdk/src/MicrophonePlayer.js @@ -53,7 +53,7 @@ export default class MicrophonePlayer { } } - navigator.mediaDevices.getUserMedia({ video: false, audio: audioOptions }) + navigator.mediaDevices.getUserMedia({ audio: audioOptions }) .then((stream) => { // 音频轨道 this.audioStream = stream.getAudioTracks()[0]; -- Gitee