# Allow to pass metadata for Media Session API

**URL:** <https://community.bitmovin.com/t/allow-to-pass-metadata-for-media-session-api/1970>\
**Category:** Feature Requests\
**Tags:** bitmovin-player, bitmovin, web\
**Created:** [May 10, 2023, 3:24pm UTC](https://community.bitmovin.com/t/allow-to-pass-metadata-for-media-session-api/1970 "2023-05-10T15:24:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabian.denk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/fabian.denk/32/669_2.png) [@fabian.denk](https://community.bitmovin.com/u/fabian.denk)\
**Post date:** [May 10, 2023, 3:24pm UTC](https://community.bitmovin.com/t/allow-to-pass-metadata-for-media-session-api/1970/1 "2023-05-10T15:24:26Z")

</div>

The Media Session API and the corresponding Media Metadata interface allows to provide metadata that will be used by different operating systems and browsers. This includes displaying artwork of the currently playing asset (e.g. the poster image), a title, artist and an album.

See examples here: [Mobile Web Video Playback](https://web.dev/media-mobile-web-video-playback/#customize-media-notifications)

Users benefit from this, as they are then able to gain more information on the currently playing asset, even if the video is not played in the viewport (e.g. Google Chrome “Now Playing” extension) or even if your device is locked (e.g. iOS lock screen/notification center).

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/daniel/32/121_2.png) [@daniel](https://community.bitmovin.com/u/daniel)\
**Post date:** [May 11, 2023, 11:44am UTC](https://community.bitmovin.com/t/allow-to-pass-metadata-for-media-session-api/1970/2 "2023-05-11T11:44:55Z")

</div>

Hi Fabian,

This is possible today and we have a sample available on Github: [bitmovin-player-web-samples/media-session-api at main · bitmovin/bitmovin-player-web-samples · GitHub](https://github.com/bitmovin/bitmovin-player-web-samples/tree/main/media-session-api)

Let me know if this helps or if you’re looking for something different.

Best,  
Daniel

---

<div class="post-metadata">

**Author:** ![fabian.denk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/fabian.denk/32/669_2.png) [@fabian.denk](https://community.bitmovin.com/u/fabian.denk)\
**Post date:** [May 11, 2023, 12:21pm UTC](https://community.bitmovin.com/t/allow-to-pass-metadata-for-media-session-api/1970/3 "2023-05-11T12:21:29Z")

</div>

Hey Daniel,

this sample is what we would have done as well, however we were thinking of having something in the source of the bitmovin player directly, so that the player takes care of the logic (e.g. by taking sourceConfig.title and sourceConfig.poster and maybe extend it by additional, optional fields and use those directly for the media session api metadata setting

 ![image](https://us1.discourse-cdn.com/flex015/uploads/bitmovin/original/1X/40f9ff1091d6fe6ad31e6bfdd65659c289401dc0.png)

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/daniel/32/121_2.png) [@daniel](https://community.bitmovin.com/u/daniel)\
**Post date:** [May 12, 2023, 7:09am UTC](https://community.bitmovin.com/t/allow-to-pass-metadata-for-media-session-api/1970/4 "2023-05-12T07:09:34Z")

</div>

Ah, got it, makes sense to me now 👍  
I’ve filed an internal feature request for this and tagged you/your company to it for our Product team to consider.
