MCPcopy Index your code
hub / github.com/BrightcoveOS/android-player-samples

github.com/BrightcoveOS/android-player-samples @v10.4.25

Chat with this repo
repository ↗ · DeepWiki ↗ · release v10.4.25 ↗ · + Follow
533 symbols 988 edges 82 files 117 documented · 22%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

android-player-samples

Provides sample apps for the Brightcove Player SDK and Plugins for Android.

Learn more about the Brightcove Native Player SDKs.

The Android sample app projects in this repository can be inserted directly into Android Studio and subsequently executed or simulated. This version of the sample apps supports the latest Brightcove SDK and plugins. The following sample apps are included:

Brightcove ExoPlayer sample apps:

An important note

Starting from the SDK v8.3.0, the sample apps require Java 17.

The Issues tab is now closed. To report any problem or provide feedback, please refer to the Support section below.

Brightcove Java sample apps using ExoPlayer

Note that in order to enable the FreeWheel sample apps, you must independently obtain the non-free FreeWheel AdManager.aar library archive and install it into the directory libs/ which is typically located at the root of your /home/ directory. The Brightcove Native SDK for Android and the FreeWheel sample apps require the FreeWheel AdManager library version 6.28.0. Please note that Brightcove does not distribute the FreeWheel libraries. Contact FreeWheel directly for more information on how to obtain their products.

  • Basic SSAI Sample App: This app shows how to configure an app to use the Brightcove Native Player for Android SSAI Plugin to play a video.

  • Basic SSAI PAL Sample App: This app shows how to configure an app to use the Brightcove Native Player for Android SSAI Plugin to play a video and the PAL SDK from Google for Ad tracking.

  • Live Sample App: This app shows how to use the Brightcove ExoPlayer with HLS Live and Live DVR content. Please note that a Live/DVR URL is not supplied with this sample app, and must be supplied by the developer.

  • Offline Playback Sample App: This app demonstrates the Offline Playback feature.

  • Picture In Picture Sample App: This app demonstrates the Picture-in-Picture feature. Please note that Picture-in-Picture is supported only with Android 8.0 and above, and only on phone and tablet devices.

  • Pulse Sample App: This app shows how to setup the Brightcove ExoPlayer with Pulse ads.

  • TextureView Sample App: This app shows how to use the Brightcove ExoPlayer with TextureView.

  • ThumbnailScrubber Sample App: This app demonstrate how to use the Brightcove ExoPlayer with thumbnails.

  • VideoListAdRulesIMA Sample App: This app shows how to use multiple instances of the Brightcove SDK in one screen with Google IMA ads.

  • VideoList Sample App: This app shows how to use multiple instances of the Brightcove SDK in one screen.

  • Widevine Modular Sample App: This app shows how to setup the Brightcove ExoPlayer with Widevine Modular content.

Brightcove Kotlin sample apps using ExoPlayer

Note that in order to enable the FreeWheel sample apps, you must independently obtain the non-free FreeWheel AdManager.aar library archive and install it into the directory libs/ which is typically located at the root of your /home/ directory. The Brightcove Native SDK for Android and the FreeWheel sample apps require the FreeWheel AdManager library version 6.28.0. Please note that Brightcove does not distribute the FreeWheel libraries. Contact FreeWheel directly for more information on how to obtain their products.

  • Basic SSAI Sample App: This app shows how to configure an app to use the Brightcove Native Player for Android SSAI Plugin to play a video.

  • Basic SSAI PAL Sample App: This app shows how to configure an app to use the Brightcove Native Player for Android SSAI Plugin to play a video and the PAL SDK from Google for Ad tracking.

  • Live Sample App: This app shows how to use the Brightcove ExoPlayer with HLS Live and Live DVR content. Please note that a Live/DVR URL is not supplied with this sample app, and must be supplied by the developer.

  • Offline Playback Sample App: This app demonstrates the Offline Playback feature.

  • Picture In Picture Sample App: This app demonstrates the Picture-in-Picture feature. Please note that Picture-in-Picture is supported only with Android 8.0 and above, and only on phone and tablet devices.

  • TextureView Sample App: This app shows how to use the Brightcove ExoPlayer with TextureView.

  • ThumbnailScrubber Sample App: This app demonstrate how to use the Brightcove ExoPlayer with thumbnails.

  • VideoListAdRulesIMA Sample App: This app shows how to use multiple instances of the Brightcove SDK in one screen with Google IMA ads.

  • VideoList Sample App: This app shows how to use multiple instances of the Brightcove SDK in one screen.

  • Widevine Modular Sample App: This app shows how to setup the Brightcove ExoPlayer with Widevine Modular content.

Installing the sample apps

Currently, all of the sample app projects must be installed together as a bundle. Individual sample app projects also have specific dependencies. For those specific dependencies, see the individual project descriptions above for details.

