|
@@ -157,10 +157,10 @@ async function handleJoin() {
|
|
|
playLocal();
|
|
|
// }, 1000);
|
|
|
|
|
|
- if (!rtcStore.isLeader) {
|
|
|
- localStream.muteAudio();
|
|
|
- console.log('参加者默认-muteAudio');
|
|
|
- }
|
|
|
+ // if (!rtcStore.isLeader) {
|
|
|
+ localStream.muteAudio();
|
|
|
+ console.log('参加者默认-muteAudio');
|
|
|
+ // }
|
|
|
|
|
|
localStream.on('error', (error) => {
|
|
|
if (error.getCode() === 0x4043) {
|
|
@@ -402,7 +402,8 @@ async function handleStreamSubscribed(event) {
|
|
|
}
|
|
|
await nextTick();
|
|
|
const playRemote = () => {
|
|
|
- const playId = 'camera_remote_box_' + rtcStore.userId;
|
|
|
+ // const playId = 'camera_remote_box_' + rtcStore.userId;
|
|
|
+ const playId = 'cameraRemoteBox';
|
|
|
remoteStream
|
|
|
.play(playId)
|
|
|
.then(() => {
|
|
@@ -437,6 +438,9 @@ async function handleStreamSubscribed(event) {
|
|
|
closeTxt: t('base.cancel'),
|
|
|
},
|
|
|
() => {
|
|
|
+ // rtcStore.remoteStreams.forEach((item) => {
|
|
|
+ // item.resume();
|
|
|
+ // });
|
|
|
remoteStream.resume();
|
|
|
},
|
|
|
);
|