Closed Bug 1771039 Opened 2 years ago Closed 1 month ago

Implement MPNowPlayingInfoCenter Seekbar control on MacOS

Categories

(Core :: Widget: Cocoa, task)

All
macOS
task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: chunmin, Assigned: floppa9)

References

Details

Attachments

(2 files)

Attached image ScreenShot.png

We should allow MacOS users to seek the playback via the system control UI on the menu bar.

I am not familiar with the mac code for this, but it looks like we should implement changePlaybackPositionCommand somewhere around MediaHardwareKeysEventSourceMacMediaCenter::BeginListeningForEvents

I guess we can retrieve the seek time from MPChangePlaybackPositionCommandEvent.positionTime, which is what Chromium does [1]

[1] https://source.chromium.org/chromium/chromium/src/+/main:components/system_media_controls/mac/remote_command_center_delegate_cocoa.mm;l=69;drc=5bcaa24936811d975e297d8d1877f948bc4414c3

See Also: → 1621403
See Also: → 1739151
Assignee: nobody → floppa9
Status: NEW → ASSIGNED
See Also: → 1683020
See Also: → 1922220
Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/42b4bac7dae6 Implement media center seek controls on macos r=alwu
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Component: Audio/Video: Playback → Widget: Cocoa
Blocks: 1739151
See Also: 1739151
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: