|
@@ -1,6 +1,9 @@
|
|
|
<template>
|
|
|
<view class="container">
|
|
|
<trtc-room ref="trtc-component" :config="rtcConfig"> </trtc-room>
|
|
|
+ <view style="position: absolute;bottom: 0px;#000000;color: #FFFFFF;margin: 30px;" @click="changeCamera()">
|
|
|
+ 切换摄像头
|
|
|
+ </view>
|
|
|
<view class="popup-open" @click="popupShow = true">
|
|
|
<view class="iconfont iconzhibo-shangpin"></view>
|
|
|
</view>
|
|
@@ -303,6 +306,9 @@
|
|
|
this.trtcComponent.on(TRTC_EVENT.REMOTE_AUDIO_REMOVE, event => {
|
|
|
console.log('* room REMOTE_AUDIO_REMOVE', event, this.trtcComponent.getRemoteUserList());
|
|
|
});
|
|
|
+ },
|
|
|
+ changeCamera: function() {
|
|
|
+ this.trtcComponent.switchCamera();
|
|
|
}
|
|
|
},
|
|
|
}
|