sereneblue / chameleon

WebExtension port of Random Agent Spoofer
https://sereneblue.github.io/chameleon
GNU General Public License v3.0
507 stars 53 forks source link

Non-FF profiles cause HMTL5 audio to be distorted #127

Closed WPFilmmaker closed 5 years ago

WPFilmmaker commented 5 years ago

Expected Behavior

Chameleon does not interfere with the quality of html5 videos.

Current Behavior

On some websites using html5 players, audio is distorted.Disabling chameleon fixes the problem. Weirdly this doesn't happen on all sites using html5 audio. Even more weirdly it seems that it is one of the spoofed presets that it is causing issue.

After some testing (results below) my conclusion is that it is not chameleon per se the issue, but when chameleon uses a profile which is not FF.

This is a problem not only because distorted audio is a pain.. but also because FF marketshare is quite low...so users can't just stick to FF as spoof because others cause issues with audio.

Note: Seems that FF is notorious for causing distorted audio on linux (so it appears from the many results on google), but I don't think this is a FF issue, more like a chameleon one as when I disable it, audio works fine.

Context (Environment)

Firefox 64, 64bit Linux, Lubuntu 16.04.3

WEBSITES AFFECTED:

Any help?

sereneblue commented 5 years ago

Thanks for finding this bug! I've also encountered this issue but didn't think Chameleon was the cause (Linux user). I'll look into this and will hopefully find a fix soon.

WPFilmmaker commented 5 years ago

@sereneblue Thanks to you for being always so fast in fixing things! Remember I said in another ticket that an update had fixed the audio, but then the issue reappeared intermittently so I decided to dig into the issue :D

sereneblue commented 5 years ago

This issue happens when you change the user agent to a desktop browser that isn't Firefox. I was able to replicate the distorted audio issue on Dailymotion by changing the user agent by using the general.useragent.override about:config option. What other sites are causing issues for you? Dailymotion isn't showing any errors in the console so its really difficult to find a fix.

WPFilmmaker commented 5 years ago

cough cough.. xvideos.com and xhamster.com have the same issue too ...cough cough... (NSFW).

Twitter videos embedded in twits (I am assuming they are hosted on twitter) are affected too.

Vimeo.com and Facebook videos are not affected.

WPFilmmaker commented 5 years ago

@sereneblue Do you have any updates on this? Accidentally I was able to replicate the bug also with User-Agent Switcher by Alexander Schlarb (https://addons.mozilla.org/en-US/firefox/addon/uaswitcher/) which I was testing for #148.

So it seems that FF distorts audio on certain HTML5 videos when UA is faked...

Could you try to reproduce this with User-Agent Switcher?

sereneblue commented 5 years ago

I mentioned earlier in this issue that a simple user agent change can trigger the distorted audio so it's probably the content that's being served that's causing issues. I'm still not sure what's the root cause. I will probably open a bug on Mozilla's issue tracker.

sereneblue commented 5 years ago

There is a bug open on the issue tracker. Since this seems to be a Firefox problem rather than a Chameleon one, I'll be closing this issue.