Provides sample apps for the Brightcove Player SDK and Plugins for Android
View the Project on GitHub BrightcoveOS/android-player-samples
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.
anpVersion in gradle.properties (currently 10.4.25). To build against a different version, set anpVersion in ~/.gradle/gradle.properties. To develop against a local SDK checkout, set anpVersion=LOCAL (see settings.gradle).AdManager.aar and the Pulse Pulse.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/
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.PlayerUI/: custom controls — customized and styled controls, seek-bar colors, and a rewind button.IMA/ · DAI/ · SSAI/ · FreeWheel/ · Pulse/: Google IMA (client-side), Google DAI, Brightcove server-side ad insertion (incl. PAL), FreeWheel, and Pulse.DRM/ · Offline/: Widevine Modular playback and offline (downloaded) playback.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:
https://github.com/BrightcoveOS/android-player-samples.git; orAndroid 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.