2015-04-04, 08:41
(2015-04-04, 06:43)Warner306 Wrote: I also think using height would do the trick:
if (srcHeight >= 481) and (srcHeight <= 576) "576p"
if (srcHeight >= 577) and (srcHeight <= 720) "720p"
if (srcHeight >= 721) and (srcHeight <= 1080) "1080p"
if (srcHeight >= 1081) and (srcHeight <= 2160) "UHD"
else if (srcHeight <= 575) "SD"
Edit: to remove width variable.
576 is height for PAL SD. So I wouldn't separate it.