Skip to content

Basic video player with Jetpack Compose and Media3/ExoPlayer that is lifecycle aware and maintains its state during configuration changes and system-initiated process death.

Notifications You must be signed in to change notification settings

jsericksk/Simple-Player

Repository files navigation

Simple Player



See a demo
demo-01.mp4
demo-02.mp4

The main objective of this project was to facilitate the creation of a custom video player layout with Compose, aware of the lifecycle and with a state that survives configuration changes and also system-initiated process death. It is just a basic demonstration project of how a basic video player can be created with ExoPlayer and Jetpack Compose.

The player has common basic functions, such as changing the current video, playback speed, aspect ratio, screen orientation, etc. It is fullscreen by default, and it hides the main buttons after a defined time or a tap on the screen.

Download

You can download the apk from the releases if you want to test it on your device.

Basic Version

A more basic version of this project can be found in the basic-version branch, created to serve as an example for an article on Medium. Read my article on Medium if you want to see more information about this project.

Libraries Used

About

Basic video player with Jetpack Compose and Media3/ExoPlayer that is lifecycle aware and maintains its state during configuration changes and system-initiated process death.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages