• Stars
    star
    132
  • Rank 274,205 (Top 6 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 11 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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 about the ExoPlayer sample apps

The ExoPlayer sample apps on the master branch only support Google ExoPlayer 2.10.8, which is the currently supported version of ExoPlayer with the Brightcove Native SDK for Android.

Brightcove Java sample apps using ExoPlayer

  • 360 Video Sample app: This app shows how to use the Brightcove ExoPlayer to play 360 videos.

  • Ad Rules Sample App: This app shows how to use the Brightcove ExoPlayer with Google IMA ads.

  • Ad Rules Widevine Modular Sample App: This app shows how to use the Brightcove ExoPlayer with Google IMA ads and Widevine Modular content.

  • AppCompat Activity Sample App: This app shows how to setup the Brightcove ExoPlayer with the AppCompat plugin and an Activity.

  • AppCompat Fragment Sample App: This app shows how to setup the Brightcove ExoPlayer with the AppCompat plugin and a Fragment.

  • Audio Only Sample App: This app shows how to setup the Brightcove ExoPlayer with audio-only assets.

  • Basic Sample App: This app shows how to setup the Brightcove ExoPlayer to play.

  • Basic Cast Sample App with Brightcove Cast Receiver: This adds Google Chromecast support to the Brightcove Native Player SDK for Android, and demonstrates integration with the upated Brightcove Cast Receiver app v2.0. Please refer to the Release Notes in the v6.16.0 release of the Brightcove Native Player SDK for Android for more information.

  • Basic Cast Sample App with Google Cast Receiver: This adds Google Chromecast support to the Brightcove Native Player SDK for Android, and demonstrates integration with Google's Demo Receiver app. Please refer to the Release Notes in the v6.16.0 release of the Brightcove Native Player SDK for Android for more information.

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

  • FreeWheel Widevine Modular Sample App: This app shows how to use the Brightcove ExoPlayer with FreeWheel ads and Widevine Modular content.

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.

  • ID3 Tags Sample App: This app shows how to use the Brightcove ExoPlayer with ID3 tags.

  • HLS 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.

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

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

  • 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.

Brightcove Kotlin sample apps using ExoPlayer

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 After Android Studio is installed, please follow the following steps:

From Android Studio using VCS installation:

  1. Select the Checkout From Version Control option in the new project dialog,
  2. Pick the GITHUB menu entry
  3. Use https://github.com/BrightcoveOS/android-player-samples.git for the URL
  4. Click on SUBMIT and use default values on subsequent screens.

From Android Studio using Import

  1. Clone this repo to your file system.
  2. In the File menu, select the Import Project... option in the new project dialog,
  3. Using the file selector dialog, select the top level build.gradle file from the cloned repo on your system,
  4. Click on OK and use default values on subsequent screens.

Android Studio will now download, import and build all of the sample apps. At this point the samples will be in your instance of Android Studio where you can observe the snippets in action on a physical or virtual device, walk through the code using the Android Studio debugger, search on keywords or just browse Android source code.

Overriding the default build behavior

By default, the sample apps will build with the most recent Brightcove Android Native Player version at build time. To override this behavior with a specific version, create a file named .gradle/gradle.properties in your home directory and set the value of the property anpVersion to the desired version. An invalid version will cause no sample app projects to be configured.

Building with Gradle on the command line

These sample apps now build with the latest released version of Gradle, 7.4.1. Please note that when building these apps from the command line, that the Gradle daemon is started, and will continue to run after the build completes.

To stop the daemon after the build completes, run the following: ./gradlew --stop

Running a sample app

  1. To run a sample app on an Android 5.0 or later device, plug the device into the computer and ensure that USB debugging is enabled.
  2. Select a sample app from the Run/Debug Configuration selector and click on the run (green button) icon to start the sample.

Support

If you have questions, need help or want to provide feedback, please use the Support Portal or contact your Account Manager. To receive notification of new SDK software releases, subscribe to the Brightcove Native Player SDKs Google Group.

Enjoy!

The Brightcove Player Android Team

More Repositories

1

Diamond

1,177
star
2

Samsung-Smart-TV-Sample-App

JavaScript
88
star
3

ios-player-samples

A collection of samples for the Brightcove Player SDK for iOS
Swift
87
star
4

Roku-Sample-App

Sample application for Roku using Brightcove VideoCloud
Brightscript
50
star
5

PHP-MAPI-Wrapper

This project provides a starting point for integrating the Brightcove Media API into your application. It provides simple ways to interact with the API, as well as a long list of helper functions.
PHP
48
star
6

App-Cloud-Demos

A variety of demo projects built on App Cloud.
JavaScript
30
star
7

Ruby-MAPI-Wrapper

This project provides a starting point for integrating the Brightcove Media API into your application. It provides simple ways to interact with the API.
Ruby
25
star
8

metrics-graphite-pickle

Java
21
star
9

.NET-MAPI-Wrapper

This project provides a starting point for integrating the Brightcove Media API into your application. It provides simple ways to interact with the API.
C#
18
star
10

Java-MAPI-Wrapper

This project provides a starting point for integrating the Brightcove Media API into your application. It provides simple ways to interact with the API.
Java
14
star
11

App-Cloud-Emulator

Emulates the device experience in a browser environment for faster and further development and testing.
11
star
12

videojs-omniture

Adobe Omniture plugin for the Brightcove Player
HTML
10
star
13

Rendition-Selector-Plugin

Populates a ComboBox in BEML named "renditionCombo", displaying various choices for rendition quality selection.
ActionScript
10
star
14

Java-Commons

This project provides common classes and utilities for use in other Java projects. This may include 3rd party libraries as well as Brightcove Open Source libraries.
Java
10
star
15

evaporate-brightcove

JavaScript
8
star
16

JavaScript-Utilities

This project provides a multitude of functions to help integrate Brightcove into your client-side application. It includes DOM modification methods, animation and UI methods, as well as an element selector tool and includes the JavaScript Media API Wrapper.
JavaScript
8
star
17

LG-Sample-App

JavaScript
7
star
18

android-plugin-guide

A plugin development guide for the Brightcove Player for Android.
Java
6
star
19

Brightcove-Wordpress-Plugin

This plugin allows users to easily insert Brightcove videos into their wordpress blog or site. Users can enter videos and playlists by ID or by click on previews of the video if they have a API Read Token.
JavaScript
6
star
20

User-Uploads

This project allows you to easily create a user-generated content (UGC) uploader.
PHP
5
star
21

BrightAction

Brightcove Media API ActionScript SDK
ActionScript
4
star
22

Video-Probe

JavaScript
4
star
23

Context-Aware-Related-Videos

This project provides a list of related videos based on page content.
JavaScript
4
star
24

SampleiOSCustomControls

Custom control sample
Objective-C
4
star
25

Java-Account-Cache

Utilities for caching the video metadata in a Brightcove account locally
4
star
26

grunt-base64

A grunt-task that base64 encodes files.
JavaScript
3
star
27

Brightcove-Playback-API-Wrapper

PHP
3
star
28

Simple-Workflow-Engine

Simple workflow engine for basic ETL processing
Java
3
star
29

php-wrapper-dynamic-ingest

A PHP wrapper for the Brightcove Dynamic Ingest API
HTML
2
star
30

dfxp2webvtt-converter

Python
2
star
31

Video-Cloud-SharePoint-2010-Integration

JavaScript
2
star
32

CoremetricsSWF

Analytics plugin to provide player event information to Coremetrics.
ActionScript
2
star
33

SharePoint-Connector

Brightcove Connector for SharePoint 2016 and SharePoint 2013
C#
1
star
34

Perl-Commons

This project provides common classes and utilities for use in other Perl projects. This may include 3rd party libraries as well as Brightcove Open Source libraries.
Perl
1
star
35

gradle-wrapper

Basic files for instantiating a Gradle project via the wrapper.
Groovy
1
star
36

videojs-captions-toggle

A button that toggles captions for a specified language.
JavaScript
1
star
37

PLAY2017_Android

Java
1
star
38

PLAY2016_iOS

iOS Demo apps presented at the Brightcove PLAY 2016 conference
Objective-C
1
star
39

api-request-troubleshooting-script

Troubleshooting shell script for Brightcove API requests
Shell
1
star
40

Brightcove-Video-Connector-for-Microsoft-Teams

This solution enables customers to view and manage their Brightcove Video Cloud media assets via an asset manager app within the Microsoft Teams collaboration tool. This solution allows for video asset management directly through Microsoft Teams while providing the familiar, convenient and easy to use Brightcove Studio interface.
1
star
41

PLAY2017_iOS

iOS Demo apps presented at the Brightcove PLAY 2017 conference
Objective-C
1
star
42

PLAY2015_Android

Native Android Sample Application for Brightcove PLAY 2015
Java
1
star