Android Media samples
A selection of code samples for you to use to accelerate your app development. Browse samples to learn how to build different components for your apps.
This sample shows how to implement an audio playback app using Media3 ExoPlayer that works across multiple form factors and provides a consistent user experience.
A simple playback app that uses ExoPlayer to play a number of test streams. A good starting point or reference project.
A playback app with Google Cast integration. Demonstrates switching between Cast playback and local playback.
A playback app that uses the SurfaceControl API to redirect ExoPlayer’s video output to different views. Requires minSdkVersion 29.