---
updatedAt: 2026-06-11T14:47:15.000Z
agentTools:
  siteIndex: https://developer.bitmovin.com/llms.txt
  projectIndex: https://developer.bitmovin.com/playback/llms.txt
---

# player-media-session

player-media-session API reference

# player-media-session

The `player-media-session` module provides an integration for Android Media Sessions.

To start a media session, create a MediaSession with the according com.bitmvoin.player.api.Player. If you want media session notifications, extend the abstract MediaSessionService and register your service implementation in the `AndroidManifest.xml`:

```xml
<application>
<!-- ... -->
    <service
        android:name="com.example.MediaSessionImplementation"
        android:foregroundServiceType="mediaPlayback" />
</application>
  <!--  ...  -->
```

*This is an optional module of the Bitmovin Android Player, that can be added to your dependencies additionally to the* `player` *module dependency.*