Closed Bug 1623611 Opened 5 years ago Closed 5 years ago

Can firefox implement SystemMediaTransportControls Class?

Categories

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

75 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sasseones, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

Play a video or song from youtube or soundcloud

Actual results:

i can't press pause / play or skip and it's not showing up in the volume menu where songs that are playing in groove or microsoft edge, or chrome show up.

Expected results:

i expected to at least be abe to pause / play the video with the keys on my keyboard but it ideally i want it to support the SystemMediaTransportControls Class https://docs.microsoft.com/en-us/uwp/api/Windows.Media.SystemMediaTransportControls

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

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

Marc, are you able to reproduce this issue on Windows?

Flags: needinfo?(marc.streckfuss)

This extension has js functions to scrape and interact with multiple media websites. Whilst this isn't the most elegant solution, it could work as a temporary one until a better api is devised for this, or if a better one exsists that would work too, but i looked for a few hours and couldn't find anything like that.

https://github.com/tjhrulz/WebNowPlaying-BrowserExtension/tree/master/Websites

I think this is "invalid", because:
Firefox 75 means FF Beta, but the prefs are only enabled on Nightly, but there we've already implemented all of this (minus the artwork, currently), so:

If you enable media.hardwaremediakeys.enabled and dom.media.mediasession.enabled, you should start seeing this working.
The first one is part of FF 74, so already shipped for you and the Media Session will be in FF 76.

Flags: needinfo?(marc.streckfuss) → needinfo?(alwu)

Ah, make sense, I misread the description and thought the issue is that SMTC is not working.


Hi, Could you try the way mentioned in comment4 and see if it works for you? Thank you.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(alwu) → needinfo?(sasseones)
Resolution: --- → FIXED
Resolution: FIXED → WORKSFORME

oh good work then thanks for the help <3

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

Attachment

General

Creator:
Created:
Updated:
Size: