1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2025-09-03 15:31:32 +02:00

Fix resolution

This commit is contained in:
Marc 2018-12-13 21:34:30 +01:00
parent f0672ec631
commit cf8b067f83

View file

@ -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>