1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2024-12-25 16:52:30 +01: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,
});
}
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>