Toggling between Bluetooth headphones and not while media is playing causes media to stop for an extended duration
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
People
(Reporter: dbaker, Assigned: padenot)
References
Details
Easiest way to see this is to play a video in YouTube through Firefox on Android.
Setup:
- Bluetooth headphones that are paired to Android device but not currently connected.
STR:
- Begin playing a video in YouTube without Bluetooth headphones connected.
- Connect Bluetooth headphones.
- Wait for media to resume (this can take up to around 20 seconds to resume)
- Disconnect Bluetooth headphones
- Wait for media to resume
- Repeat connecting and disconnecting Bluetooth after media resumes.
Actual Result:
- Video and audio stop playing and do not resume for several seconds. If this is repeated no media will play from the tab from any sites.
Expected Result:
- Toggling audio output between Bluetooth and the phones speakers will not create a long delay between media resuming. It should also never result in a state where media no longer plays.
Comment 1•2 years ago
|
||
The severity field is not set for this bug.
:jimm, could you have a look please?
For more information, please visit BugBot documentation.
Comment 2•2 years ago
|
||
I've reproduced the twenty second delay on my samsung flip. Also shutting down my bluetooth earbuds caused the media to pause. Not great behavior here. Paul any ideas on why we get that huge delay in video playback? My earbuds connected quickly but it took a while for Firefox to 'catch up.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
Dan, what headphones and phone are you using?
The expected behaviour is as such (per Android's recommendation :
- if audio is playing on the speaker, connecting a device shouldn't pause the audio
- if audio is playing on headphones (wired or blutooth), and it's disconnected, audio should pause
This is what I'm experiencing (without delay) on a Sony Xperia 5 II (my personal device) and a pair of Sony WHX1000-MK3. I can reproduce the delay on a Pixel 4 with the same headphones.
I'm investigating.
| Assignee | ||
Comment 4•2 years ago
|
||
sorry, forgot to NI. Dan, iirc you use a pixel as well?
| Assignee | ||
Comment 5•2 years ago
|
||
I my case, it never seem to recover, on the pixel.
| Reporter | ||
Comment 6•2 years ago
|
||
I was testing a Pixel 6 Pro with pixel bud headphones. For me starting a YouTube video on Nightly without the headphones connected and then connecting the headphones while a video was playing resulted in media being paused for ~20 seconds. Media did resume for me but following the same steps has resulted in it never recovering.
| Assignee | ||
Comment 7•2 years ago
|
||
A series to fix this is in https://github.com/mozilla/cubeb/pull/752.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 8•2 years ago
|
||
Hello all!
We've verified on the Fenix Nightly 118.0a1 build from 8/1 with the following devices:
- Lenovo tab M10 (Android 10),
- Google Pixel 6 (Android 14), and
- Oppo Find X3 Lite (Android 11), and
- Energy Neckband 3 Bluetooth headset.
On all three devices, the behavior was:
- when audio is playing on the speaker, connecting a device doesn't pause the audio,
- when audio is playing on headphones (bluetooth), and it's disconnected, audio pauses.
@Dan Baker, could you retest with your devices, please?
Updated•2 years ago
|
| Reporter | ||
Comment 9•2 years ago
|
||
(In reply to miralobontiu from comment #8)
Hello all!
We've verified on the Fenix Nightly 118.0a1 build from 8/1 with the following devices:
- Lenovo tab M10 (Android 10),
- Google Pixel 6 (Android 14), and
- Oppo Find X3 Lite (Android 11), and
- Energy Neckband 3 Bluetooth headset.
On all three devices, the behavior was:
- when audio is playing on the speaker, connecting a device doesn't pause the audio,
- when audio is playing on headphones (bluetooth), and it's disconnected, audio pauses.
@Dan Baker, could you retest with your devices, please?
On my Pixel 6 I see an improvement, are you able to do some more testing to see if you see the below issues?
- Video does not resume at the same time as the audio always when switching to Bluetooth. Watching something on YouTube for example the video of someone speaking and their audio gets out of sync.
- I see a problem with repeating the steps to switch between my Pixel's phone speakers and Bluetooth headphones that the tab gets into a state where it will no longer play any media requiring it to be closed.
Comment 10•2 years ago
•
|
||
Hello Dan,
I've investigated further more this switching on/off to Bluetooth, and these are my findings:
- switching Bluetooth on, pauses the video on the phone for 1-2 seconds, but on the headset everything sounds good - therefor they are out of sync briefly, but in just a few seconds, they sync again - this behavior was only reproduced on Pixel 6 (Android 14),
- switching Bluetooth on, doesn't pause the video on the phone, on the headset everything sounds good - there aren't any out of sync issues - this behavior was only reproduced on Oppo Find X3 Lite (Android 11),
- switching Bluetooth off, pauses the video, until I've manually tapped the play option, on both devices.
Tested on youtube.com, vimeo.com, cnn.com live videos.
Updated•2 years ago
|
Updated•2 years ago
|
Description
•