Page 1 of 1

OSS support in firefox

Posted: Tue Sep 02, 2014 10:25 am
by waterlaz
Currently there is no OSS support in firefox when playing html5 video.

I believe I've fixed this.

Firefox still requires alsalibs to compile but sound output is done via OSS.

In order to get OSS support you need you replace the file media/libcubeb/src/cubeb_alsa.c with this file http://kawais.mooo.com/cubeb_alsa.c
I havn't made a patch out of it becouse this is actually a rewrite of the original file from scratch.

I think it should not be hard to make the ALSA/OSS choice optional. Unfortunately, I lack any knowledge of how autotools work.
So if anyone knows what should be done and is interested in a proper firefox support, please help me.


Patch for 31.0 : http://kawais.mooo.com/repos/firefox-patches/oss-31.0.patch
Patch for trunk: http://kawais.mooo.com/repos/firefox-patches/oss-trunk.patch

use the --enable-oss option to configure for OSS

Re: OSS support in firefox

Posted: Wed Sep 03, 2014 10:15 am
by waterlaz
OK, I've made a patch for the latest developers version in mercurial (doesn't work in 31.0). Get the patch here http://kawais.mooo.com/repos/firefox-patches/oss-trunk.patch

I'll see if I can make a patch for 31.0

Re: OSS support in firefox

Posted: Wed Sep 03, 2014 11:11 am
by waterlaz

Re: OSS support in firefox

Posted: Wed Sep 03, 2014 11:57 am
by waterlaz
I've forgot to mention that the patches add a --enable-oss option that you have to use.

Re: OSS support in firefox

Posted: Sat Oct 11, 2014 10:02 am
by Xylemon
I'm not sure if this is the right thread, but I ask because it's part of the Mozilla family: Does anyone have a patch for Seamonkey 2.29? I desperately need this.

Re: OSS support in firefox

Posted: Sat Oct 11, 2014 10:32 pm
by oss117
Here is the same patch as for Firefox, but for Pale Moon v25.0, with the rejects from configure.in sorted out. You will have to delete the configure script and run autoconf (v2.13) to restore that script from the patched configure.in file.

Re: OSS support in firefox

Posted: Sun Oct 12, 2014 12:51 am
by nuc
Btw here's the upstream bugreport where the patch is being worked on -> https://bugzilla.mozilla.org/show_bug.cgi?id=1021761

Re: OSS support in firefox

Posted: Tue Jul 14, 2015 11:42 pm
by Xylemon
Seems like the people fixing the bug have been silent since February...

Re: OSS support in firefox

Posted: Wed Jul 15, 2015 11:03 pm
by oss117
The patch has since been integrated into Pale Moon.

Re: OSS support in firefox

Posted: Fri Jul 17, 2015 4:36 am
by Xylemon
oss117 wrote:The patch has since been integrated into Pale Moon.


I was actually referring to the Firefox bug. Also, a friend is working on making the above Palemoon patch work with Seamonkey. So far it actually compiles fine, but if you play anything with audio (like a webm or YT video), Seamonkey segfaults sadly. Hopefully I'll be able to post here soon enough with a working solution.