|
@@ -150,9 +150,7 @@ export default {
|
|
|
await this.client_.publish(this.localStream_);
|
|
|
this.localStream_.play('main-video');
|
|
|
//$('#mask_main').appendTo($('#player_' + this.localStream_.getId()));
|
|
|
- this.shareon();
|
|
|
- },
|
|
|
- async shareon() {
|
|
|
+ // 订阅其他用户音视频
|
|
|
let i = 0;
|
|
|
this.client_.on('stream-subscribed', event => {
|
|
|
const remoteStream = event.stream;
|
|
@@ -192,10 +190,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async cameraChange() {
|
|
|
- await this.localStream_.switchDevice('video', this.cameraId);
|
|
|
+ //await this.localStream_.switchDevice('video', this.cameraId);
|
|
|
},
|
|
|
async micrChange() {
|
|
|
- await this.localStream_.switchDevice('audio', this.microphoneId);
|
|
|
+ //await this.localStream_.switchDevice('audio', this.microphoneId);
|
|
|
},
|
|
|
// 选择打开摄像头
|
|
|
shexiangBtn() {
|
|
@@ -313,10 +311,15 @@ export default {
|
|
|
min-height: 100px;
|
|
|
}
|
|
|
#main-video {
|
|
|
- float: left;
|
|
|
width: 100%;
|
|
|
height: 480px;
|
|
|
min-height: 480px;
|
|
|
grid-area: 1/1/3/4;
|
|
|
}
|
|
|
+.lookvideo {
|
|
|
+ width: 100%;
|
|
|
+ height: 160px;
|
|
|
+ min-height: 160px;
|
|
|
+ grid-area: 1/1/3/4;
|
|
|
+}
|
|
|
</style>
|