Player Module

The Player module contains all available API of the Bitmovin Android Player SDK.

The Player is the main entry point that plays back and handles one or more sources while a Source represents audio and video content that can be loaded into a Player. More information on how to manage multiple sources can be found on the PlaylistApi. Player and Sources emit events during their lifecycle that can be subscribed to in order to enable custom workflows.

The Player module also comes with a PlayerView that provides the Bitmovin Player Web UI and default UI handling to an attached Player instance.

The OfflineContentManager offers the ability to download and store sources locally to enable playback with a Player without an active network connection.

Optional dependencies

Advertising

In order to use advertising functionality, the following dependencies must be added manually

    implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.19.4'
implementation "com.google.android.gms:play-services-ads:19.3.0"

Casting

In order to use casting functionality, the following dependency must be added manually

    implementation 'com.google.android.gms:play-services-cast-framework:19.0.0'

Offline playback

In order to use offline functionality, the following dependency must be added manually

    implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'

Additionally, the permission for checking the network state is required

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Additional Resources

Packages

com.bitmovin.player
Link copied to clipboard
com.bitmovin.player.api
Link copied to clipboard
com.bitmovin.player.api.advertising
Link copied to clipboard
Contains API to enable advertising workflows.
com.bitmovin.player.api.advertising.ima
Link copied to clipboard
com.bitmovin.player.api.buffer
Link copied to clipboard
Contains API to configure buffer behavior.
com.bitmovin.player.api.casting
Link copied to clipboard
Contains API to enable casting functionality.
com.bitmovin.player.api.deficiency
Link copied to clipboard
Contains types used to represent errors and warnings within the SDK.
com.bitmovin.player.api.drm
Link copied to clipboard
Contains API to enable DRM playback.
com.bitmovin.player.api.event
Link copied to clipboard
Contains all Bitmovin events and API to enable subscribing to those events.
com.bitmovin.player.api.event.data
Link copied to clipboard
com.bitmovin.player.api.live
Link copied to clipboard
Contains API to configure live playback.
com.bitmovin.player.api.media
Link copied to clipboard
com.bitmovin.player.api.media.audio
Link copied to clipboard
com.bitmovin.player.api.media.subtitle
Link copied to clipboard
com.bitmovin.player.api.media.thumbnail
Link copied to clipboard
com.bitmovin.player.api.metadata
Link copied to clipboard
com.bitmovin.player.api.metadata.emsg
Link copied to clipboard
com.bitmovin.player.api.metadata.id3
Link copied to clipboard
com.bitmovin.player.api.metadata.scte
Link copied to clipboard
com.bitmovin.player.api.network
Link copied to clipboard
com.bitmovin.player.api.offline
Link copied to clipboard
Contains API to enable offline playback.
com.bitmovin.player.api.offline.options
Link copied to clipboard
com.bitmovin.player.api.playlist
Link copied to clipboard
Contains API to enable playlist functionality.
com.bitmovin.player.api.source
Link copied to clipboard
com.bitmovin.player.api.ui
Link copied to clipboard
com.bitmovin.player.api.ui.notification
Link copied to clipboard
com.bitmovin.player.api.vr
Link copied to clipboard
com.bitmovin.player.api.vr.orientation
Link copied to clipboard
com.bitmovin.player.casting
Link copied to clipboard
com.bitmovin.player.offline.service
Link copied to clipboard
com.bitmovin.player.util
Link copied to clipboard