Getting Started: Setting Up Your Environment in Android Studio
Was this article helpful?
Use these steps to set up the SDK using the Eclipse development environment. They provide instructions on how to get started with our default Player Skin (with limited customization options) using the BasicPlaybackSampleApp available from this link. To get started with with our customizable Player Skin (based on React Native), just use our OoyalaSkinSampleApp available from this link in Step 4 below.
Tip: Use this skeleton as a starting point for all Ooyala Mobile SDK applications. All applications in this repository should be automatically importable, compilable, and runnable.
- Clone this repository onto your computer: git clone https://github.com/ooyala/android-sample-apps.git
- Open Android Studio
- Either press "Open an Existing Android Studio Project" or click File > Open...
- For the basic player skin app, navigate to android-sample-apps/BasicPlaybackSampleApp. For the customizable player skin app, navigate to android-sample-apps/OoyalaSkinSampleApp.
- Press Choose, or OK
- Wait for the Gradle execution to complete. You should see "app" appear as one of the build configurations.
- Run the application (Run > Run App) - choose either a connected device or a simulator to run on.
- When the application loads, you will have a list of videos to choose from. Pick any of them to view video playback.
To use the upgraded version of the Android SDK (including the integration with VisualOn libraries), see Getting Started: Enabling Upgrade for HLS Playback.