mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 01:56:55 +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
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "frankerfacez",
|
"name": "frankerfacez",
|
||||||
"author": "Dan Salvato LLC",
|
"author": "Dan Salvato LLC",
|
||||||
"version": "4.20.62",
|
"version": "4.20.63",
|
||||||
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -907,7 +907,7 @@ export default class Player extends Module {
|
||||||
let comp = video._ffz_compressor;
|
let comp = video._ffz_compressor;
|
||||||
if ( ! comp ) {
|
if ( ! comp ) {
|
||||||
const ctx = new AudioContext();
|
const ctx = new AudioContext();
|
||||||
if ( ctx.state === 'suspended' ) {
|
if ( ! IS_FIREFOX && ctx.state === 'suspended' ) {
|
||||||
this.log.info('Aborting due to browser auto-play policy.');
|
this.log.info('Aborting due to browser auto-play policy.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,10 +16,10 @@ export const PLAYER_ROUTES = [
|
||||||
'mod-view', 'user-home'
|
'mod-view', 'user-home'
|
||||||
];
|
];
|
||||||
|
|
||||||
const HAS_PITCH = (() => {
|
/*const HAS_PITCH = (() => {
|
||||||
const el = createElement('video');
|
const el = createElement('video');
|
||||||
return el.preservesPitch != null || el.mozPreservesPitch != null
|
return el.preservesPitch != null || el.mozPreservesPitch != null
|
||||||
})();
|
})();*/
|
||||||
|
|
||||||
const HAS_COMPRESSOR = window.AudioContext && window.DynamicsCompressorNode != null;
|
const HAS_COMPRESSOR = window.AudioContext && window.DynamicsCompressorNode != null;
|
||||||
|
|
||||||
|
@ -1216,7 +1216,7 @@ export default class Player extends Module {
|
||||||
let comp = video._ffz_compressor;
|
let comp = video._ffz_compressor;
|
||||||
if ( ! comp ) {
|
if ( ! comp ) {
|
||||||
const ctx = new AudioContext();
|
const ctx = new AudioContext();
|
||||||
if ( ctx.state === 'suspended' ) {
|
if ( ! IS_FIREFOX && ctx.state === 'suspended' ) {
|
||||||
this.log.info('Aborting due to browser auto-play policy.');
|
this.log.info('Aborting due to browser auto-play policy.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue