Commit 5aa8066f by qlintonger xeno

录制完毕初步+511

parent 3b2e6383
......@@ -201,7 +201,7 @@ export class Agora {
})
console.log('client 已经创建', this.AgoraClient)
window.navigator.mediaDevices.enumerateDevices()
.then(function (info) {
.then( (info) => {
const wholeCameraSet = info.filter(a => a.kind === 'videoinput');
webrtcStates.value.cameraDeviceSet = wholeCameraSet;
webrtcStates.value.isCameraAttached = wholeCameraSet.length > 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment