hls.js 1.4.13 → 1.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -129,5 +129,5 @@
129
129
  "url-toolkit": "2.2.5",
130
130
  "wrangler": "2.20.0"
131
131
  },
132
- "version": "1.4.13"
132
+ "version": "1.4.14"
133
133
  }
package/src/demux/id3.ts CHANGED
@@ -397,6 +397,12 @@ export const testables = {
397
397
  let decoder: TextDecoder;
398
398
 
399
399
  function getTextDecoder() {
400
+ // On Play Station 4, TextDecoder is defined but partially implemented.
401
+ // Manual decoding option is preferable
402
+ if (navigator.userAgent.includes('PlayStation 4')) {
403
+ return;
404
+ }
405
+
400
406
  if (!decoder && typeof self.TextDecoder !== 'undefined') {
401
407
  decoder = new self.TextDecoder('utf-8');
402
408
  }