Skip to content

Commit

Permalink
Merge pull request #4780 from jeremies/bugfix/use-positive-dts-with-p…
Browse files Browse the repository at this point in the history
…anasonic-smart-tvs

Include Panasonic Smart TVs and other old browsers in positive DTS gate
  • Loading branch information
robwalch committed Jul 14, 2022
2 parents 021e647 + dfa9e51 commit fc2243e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/remux/mp4-remuxer.ts
Expand Up @@ -67,9 +67,10 @@ export default class MP4Remuxer implements Remuxer {
const result = navigator.userAgent.match(/Safari\/(\d+)/i);
safariWebkitVersion = result ? parseInt(result[1]) : 0;
}
requiresPositiveDts =
(!!chromeVersion && chromeVersion < 75) ||
(!!safariWebkitVersion && safariWebkitVersion < 600);
requiresPositiveDts = !(
(!!chromeVersion && chromeVersion >= 75) ||
(!!safariWebkitVersion && safariWebkitVersion >= 600)
);
}

destroy() {}
Expand Down

0 comments on commit fc2243e

Please sign in to comment.