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:

<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.

Packages

Link copied to clipboard