Make addSharedMedia go through newUpStream.
Otherwise the callbacks don't get set.
This commit is contained in:
+2
-2
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user