Wish: WebAPI for Remote Control Clients (controls on lock screen)

RESOLVED FIXED

Status

()

Core
DOM: Device Interfaces
--
enhancement
RESOLVED FIXED
5 years ago
5 months ago

People

(Reporter: panzi, Unassigned)

Tracking

Trunk
All
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
I wish there where an API for web apps that would let you put some controls onto the lock screen of an Android/Firefox OS device. In particular I would like to add media playback controls for my web based player: http://greattuneplayer.jit.su/

Android 4.2 has a lock screen widget feature and (more specific to my use case) even older Android version have a RemoteControlClient interface that exposes media playback functionality to the lock screen:
http://developer.android.com/reference/android/media/RemoteControlClient.html

I don't feel up to the task to specify such an API, but I'd really like to use one. So I wish Mozilla would specify this as one of their proposed WebAPIs and implement it for Android and Firefox OS (and then I would wish Google and Apply would implement the same API... well, I can dream).

Slightly off topic: Actually I'd like this API also on the desktop. Under Linux it (a RemoteControlClient like API) should expose a mpris2 D-Bus API implementation. Then I could use a plasma widget I once wrote (http://kde-look.org/content/show.php/?content=144437) to assign the media keys of my keyboard to the playback controls of the web based music player. Again, dreaming.
(Reporter)

Comment 1

5 years ago
I hope it is correct to post a wishlist item here as an "enhancement". I just wanted this noted so that maybe someone at Mozilla that thinks about new APIs for web apps knows my use case.

Updated

5 years ago
Component: Web Apps → DOM
Product: Firefox for Android → Core
QA Contact: aaron.train

Updated

5 years ago
Component: DOM → DOM: Device Interfaces
This now exists as the MediaSession API. https://wicg.github.io/mediasession/
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.