Closed Bug 1620340 Opened 4 years ago Closed 4 years ago

Implement the `SetMediaMetadata()` for MPRISServiceHandler and WindowsSMTCProvider

Categories

(Core :: Audio/Video: Playback, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: alwu, Assigned: MeFisto94)

References

Details

Attachments

(4 files)

After bug1592037, we are able to propagate the metadata from media session to the platform-specific event source, so we should display that metadata on virtual control interface by using platform-specific API.

Marc, are you interested in implementing this one?

Flags: needinfo?(marc.streckfuss)
Assignee: nobody → marc.streckfuss
Status: NEW → ASSIGNED
Flags: needinfo?(marc.streckfuss)

Just one question about the contents of MediaMetadataBase:
What do they contain if metadata is only set partially? Empty or null strings?
Or will the Controller ensure that those properties are always available and I can just set them?

(In reply to Marc Streckfuß [:MeFisto94] from comment #2)

Just one question about the contents of MediaMetadataBase:
What do they contain if metadata is only set partially? Empty or null strings?
Or will the Controller ensure that those properties are always available and I can just set them?

I will ensure that at least metadata should contain title and artwork in bug1615112, I'll go to implement that after landing bug1592037.
Thank you!

But that means the artist remains "empty"?
My question just is: How should I check for not set metadata elements?

Like in the previous approach we had Maybe's but the MediaMetadataBase does not contain Maybes

If the artist name is empty, then we would replace it with website's title. If the artwork is empty, then we would replace it with default favicon icon.

Depends on: 1615112
Attachment #9132559 - Attachment description: Bug 1620340 - part2: Propagate SetMediaMetadata from the MediaControlKeysManager to the native eventsource, r=alwu → Bug 1620340 - part2: Propagate MediaMetadata from the MediaControlKeysManager to the native event source, r=alwu
Attachment #9132559 - Attachment description: Bug 1620340 - part2: Propagate MediaMetadata from the MediaControlKeysManager to the native event source, r=alwu → Bug 1620340 - part2: Propagate SetMediaMetadata from the MediaControlKeysManager to the native event source, r=alwu
Attachment #9132561 - Attachment description: Bug 1620340 - part3: Cosmetic Changes to MediaControlKeysManager.cpp, r=alwu → Bug 1620340 - part3: Cosmetic Changes to MediaControlKeysManager.cpp: rearranged the code, so that the comment is directly above the relevant statement (see https://phabricator.services.mozilla.com/D63459#inline-381952), r=alwu
Attachment #9132561 - Attachment description: Bug 1620340 - part3: Cosmetic Changes to MediaControlKeysManager.cpp: rearranged the code, so that the comment is directly above the relevant statement (see https://phabricator.services.mozilla.com/D63459#inline-381952), r=alwu → Bug 1620340 - part3: Cosmetic Changes to MediaControlKeysManager, r=alwu
Pushed by marc.streckfuss@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/23cb383004f6
part1: Implement SetMediaMetadata() for the MPRISServiceHandler, r=alwu
https://hg.mozilla.org/integration/autoland/rev/3bd0b38c4220
part2: Propagate SetMediaMetadata from the MediaControlKeysManager to the native event source, r=alwu
https://hg.mozilla.org/integration/autoland/rev/dbf8e1cfaa16
part3: Cosmetic Changes to MediaControlKeysManager, r=alwu
https://hg.mozilla.org/integration/autoland/rev/3967e9ba3e97
part4: Implement SetMediaMetadata() for the WindowsSMTCProvider, r=alwu
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: