Building and running ExoPlayer for testing
Apply a Dolby patch, build, and run ExoPlayer for testing.
Prerequisites
Procedure
-
Download the source code of ExoPlayer from https://github.com/google/ExoPlayer.
ExoPlayer version r2.15.0 is used in this release of the kit.
-
Download the .zip file for ExoPlayer.
The .zip file contains:
- A patch file, which fixes Dolby AC-4 and Dolby Atmos selection issues with HLS.
- A .json file, which is a playlist that includes all the testing manifests provided in kit.
-
Apply the patch to your ExoPlayer Git project.
git apply ddp_kit_only.patch
- Open the ExoPlayer project in Android Studio.
-
Use the provided playlist that includes all the testing manifests or create
playlists to include the testing manifest files.
For example, include manifest files for unencrypted content.
{ "name": "HD (MP4, AAC, DDP, H264)", "uri": "https://ott.dolby.com/manifest/path/DASH/OnDemand/MPD/test.mpd" }, { "name": "Apple master playlist (fMP4)", "uri": "https://ott.dolby.com/manifest/path/Manifest_fMP4/master.m3u8" }
Include a manifest file for Widevine content.
{ "name": "HD (cenc)", "uri": "https://storage.googleapis.com/wvmedia/cenc/tears/tears.mpd", "drm_scheme": "widevine", "drm_license_uri": "https://proxy.uat.widevine.com/proxy?provider=widevine_test" }
Testing manifest files are available at Multiplexed streams.
- Connect your device to the testing PC using the USB cable.
-
In Android Studio, build and run ExoPlayer on your device.
For more information, see the section regarding building and running your app in the Android Studio user's guide at https://developer.android.com/studio/intro.
- Select and play test signals on your device.