1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 16:45:58 +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) {
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 => {