1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-02 16:08:31 +00:00
* Fixed: Compressor not enabling on Firefox after most recent update.
This commit is contained in:
SirStendec 2021-02-12 15:54:08 -05:00
parent a473c6eb93
commit 9cecab8dd4
3 changed files with 5 additions and 5 deletions

View file

@ -907,7 +907,7 @@ export default class Player extends Module {
let comp = video._ffz_compressor;
if ( ! comp ) {
const ctx = new AudioContext();
if ( ctx.state === 'suspended' ) {
if ( ! IS_FIREFOX && ctx.state === 'suspended' ) {
this.log.info('Aborting due to browser auto-play policy.');
return;
}

View file

@ -16,10 +16,10 @@ export const PLAYER_ROUTES = [
'mod-view', 'user-home'
];
const HAS_PITCH = (() => {
/*const HAS_PITCH = (() => {
const el = createElement('video');
return el.preservesPitch != null || el.mozPreservesPitch != null
})();
})();*/
const HAS_COMPRESSOR = window.AudioContext && window.DynamicsCompressorNode != null;
@ -1216,7 +1216,7 @@ export default class Player extends Module {
let comp = video._ffz_compressor;
if ( ! comp ) {
const ctx = new AudioContext();
if ( ctx.state === 'suspended' ) {
if ( ! IS_FIREFOX && ctx.state === 'suspended' ) {
this.log.info('Aborting due to browser auto-play policy.');
return;
}