Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.ooyala:android-sample-apps:'
}
dependencies {
implementation("com.github.ooyala:android-sample-apps:")
}
<dependency>
<groupId>com.github.ooyala</groupId>
<artifactId>android-sample-apps</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.ooyala" % "android-sample-apps" % ""
:dependencies [[com.github.ooyala/android-sample-apps ""]]
This is a repository of sample applications for the Ooyala SDK for Android. Here you can try a bunch of different examples of Ooyala Mobile SDK usage, and see the code required to perform these tasks.
In order to be successful using these applications, you should have the following experience:
This repository is meant to be supplementary to our Developer documentation. Take a look at the docs here: http://help.ooyala.com/
Some apps include special instructions, look for a README in the app you want to try out to check if it requires something else.
Apart from that, here is what you will need:
All applications in this repository should be automatically importable, compilable, and runnable. A good place to start is to try the Basic Playback Sample App.
git clone https://github.com/ooyala/android-sample-apps.git
The Complete Sample App is a project that combines all of the sample apps in the repository into a single runnable application. This application should also be importable, compilable, and runnable out of the box just like all of the other applications. This is the fastest way to demo all of the functionality we have added into the repository so far
If you have a bug within your own application, the Sample App Repository is a great way to help isolate the issue to Ooyala code. we recommend the following steps.
This is the absolute fastest way for Support and Engineering to reproduce without question, and solve your issues as fast as possible.
When reproducing in sample apps, you should Never commit your API Secret into any repository. If you have done so accidentally, you should either force-remove that commit from your history, or contact Technical Support to reset your API Secret.
If you find issues with one of the examples, or find issues with video playback. Please file a bug with Ooyala Support through the Ooyala Support Portal http://support.ooyala.com/.
If you find bugs around the sample app that are not about video playback (i.e. unable to compile or build), you can file an issue through Github. If you file a Github Issue, we reserve the right to redirect your issue to Ooyala Support.
Be sure to use your own Provider Code in your Ooyala Player initialization. If you fail to do so, your viewing analytics will be lost in the process.
Not all of the Ooyala SDK's functionality is represented in this repository; We are constantly adding and updating, with the intention of demonstrating as many of our features as possible. If you would like to see something added, speak to your Ooyala contact or Technical Support
Some of the more complicated samples may not be playable out of the box. These samples usually require customer-specific information that cannot be simulated with a demo application
You should Never commit your API Secret into any repository. If you have done so accidentally, you should either force-remove that commit from your history, or contact Technical Support to reset your API Secret
Our Sample App Repository is designed to be automatically updated as we release new versions. Our repository uses a 'candidate' branch, which will be updated for every release candidate we create. These candidates, and the git tags ending in 'RC#' are for testing, and not intended to be used for customer applications.
We do not recommend testing on any branch that is not master. These branches are not verified to be working as expected.
Thank you for reading!