To install the sample apps into Android Studio, please make sure you have the latest version. You can obtain and install the latest version from: [Android Studio](http://developer.android.com/sdk/installing/stud

Extension points exported contracts — how you extend this code

VideoListListener (Interface)
* The contract of listener that can handle user interactions on a video item display. */ [2 implementers]
brightcove-exoplayer-kotlin/OfflinePlaybackSampleApp/src/main/java/com/brightcove/offline/playback/VideoListListener.kt
VideoListListener (Interface)
The contract of listener that can handle user interactions on a video item display. [2 implementers]
brightcove-exoplayer/OfflinePlaybackSampleApp/src/main/java/com/brightcove/player/samples/offlineplayback/VideoListListener.java
ItemClickListener (Interface)
(no doc) [2 implementers]
brightcove-exoplayer/BasicCastBrightcoveReceiverSampleApp/src/main/java/com/brightcove/player/samples/cast/basic/VideoListAdapter.java
Listener (Interface)
* Constructor for a listener that can handle the selected date. */ [2 implementers]
brightcove-exoplayer-kotlin/OfflinePlaybackSampleApp/src/main/java/com/brightcove/offline/playback/DatePickerFragment.kt

Core symbols most depended-on inside this repo

findView
called by 18
brightcove-exoplayer-kotlin/OfflinePlaybackSampleApp/src/main/java/com/brightcove/offline/playback/utils/ViewUtil.kt
notifyVideoChanged
called by 18
brightcove-exoplayer/OfflinePlaybackSampleApp/src/main/java/com/brightcove/player/samples/offlineplayback/VideoListAdapter.java
findView
called by 18
brightcove-exoplayer/OfflinePlaybackSampleApp/src/main/java/com/brightcove/player/samples/offlineplayback/utils/ViewUtil.java
toString
called by 9
brightcove-exoplayer-kotlin/OfflinePlaybackSampleApp/src/main/java/com/brightcove/offline/playback/PlaylistModel.kt
showToast
called by 8
brightcove-exoplayer/OfflinePlaybackSampleApp/src/main/java/com/brightcove/player/samples/offlineplayback/MainActivity.java
toString
called by 5
brightcove-exoplayer/OfflinePlaybackSampleApp/src/main/java/com/brightcove/player/samples/offlineplayback/PlaylistModel.java
setVideoList
called by 4
brightcove-exoplayer-kotlin/VideoListAdRulesIMASampleApp/src/main/java/com/brightcove/videolist/adrulesima/AdapterView.kt
onSuccess
called by 4
brightcove-exoplayer/OfflinePlaybackSampleApp/src/main/java/com/brightcove/player/samples/offlineplayback/VideoListAdapter.java

Shape

Method 419
Class 96
Function 13
Interface 5

Languages

Java56%
Kotlin44%

Modules by API surface

brightcove-exoplayer/OfflinePlaybackSampleApp/src/main/java/com/brightcove/player/samples/offlineplayback/MainActivity.java37 symbols
brightcove-exoplayer-kotlin/OfflinePlaybackSampleApp/src/main/java/com/brightcove/offline/playback/MainActivity.kt32 symbols
brightcove-exoplayer-kotlin/AudioOnlySampleApp/src/main/java/com/brightcove/audio/sample/AudioOnlyActivity.kt25 symbols
brightcove-exoplayer/OfflinePlaybackSampleApp/src/main/java/com/brightcove/player/samples/offlineplayback/VideoListAdapter.java21 symbols
brightcove-exoplayer-kotlin/OfflinePlaybackSampleApp/src/main/java/com/brightcove/offline/playback/VideoListAdapter.kt18 symbols
brightcove-exoplayer/BasicSSAIPALSampleApp/src/main/java/com/brightcove/player/samples/ssai/pal/MainActivity.java16 symbols
brightcove-exoplayer/VideoListAdRulesIMASampleApp/src/main/java/com/brightcove/recyclervideoview/AdapterView.java13 symbols
brightcove-exoplayer-kotlin/BasicSsaiPALSampleApp/src/main/java/com/brightcove/ssai/pal/sample/BasicSsaiPALSampleAppActivity.kt13 symbols
brightcove-exoplayer/VideoListSampleApp/src/main/java/com/brightcove/recyclervideoview/AdapterView.java12 symbols
brightcove-exoplayer/BasicCastBrightcoveReceiverSampleApp/src/main/java/com/brightcove/player/samples/cast/basic/VideoListAdapter.java12 symbols
brightcove-exoplayer/AudioOnlySampleApp/src/main/java/com/brightcove/player/samples/audioonly/AdapterView.java12 symbols
brightcove-exoplayer/AudioOnlySampleApp/src/main/java/com/brightcove/player/samples/audioonly/MainActivity.java11 symbols

For agents

$ claude mcp add android-player-samples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page