Skip to content

Commit

Permalink
Include Panasonic Smart TVs in positive DTS gate
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaquim Monserrat committed Jul 11, 2022
1 parent ae5d369 commit 9be29cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/remux/mp4-remuxer.ts
Expand Up @@ -33,6 +33,7 @@ const MPEG_AUDIO_SAMPLE_PER_FRAME = 1152;

let chromeVersion: number | null = null;
let safariWebkitVersion: number | null = null;
let isPanasonicTV: boolean | null = null;
let requiresPositiveDts: boolean = false;

export default class MP4Remuxer implements Remuxer {
Expand Down Expand Up @@ -67,9 +68,13 @@ export default class MP4Remuxer implements Remuxer {
const result = navigator.userAgent.match(/Safari\/(\d+)/i);
safariWebkitVersion = result ? parseInt(result[1]) : 0;
}
if (isPanasonicTV === null) {
isPanasonicTV = navigator.userAgent.includes('Panasonic');
}
requiresPositiveDts =
(!!chromeVersion && chromeVersion < 75) ||
(!!safariWebkitVersion && safariWebkitVersion < 600);
(!!safariWebkitVersion && safariWebkitVersion < 600) ||
isPanasonicTV;
}

destroy() {}
Expand Down

0 comments on commit 9be29cc

Please sign in to comment.