Android (4)
Last updated Apr 21, 2026 You can stream both on-demand and live video to native Android apps using ExoPlayer ↗︎.
Note
Before you can play videos, you must first upload a video to Cloudflare Stream or be actively streaming to a live input
Example Apps
Using ExoPlayer
Play a video from Cloudflare Stream using ExoPlayer:
implementation 'com.google.android.exoplayer:exoplayer-hls:2.X.X'
SimpleExoPlayer player = new SimpleExoPlayer.Builder(context).build();
// Set the media item to the Cloudflare Stream HLS Manifest URL:
player.setMediaItem(MediaItem.fromUri("https://customer-9cbb9x7nxdw5hb57.cloudflarestream.com/8f92fe7d2c1c0983767649e065e691fc/manifest/video.m3u8"));
player.prepare();
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/stream/viewing-videos/using-own-player/android/#page","headline":"Android","description":"Stream on-demand and live Cloudflare Stream video in native Android apps using ExoPlayer.","url":"https://developers.cloudflare.com/stream/viewing-videos/using-own-player/android/","inLanguage":"en","image":"https://developers.cloudflare.com/stream/viewing-videos/using-own-player/android/og.png?v=bcdffdc6c2c26e9d","dateModified":"2026-04-21","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Stream on-demand and live Cloudflare Stream video in native iOS, tvOS, and macOS apps using AVPlayer. title: iOS image: https://developers.cloudflare.com/stream/viewing-videos/using-own-player/ios/og.png?v=b205cc7f37bc1328
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/stream/llms.txt
Use this file to discover all available pages before exploring further.
Docs