Pause gesture doesn't work for Bluetooth (pixel buds)
Categories
(Core :: Audio/Video: Playback, defect, P4)
Tracking
()
People
(Reporter: xor29a+bugzilla, Unassigned)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0
Steps to reproduce:
- Connect Pixel buds (A-Series) to OS.
- Play any web audio or video in Firefox.
- Touch Bluetooth headphone once to pause.
MacOS: 12.3, Firefox 98.0.2
All other gesures are working without issues: tap to resume during pause, double tap for the next track, triple tap for the previous track.
Also I've checked Chrome, and this is not happened, so it's not OS/hardware issue.
Please let me know if I can provide any logs or debug info.
Actual results:
Video/audio is not paused
Expected results:
Video/audio should be paused
Comment 1•3 years ago
|
||
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.
Comment 2•3 years ago
|
||
Would you mind to provide your about:support? And do you enable the pref media.hardwaremediakeys.enabled?
So you said only pausing from Pixel buds doesn't work, if you use the pause button on other devices (eg. keyboard, another bluetooth headset), would that pause media correctly?
Thank you.
Hi.
The issue is not reproducable anymore. Looks like after reconnecting the headphones everything works.
You may close the issue probably, or keep it for a while, in case I get it again...
Thank you
Comment 4•3 years ago
|
||
Close this bug per comment3.
Hi.
I got this again. I've tried reconnect headphones and restart browser, but it didn't help.
media.hardwaremediakeys.enabled is TRUE,
The same gesture on the same headphone is working in other apps. And I have an another headphones, where play/pause button is also working in Firefox without issues.
So affected is only Pixel buds in Firefox, and it's not always reproducable...
Comment 7•3 years ago
|
||
Okay, next time when you encounter this issue again, could you help me do following thing?
(1) close the current Firefox, and then open a private browsing window to see if it works or not.
(2) capture debug log by using MOZ_LOG=MediaControl:5 if you could reproduce the bug constantly.
Hi. I found a pattern:
When I open a new tab with audio/video. The pause work exactly once. After that all pause signals are ignored (but I can hear beep sound in a headphone, meaning the signal was sent). If I pause manually, I can resume with headphones without issue.
Same story in private mode.
| Reporter | ||
Comment 10•3 years ago
|
||
Comment 11•3 years ago
•
|
||
Hmm I am not sure if that is a bug for pixel buds... Firefox didn't receive a correct event when you press pause on the pixel buds.
So in this part of the log, we see OnActionPerformed 'Pause' which means Firefox received a pause event.
[Parent 44558: Main Thread]: D/MediaControl MediaControlKeyHandler=14751b5d0, OnActionPerformed 'Pause'
[Parent 44558: Main Thread]: D/MediaControl MediaController=14e52cc00, Id=83, Pause
[Parent 44558: Main Thread]: D/MediaControl MediaStatusManager=14e52cc90, UpdateMediaPlaybackState paused for context 83
[Parent 44558: Main Thread]: D/MediaControl MediaPlaybackStatus=14e52cdf8, Update playback state 'paused' for context 83
[Parent 44558: Main Thread]: D/MediaControl MediaStatusManager=14e52cc90, SetGuessedPlayState : 'paused'
[Parent 44558: Main Thread]: D/MediaControl MediaStatusManager=14e52cc90, UpdateActualPlaybackState : 'paused'
[Parent 44558: Main Thread]: D/MediaControl MediaController=14e52cc00, Id=83, Create a deactivation timer
[Parent 44558: Main Thread]: D/MediaControl MediaPlaybackStatus=14e52cdf8, Update audible state 'inaudible' for context 83
[Parent 44558: Main Thread]: D/MediaControl AudioFocusManager=1254fa890, Controller 83 loses audio focus
[Parent 44558: Main Thread]: D/MediaControl MediaControlKeySource=14bf762e0, SetPlaybackState 'paused'
[Parent 44558: Main Thread]: I/MediaControl MediaControlKeyManager=10b660300, playbackState=paused
[Parent 44558: Main Thread]: D/MediaControl MediaController=14e52cc00, Id=83, Dispatch event playbackstatechange
Then you pressed pixel buds again to resume the playback, OnActionPerformed 'Play'.
[Parent 44558: Main Thread]: D/MediaControl MediaControlKeyHandler=14751b5d0, OnActionPerformed 'Play'
[Parent 44558: Main Thread]: D/MediaControl MediaController=14e52cc00, Id=83, Play
[Parent 44558: Main Thread]: D/MediaControl MediaStatusManager=14e52cc90, UpdateMediaPlaybackState played for context 83
[Parent 44558: Main Thread]: D/MediaControl MediaPlaybackStatus=14e52cdf8, Update playback state 'played' for context 83
[Parent 44558: Main Thread]: D/MediaControl MediaStatusManager=14e52cc90, SetGuessedPlayState : 'playing'
[Parent 44558: Main Thread]: D/MediaControl MediaStatusManager=14e52cc90, UpdateActualPlaybackState : 'playing'
[Parent 44558: Main Thread]: D/MediaControl MediaController=14e52cc00, Id=83, Cancel deactivation timer
[Parent 44558: Main Thread]: D/MediaControl MediaPlaybackStatus=14e52cdf8, Update audible state 'audible' for context 83
[Parent 44558: Main Thread]: D/MediaControl AudioFocusManager=1254fa890, Controller 83 grants audio focus
[Parent 44558: Main Thread]: D/MediaControl MediaControlKeySource=14bf762e0, SetPlaybackState 'playing'
[Parent 44558: Main Thread]: I/MediaControl MediaControlKeyManager=10b660300, playbackState=playing
[Parent 44558: Main Thread]: D/MediaControl MediaController=14e52cc00, Id=83, Dispatch event playbackstatechange
However, you said that you tried to pause media again? But Firefox only received play event, that was why Firefox couldn't pause the playback.
[Parent 44558: Main Thread]: D/MediaControl MediaControlKeyHandler=14751b5d0, OnActionPerformed 'Play'
[Parent 44558: Main Thread]: D/MediaControl MediaController=14e52cc00, Id=83, Play
[Parent 44558: Main Thread]: D/MediaControl MediaControlKeyHandler=14751b5d0, OnActionPerformed 'Play'
[Parent 44558: Main Thread]: D/MediaControl MediaController=14e52cc00, Id=83, Play
[Parent 44558: Main Thread]: D/MediaControl MediaControlKeyHandler=14751b5d0, OnActionPerformed 'Play'
[Parent 44558: Main Thread]: D/MediaControl MediaController=14e52cc00, Id=83, Play
Updated•3 years ago
|
Description
•