<img src="https://img.shields.io/badge/%20-ENTERPRISE-%23B10031" style="float:left"/><br /> <img src="https://img.shields.io/badge/Android-V4-009727?logo=android" style="float:left"/><br />

The Android SDK allows you to play media files that are stored locally on a device.

## Requirements

ItemDescription
**Supported file format****.mp4**<br /><br />When downloading videos from the web, opt for .mp4 conversions of the video asset. Streaming protocols like HLS or DASH have limited utility in an offline scenario and would require you to rewrite the manifest to account for the local segments.
**File path**Local path <b>must</b> use the `file:///` protocol

<br /> <hr />

## Enable playback

To enable local content playback, use the following steps:

  1. Decide where the local media file is stored. On an Android device, local media files can be stored in either the **/assets** folder, **/temp** folder, or temp folder of your choice.<br /><br />

FolderUse Case
<b>/assets</b>• Media file is preloaded with the app<br />• User selects a personal media file that already exists on the device
<b>/temp</b>Media file was downloaded from the internet when the device was last online<br /><br />You may want to use the <a href="https://developer.android.com/reference/android/app/DownloadManager" target="_blank">Android Download Manager</a> to download the video from the internet.

<br />

  1. Identify the absolute file path to the media file. <br /><br />Accessing the local file system on Android will differ depending on which version of Android you are building against and your application's use case. To learn more about external file access on Android refer to the <a href="https://developer.android.com/training/data-storage" target="_blank">Android Data and file storage overview</a>.<br /><br />

  2. Add the file path to a `PlaylistItem`.<br />



<br />

(Script tags will be stripped)