bugfix
This commit is contained in:
parent
0db3f732a7
commit
b995238677
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user