[*] 拉取bug
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
<video ref="video"></video>
|
||||
<p class="title">{{ client?.name || "" }}</p>
|
||||
<div class="buttons" :style="{'--volume': client?.volume}">
|
||||
<el-button type="danger" title="打开麦克风" :icon="Mute" circle />
|
||||
<el-button type="primary" title="关闭麦克风" :icon="Microphone" circle />
|
||||
<el-button type="danger" title="打开摄像头" :icon="VideoPause" circle />
|
||||
<el-button type="primary" title="关闭摄像头" :icon="VideoPlay" circle />
|
||||
<el-button v-show="!client.audioActive" type="primary" title="打开麦克风" :icon="Microphone" circle />
|
||||
<el-button v-show="client.audioActive" type="danger" title="关闭麦克风" :icon="Mute" circle />
|
||||
<el-button v-show="!client.videoActive" type="primary" title="打开摄像头" :icon="VideoPlay" circle />
|
||||
<el-button v-show="client.videoActive" type="danger" title="关闭摄像头" :icon="VideoPause" circle />
|
||||
<el-button title="交换媒体" :icon="Refresh" circle />
|
||||
<el-button title="拍照" :icon="Camera" circle />
|
||||
<el-button title="录像" :icon="VideoCamera" circle />
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
<video ref="video"></video>
|
||||
<p class="title">{{ client?.name || "" }}</p>
|
||||
<div class="buttons" :style="{'--volume': client?.volume}">
|
||||
<el-button v-show="!client.audioActive" type="danger" title="打开麦克风" :icon="Mute" circle />
|
||||
<el-button v-show="client.audioActive" type="primary" title="关闭麦克风" :icon="Microphone" circle />
|
||||
<el-button v-show="!client.videoActive" type="danger" title="打开摄像头" :icon="VideoPause" circle />
|
||||
<el-button v-show="client.videoActive" type="primary" title="关闭摄像头" :icon="VideoPlay" circle />
|
||||
<el-button v-show="!client.audioActive" type="primary" title="打开麦克风" :icon="Microphone" circle />
|
||||
<el-button v-show="client.audioActive" type="danger" title="关闭麦克风" :icon="Mute" circle />
|
||||
<el-button v-show="!client.videoActive" type="primary" title="打开摄像头" :icon="VideoPlay" circle />
|
||||
<el-button v-show="client.videoActive" type="danger" title="关闭摄像头" :icon="VideoPause" circle />
|
||||
<el-button title="拍照" :icon="Camera" circle />
|
||||
<el-button title="录像" :icon="VideoCamera" circle />
|
||||
<el-button title="媒体信息" :icon="InfoFilled" circle />
|
||||
|
||||
@@ -714,7 +714,7 @@ class Taoyao extends RemoteClient {
|
||||
remoteClient.audioTrack = track;
|
||||
remoteClient.audioConsumer = consumer;
|
||||
} else if(track.kind === 'video') {
|
||||
remoteClient.audioActive = false;
|
||||
remoteClient.videoActive = true;
|
||||
remoteClient.videoTrack = track;
|
||||
remoteClient.videoconsumer = consumer;
|
||||
} else {
|
||||
@@ -829,8 +829,8 @@ class Taoyao extends RemoteClient {
|
||||
protocol.buildMessage("room::enter", {
|
||||
roomId: roomId,
|
||||
password: password,
|
||||
rtpCapabilities: me.consume ? me.mediasoupDevice.rtpCapabilities : undefined,
|
||||
sctpCapabilities: me.consume && me.dataProduce ? me.mediasoupDevice.sctpCapabilities : undefined,
|
||||
rtpCapabilities: (me.audioConsume || me.videoConsume || me.audioProduce || me.videoProduce) ? me.mediasoupDevice.rtpCapabilities : undefined,
|
||||
sctpCapabilities: (me.dataConsume || me.dataProduce) ? me.mediasoupDevice.sctpCapabilities : undefined,
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -1113,7 +1113,8 @@ class Taoyao extends RemoteClient {
|
||||
// codec : this._mediasoupDevice.rtpCapabilities.codecs
|
||||
// .find((codec) => codec.mimeType.toLowerCase() === 'audio/pcma')
|
||||
});
|
||||
|
||||
self.audioActive = true;
|
||||
self.track = track;
|
||||
// TODO:加密解密
|
||||
// if (this._e2eKey && e2e.isSupported()) {
|
||||
// e2e.setupSenderTransform(this._micProducer.rtpSender);
|
||||
@@ -1233,6 +1234,8 @@ class Taoyao extends RemoteClient {
|
||||
} else {
|
||||
console.warn("终端没有实现服务代理:", self);
|
||||
}
|
||||
self.videoActive = true;
|
||||
self.track = track;
|
||||
let codec;
|
||||
let encodings;
|
||||
const codecOptions = {
|
||||
|
||||
Reference in New Issue
Block a user