This commit is contained in:
yumoqing 2024-10-12 11:37:38 +08:00
parent 0db3f732a7
commit b995238677

View File

@ -409,7 +409,7 @@ bricks.RTCP2PConnect = class {
}
}
async changeLocalVideoStream(peer, new_stream){
var pc = this.peers[peer.id].pc,
var pc = this.peers[peer.id].pc;
const senders = pc.getSenders();
const oldVideoTrackSender = senders.find(sender => sender.track && sender.track.kind === 'video');
if (oldVideoTrackSender) {