From 913a26ed98525a74f3ab339bd4330145ab9815d5 Mon Sep 17 00:00:00 2001 From: Agajan J Date: Mon, 18 Dec 2023 07:50:33 -0800 Subject: [PATCH] Fix ID3 Decoding On PlayStation 4 (#6048) Excluding PS4 platform from TextDecoder use, because it is partially implemented there and does not return correct results. --- src/demux/id3.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/demux/id3.ts b/src/demux/id3.ts index 1959a9d354b..69f864f82a3 100644 --- a/src/demux/id3.ts +++ b/src/demux/id3.ts @@ -397,6 +397,12 @@ export const testables = { let decoder: TextDecoder; function getTextDecoder() { + // On Play Station 4, TextDecoder is defined but partially implemented. + // Manual decoding option is preferable + if (navigator.userAgent.includes('PlayStation 4')) { + return; + } + if (!decoder && typeof self.TextDecoder !== 'undefined') { decoder = new self.TextDecoder('utf-8'); }