diff --git a/source/utils/deviceCapabilities.brs b/source/utils/deviceCapabilities.brs index e4340e5f..fbc236db 100644 --- a/source/utils/deviceCapabilities.brs +++ b/source/utils/deviceCapabilities.brs @@ -778,8 +778,15 @@ function GetDirectPlayProfiles() as object } } ' all possible codecs - videoCodecs = ["h264", "mpeg4 avc", "vp8", "hevc", "vp9", "av1", "mpeg4", "mpeg2"] - audioCodecs = ["mp3", "mp2", "pcm", "lpcm", "wav", "ac3", "ac4", "aiff", "wma", "flac", "alac", "aac", "opus", "dts", "wmapro", "vorbis", "eac3"] + videoCodecs = ["h264", "mpeg4 avc", "vp8", "hevc", "vp9", "av1", "h263", "mpeg1"] + audioCodecs = ["mp3", "mp2", "pcm", "lpcm", "wav", "ac3", "ac4", "aiff", "wma", "flac", "alac", "aac", "opus", "dts", "wmapro", "vorbis", "eac3", "mpg123"] + ' respect user settings + if m.global.session.user.settings["playback.mpeg4"] + videoCodecs.push("mpeg4") + end if + if m.global.session.user.settings["playback.mpeg2"] + videoCodecs.push("mpeg2") + end if ' check video codecs for each container for each container in supportedCodecs for each videoCodec in videoCodecs @@ -797,7 +804,7 @@ function GetDirectPlayProfiles() as object end for end for - ' user settings override what the device thinks + ' user setting overrides if m.global.session.user.settings["playback.mpeg4"] for each container in supportedCodecs if not arrayHasValue(supportedCodecs[container]["video"], "mpeg4") @@ -805,13 +812,6 @@ function GetDirectPlayProfiles() as object end if end for end if - if m.global.session.user.settings["playback.mpeg2"] - for each container in supportedCodecs - if not arrayHasValue(supportedCodecs[container]["video"], "mpeg2video") - supportedCodecs[container]["video"].push("mpeg2video") - end if - end for - end if ' check audio codecs for each container for each container in supportedCodecs