# How do I control through media session api in bitmovin player(v7)?

**URL:** <https://community.bitmovin.com/t/how-do-i-control-through-media-session-api-in-bitmovin-player-v7/1247>\
**Category:** Support\
**Tags:** bitmovin-player, web\
**Created:** [September 13, 2022, 7:36am UTC](https://community.bitmovin.com/t/how-do-i-control-through-media-session-api-in-bitmovin-player-v7/1247 "2022-09-13T07:36:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smartlearning](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@smartlearning](https://community.bitmovin.com/u/smartlearning)\
**Post date:** [September 13, 2022, 7:36am UTC](https://community.bitmovin.com/t/how-do-i-control-through-media-session-api-in-bitmovin-player-v7/1247/1 "2022-09-13T07:36:17Z")

</div>

Currently, using the node of v12.22.12, the react project uses the encode & player function using bitmovin for the DRM media file. I’m trying to control media using media session api in this situation, but I don’t know what to do.

---

<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:** [September 19, 2022, 1:39pm UTC](https://community.bitmovin.com/t/how-do-i-control-through-media-session-api-in-bitmovin-player-v7/1247/2 "2022-09-19T13:39:13Z")

</div>

Hey @smartlearning,  
First of all, you’re mentioning Bitmovin Player **v7** in the title - Please upgrade to Bitmovin Player v8 by following our [Migration Guide v7 to v8](https://bitmovin.com/docs/player/tutorials/migration-guide-v7-to-v8) as v7 in UNSUPPORTED per our [Player’s Lifecycle Policy](https://bitmovin.com/docs/player/articles/bitmovin-player-lifecycle-policy).

Once you’re done with the upgrade, you can check out the sample we have on Github for working with the Media Session API: [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)  
This should cover the basics on how to connect the Bitmovin Player and the Media Session API. Hope this helps.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/bitmovin/original/1X/1ab86334145095b0af9c5b924fa3ae6d920b6482.png) [@system](https://community.bitmovin.com/u/system)\
**Post date:** [September 19, 2022, 5:17pm UTC](https://community.bitmovin.com/t/how-do-i-control-through-media-session-api-in-bitmovin-player-v7/1247/3 "2022-09-19T17:17:16Z")

</div>

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.
