Update Timeline on Windows once setPositionState is called
Categories
(Core :: Audio/Video: Playback, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | affected |
People
(Reporter: nerixdev, Unassigned)
Details
On Windows, applications can specify metadata about the playing media. This is already done through the MediaSession API. But applicationa may also provide information about the timing/timeline/position of the content.
Websites can already broadcast the position-state, however this position-state will be private to Firefox and Windows will never find out.
Although the user can't see the position, there's a way for another application to read this information (through GlobalSystemMediaTransportControlsSession#GetTimelineProperties). It also emits events when the timeline changes.
It would be benifitial for applications to be able to get the timeline of the browser.
This doesn't work on Chrome, but an example application would be Spotify. Spotify broadcasts its timeline to other apps.
I'd guess in the end it's a call to SystemMediaTransportControls.UpdateTimelineProperties.
Hi,
thank you for your suggestion. This could be a good enhancement, hopefully it will be taken into consideration in the future.
I'll mark this Enhancement as New for visibility.
Regards,
Jerónimo.
Comment 2•4 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 revert this change in case you think the bot is wrong.
I researched a bit and found that Firefox is using the ISystemMediaTransportControls
which is included via windows.media.h
(See WindowsSMTCProvider
). However, I was referring to the SystemMediaTransportControls
class.
To be able to expose the position, the provider would need to be refactored to use the SystemMediaTransportControls
class.
I'm not even sure if that would be possible. ISystemMediaTransportControls
' documentation says that it isn't regularly updated anymore and it doesn't have a way to set the timeline. SystemMediaTransportControls
is (maybe?) only for UWP apps so it wouldn't be applicable for Firefox. In addition, the support for Windows 8.1 should be looked at.
Description
•