laozt 2 years ago
parent cd507c4ae1
commit cf01248c0a

@ -2,4 +2,5 @@
/bin
/node_modules
/dist
/src/lib
/src/lib
/src

@ -207,7 +207,7 @@ export default {
})
},
initVideo() {
if (this.$route.query.type === 1) {
if (this.$route.query.type == 1) {
this.isBtnVideo = false // 2
this.nickName = this.$route.query.name
} else {
@ -400,7 +400,7 @@ export default {
})
},
getLocalAudioStats() {
setInterval(async() => {
setInterval(async () => {
try {
const localAudioStats = await this.client.getLocalAudioStats()
if (!localAudioStats[0]) {
@ -413,7 +413,7 @@ export default {
}, 1000)
},
getLocalVideoStats() {
setInterval(async() => {
setInterval(async () => {
try {
const localVideoStats = await this.client.getLocalVideoStats('video')
if (!localVideoStats[0]) {
@ -523,7 +523,7 @@ export default {
this.localStream = NERTC.createStream({
uid: this.localUid,
audio: true, // mic
video: this.$route.query.type === 2, // camera
video: this.$route.query.type == 2, // camera
screen: false //
// facingMode: 'user' //
})

Loading…
Cancel
Save