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" />