Added the ability for streams to be hidden in the player given

the correct setting in the presentation manifest
This commit is contained in:
Erik Thuning 2024-04-05 15:13:00 +02:00
parent 5ae4fb9ff4
commit 1182bed672

@ -1316,6 +1316,11 @@ input[type="range"]::-ms-track {
const streams = presentation.sources;
for(const key in streams) {
const stream = streams[key];
// skip setting up the stream if it is explicitly
// configured to be hidden.
if(stream['enabled'] === false) {
continue;
}
const streamRoot = parent.createChild('div',
{'class': 'stream'});
const video = streamRoot.createChild(