mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2024-11-23 01:13:25 +01: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,
|
||||
});
|
||||
}
|
||||
|
||||
clearResolutions();
|
||||
getResolution(channelToReproduce, updateResolution);
|
||||
}
|
||||
}
|
||||
|
@ -166,7 +166,7 @@
|
|||
|
||||
function updateResolution(resolutions) {
|
||||
console.log("Resoluciones: " + resolutions);
|
||||
document.getElementById("video-resolution").innerHTML = "";
|
||||
|
||||
for (i = 0; i < resolutions.length; i++) {
|
||||
var resolutionToAdd = resolutions[i];
|
||||
if (i < resolutions.length - 1){
|
||||
|
@ -176,6 +176,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
function clearResolutions() {
|
||||
document.getElementById("video-resolution").innerHTML = "";
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue