Sample apps for the Brightcove Player SDK for Android and its plugins. This is the reference repository for building with the SDK: each capability is demonstrated by a small, focused app, and every capability ships a Java and a Kotlin variant kept at parity.
- The latest Android Studio.
- JDK 17 (required since SDK 8.3.0).
- Android 5.0 (API 21) or later on the device/emulator; the apps compile and target API 36.
- Builds with the bundled Gradle 8.13 wrapper.
- The SDK version is pinned by
anpVersioningradle.properties(currently10.4.25). To build against a different version, setanpVersionin~/.gradle/gradle.properties. To develop against a local SDK checkout, setanpVersion=LOCAL(seesettings.gradle). - A few samples need artifacts Brightcove does not distribute — the FreeWheel
AdManager.aarand the PulsePulse.aar. See the FreeWheel and Pulse READMEs.
Samples are grouped by capability. Each top-level folder collects one capability's samples and has its own README covering shared setup; inside, each sample ships as …SampleApp-java and …SampleApp-kotlin.
Player/ PlayerUI/ IMA/ DAI/ SSAI/ FreeWheel/ Pulse/ DRM/ Cast/ Offline/
- Playback —
Player/: basic playback, video list / playlist, live / DVR, 360 video, audio-only playback, Picture-in-Picture, thumbnail scrubbing, plus the Android-specific TextureView, AppCompat entry points, and bumper samples. - UI customization —
PlayerUI/: custom controls — customized and styled controls, seek-bar colors, and a rewind button. - Advertising —
IMA/·DAI/·SSAI/·FreeWheel/·Pulse/: Google IMA (client-side), Google DAI, Brightcove server-side ad insertion (incl. PAL), FreeWheel, and Pulse. - DRM & offline —
DRM/·Offline/: Widevine Modular playback and offline (downloaded) playback. - Casting —
Cast/: Google Cast with the Brightcove Cast Receiver.
Every capability ships a Java and a Kotlin sample.
Open the project in Android Studio one of these ways:
- Get from VCS (Welcome screen) or File > New > Project from Version Control…, select Git, and enter
https://github.com/BrightcoveOS/android-player-samples.git; or - clone the repository and choose File > Open… on its root folder.
Android Studio downloads dependencies and builds every sample. To build from the command line:
./gradlew assembleDebug # all samples
./gradlew :Player:BasicSampleApp-kotlin:assembleDebug # one sample
./gradlew --stop # stop the Gradle daemon afterwards
Plug in an Android 5.0+ device with USB debugging enabled (or start an emulator), pick the sample from the Run/Debug Configuration selector, and run it.
Use the Support Portal or contact your Account Manager. To hear about new SDK releases, subscribe to the Brightcove Native Player SDKs Google Group.