Closed Bug 1801222 Opened 3 years ago Closed 3 years ago

Bluetooth audio video latency on Android worse than Chrome browsers

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 108
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: padenot)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Android 12; Mobile; rv:108.0) Gecko/108.0 Firefox/108.0
Firefox for Android

Steps to reproduce:

Watch a video in Firefox for Android using Bluetooth earbuds, eg, on BBC News or YouTube. Note that this doesn't seem to be YouTube specific.

Actual results:

Noticeable audio lag on Firefox that is not present in chrome browsers or the YouTube app.

Expected results:

Video and audio are synced.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

Paul, any thoughts?

Flags: needinfo?(padenot)

Jamie, would you mind giving us the kind of Android device you're using? Are you effectively using Android 12 as noted in your message? I'm not seeing this locally on my devices.

Flags: needinfo?(padenot) → needinfo?(bugzilla)

My device is an up to date Microsoft Surface Duo with Android 12L. I've recorded a demo here: https://www.youtube.com/watch?v=sw9GpYwhSkM
I'm happy to provide the original if it would help. On the other hand I'm happy for you to close this bug if you think it's something specific with my setup or just not an issue. Thanks.

Flags: needinfo?(bugzilla)

Yeah, it's indeed not synced properly on this device. I'll look into it, thanks for filing!

Assignee: nobody → padenot
Status: UNCONFIRMED → NEW
Ever confirmed: true

Jamie, can I ask you one more thing, would you mind installing Firefox for Android Nightly, that installs fine alongside a regular Firefox, and create a pref called media.cubeb.backend, that you set to the string aaudio, restart Firefox and try again with a bluetooth device?

Attached is a screencast that shows the whole process.

Flags: needinfo?(bugzilla)

Nightly with that setting appears to still show the lag.

Flags: needinfo?(bugzilla)

Interesting, it's better for me on a Sony Xperia 5 II + airpods, I'll continue digging.

Not that it was terribly bad before, but it's perceptually worse on videos specially made for A/V sync check.

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)

I've got us a fix in https://github.com/mozilla/cubeb/pull/735, I'll import it soon in Firefox.

With this, A/V sync is perfect in Firefox regardless of the audio output device I'm using (wired/speaker/bluetooth).

Flags: needinfo?(jmathies)

Fixed by enabling the fixed AAudio backend, in bug 1809185. Reporter, can you please test with an up-to-date Firefox Nightly, available in the Play Store? This version is going to be released as stable on the 14th of February.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(bugzilla)
Resolution: --- → FIXED

Yes it appears fixed in Nightly. Thanks!

Flags: needinfo?(bugzilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: