Integration with Google ExoPlayer on Android

Starting with Android version 4.12.0, Ooyala now offers premium HLS and MPEG-DASH playback experience for Android devices, both on web and native apps. With this Android SDK upgrade, you can very easily create native apps that provide wider coverage for video streaming, core playback, and advertising functionality, enabling you to build native apps over plain browser-based experiences.

Benefits

With Google ExoPlayer integration, Ooyala offers following benefits:
  • Support for ABR via MPEG-DASH and HLS playback.
  • Consistent and high quality playback for MPEG-DASH HLS Live and VoD streams.
  • Support for Closed Captions with VoD and Live streams.
  • Advertising Support (Pre-, Mid-, and Post-rolls) with major Ad platforms (Google IMA, FreeWheel).
  • Broader Device/OS Coverage on Android phones and tablets.

Exoplayer Support

  • The Ooyala Mobile SDK for Android currently uses ExoPlayer v2.5.3.
  • Starting with Ooyala Mobile SDK for Android version 4.25.0, the ExoPlayer is the default player.

What You Need

To enable Google ExoPlayer in your application:

  1. When building options, set the use of ExoPlayer to true:
    Options options = new Options.Builder().setUseExoPlayer(true).build();                  
  2. In the gradle file for the app, add the ExoPlayer dependency:
    dependencies
    { compile 'com.google.android.exoplayer:exoplayer:r1.5.5' ... } 

For an example, visit ExoPlayerSampleApp in our sample app repository.

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