mirror of
https://github.com/jech/galene.git
synced 2024-11-12 19:55:59 +01:00
Make addSharedMedia go through newUpStream.
Otherwise the callbacks don't get set.
This commit is contained in:
parent
fc9bbf20ea
commit
39789dc89a
1 changed files with 2 additions and 2 deletions
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in a new issue