1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-14 04:35:57 +01:00

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

View file

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