Getting Started: Setting Up Your Environment in Android Studio

Use these steps to setup the SDK using the Eclipse development environment.

You need the following to get started with the SDK:
Requirement Details
The Ooyala Mobile SDK for Android Get the latest version for the the Mobile and Client SDKs page.
Android Development Environment The recommended development environment includes: the Android SDK an the Eclipse development environment
Ooyala VisualOn integration libraries for HLS playback (optional) For access to the VisualOn libraries, contact your CSM.

As of April 1, 2016 the Ooyala Android SDKs have been shipping with Google ExoPlayer libraries instead of the VisualOn libraries. While there are steps that you will need to take, moving to ExoPlayer will provide a more consistent, higher quality HLS and MPEG-DASH playback experience for VOD and live streams on Android devices.

As of August 1, 2016, Ooyala will no longer support the HLS player integration with VisualOn or provide bug fixes or improvements specific to VisualOn libraries.

In order to upgrade, you will need to
Use the following steps to set up Eclipse and create a skeletal project using the Ooyala Mobile SDK for Android.
Tip: Use this skeleton as a starting point for all Ooyala Mobile SDK applications.
  1. Extract the downloaded archive file.
  2. Open Android Studio and select Open an existing Android Studio Project. Open Project in Android Studio
  3. Navigate to the Ooyala Mobile SDK for Android GettingStarted App and select Choose. android-sdk/GettingStartedSampleApp
  4. This step depends on your creating an actual project, whose name is shown as project. Double-click project/res/layout/main.
  5. Select the activity_main.xml file.
  6. Add the following within the LinearLayout element:
    < android:id="@+id/ooyalaPlayer"
      android:layout_width="match_parent" android:layout_height="match_parent">
You now have a reusable program skeleton.
To use the upgraded version of the Android SDK (including the integration with VisualOn libraries), see Getting Started: Enabling Upgrade for HLS Playback.

해당 내용이 도움 되었습니까?