mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-02 16:08:31 +00:00
4.20.63
* Fixed: Compressor not enabling on Firefox after most recent update.
This commit is contained in:
parent
a473c6eb93
commit
9cecab8dd4
3 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue