Browse Source

Fix playing new MediaStreamTrack

master
Eduard Kuzmenko 3 years ago
parent
commit
bff2966243
  1. 5
      src/lib/calls/callInstanceBase.ts

5
src/lib/calls/callInstanceBase.ts

@ -193,9 +193,10 @@ export default abstract class CallInstanceBase<E extends EventListenerListeners>
element.play().catch(noop); element.play().catch(noop);
} }
if(element.srcObject !== useStream) { // ! EVEN IF MEDIASTREAM IS THE SAME NEW TRACK WON'T PLAY WITHOUT REPLACING IT WHEN NEW PARTICIPANT IS ENTERING !
// if(element.srcObject !== useStream) {
element.srcObject = useStream; element.srcObject = useStream;
} // }
} }
return source; return source;

Loading…
Cancel
Save