diff options
Diffstat (limited to 'web/script/player/profiles.ts')
-rw-r--r-- | web/script/player/profiles.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/script/player/profiles.ts b/web/script/player/profiles.ts index 5402721..3344ef6 100644 --- a/web/script/player/profiles.ts +++ b/web/script/player/profiles.ts @@ -40,7 +40,10 @@ export class ProfileSelector { if (!this.is_init) await this.init(), this.is_init = true; const sup_remux = await this.remux_supported(track); - if (!sup_remux && !this.profiles.length) return this.player.logger?.log("None of the available codecs are supported. The Media can't be played back.") + if (!sup_remux && !this.profiles.length) { + this.player.logger?.log("None of the available codecs are supported. This track can't be played back.") + return false + } const min_prof = sup_remux ? -1 : 0 const co = profile.value?.order ?? min_prof // TODO use actual bitrate as a fallback. the server should supply it. @@ -60,6 +63,7 @@ export class ProfileSelector { } // profile.value = profs[0] + return true } log_change(track: number, p: EncodingProfileExt | undefined) { |