diff --git a/sdk/src/CameraPlayer.js b/sdk/src/CameraPlayer.js index 1cf153c03f0b33c1b7dea6d5a35a2a3ee8a4cd10..9478a6f5c7ef627af7b8f60d82870d39eb441791 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 c836b4dc457c6697014497327ba0d8df1e32c9da..d0f5a6b62c99c2adbe7d22b95a65a9f25501571f 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];