1
Fork 0

Make addSharedMedia go through newUpStream.

Otherwise the callbacks don't get set.
This commit is contained in:
Juliusz Chroboczek 2020-09-08 03:05:25 +02:00
parent fc9bbf20ea
commit 39789dc89a
1 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,7 @@ async function setMediaChoices() {
}
/**
* @param {string} id
* @param {string} [id]
*/
function newUpStream(id) {
let c = serverConnection.newUpStream(id);
@ -420,7 +420,7 @@ async function addShareMedia(setup) {
return;
}
let c = await serverConnection.newUpStream();
let c = newUpStream();
c.kind = 'screenshare';
c.stream = stream;
stream.getTracks().forEach(t => {