Commit 39789dc8 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Make addSharedMedia go through newUpStream.

Otherwise the callbacks don't get set.
parent fc9bbf20
......@@ -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 => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment