mirror of
https://github.com/jech/galene.git
synced 2024-11-10 02:35:58 +01:00
Fix controls for down streams.
Now that down streams have labels, we need to distinguish on the stream direction.
This commit is contained in:
parent
ce0571cb7a
commit
8ec0a44c09
1 changed files with 2 additions and 2 deletions
|
@ -1447,7 +1447,7 @@ function addCustomControls(media, container, c, toponly) {
|
||||||
|
|
||||||
let volume = getVideoButton(controls, 'volume');
|
let volume = getVideoButton(controls, 'volume');
|
||||||
|
|
||||||
if(c.label === 'camera') {
|
if(c.up && c.label === 'camera') {
|
||||||
volume.remove();
|
volume.remove();
|
||||||
} else {
|
} else {
|
||||||
setVolumeButton(media.muted,
|
setVolumeButton(media.muted,
|
||||||
|
@ -1457,7 +1457,7 @@ function addCustomControls(media, container, c, toponly) {
|
||||||
container.appendChild(controls);
|
container.appendChild(controls);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!document.getElementById('topcontrols-' + c.localId)) {
|
if(c.up && !document.getElementById('topcontrols-' + c.localId)) {
|
||||||
let toptemplate =
|
let toptemplate =
|
||||||
document.getElementById('topvideocontrols-template').firstElementChild;
|
document.getElementById('topvideocontrols-template').firstElementChild;
|
||||||
let topcontrols = cloneHTMLElement(toptemplate);
|
let topcontrols = cloneHTMLElement(toptemplate);
|
||||||
|
|
Loading…
Reference in a new issue