mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2025-09-03 15:31:32 +02:00
Fix resolution
This commit is contained in:
parent
f0672ec631
commit
cf8b067f83
1 changed files with 6 additions and 2 deletions
|
@ -134,7 +134,7 @@
|
||||||
source: channelToReproduce,
|
source: channelToReproduce,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
clearResolutions();
|
||||||
getResolution(channelToReproduce, updateResolution);
|
getResolution(channelToReproduce, updateResolution);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@
|
||||||
|
|
||||||
function updateResolution(resolutions) {
|
function updateResolution(resolutions) {
|
||||||
console.log("Resoluciones: " + resolutions);
|
console.log("Resoluciones: " + resolutions);
|
||||||
document.getElementById("video-resolution").innerHTML = "";
|
|
||||||
for (i = 0; i < resolutions.length; i++) {
|
for (i = 0; i < resolutions.length; i++) {
|
||||||
var resolutionToAdd = resolutions[i];
|
var resolutionToAdd = resolutions[i];
|
||||||
if (i < resolutions.length - 1){
|
if (i < resolutions.length - 1){
|
||||||
|
@ -176,6 +176,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearResolutions() {
|
||||||
|
document.getElementById("video-resolution").innerHTML = "";
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue