Cloudflare Docs
Edit this page on GitHub
Set theme to dark (⇧+D)

Android (ExoPlayer)

Example of video playback on Android using ExoPlayer
implementation ''
SimpleExoPlayer player = new SimpleExoPlayer.Builder(context).build();
// Set the media item to the Cloudflare Stream HLS Manifest URL:

​​ Download and run an example app

  1. Download this example app from the official Android developer docs, following this guide.
  2. Open and run the exoplayer-codelab-04 example app using Android Studio.
  3. Replace the media_url_dash URL on this line with the DASH manifest URL for your video.

For more, see read the docs.