Commit 8ec0a44c authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix controls for down streams.

Now that down streams have labels, we need to distinguish on the
stream direction.
parent ce0571cb
......@@ -1447,7 +1447,7 @@ function addCustomControls(media, container, c, toponly) {
let volume = getVideoButton(controls, 'volume');
if(c.label === 'camera') {
if(c.up && c.label === 'camera') {
volume.remove();
} else {
setVolumeButton(media.muted,
......@@ -1457,7 +1457,7 @@ function addCustomControls(media, container, c, toponly) {
container.appendChild(controls);
}
if(!document.getElementById('topcontrols-' + c.localId)) {
if(c.up && !document.getElementById('topcontrols-' + c.localId)) {
let toptemplate =
document.getElementById('topvideocontrols-template').firstElementChild;
let topcontrols = cloneHTMLElement(toptemplate);
......
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