Skip to content

yoheimuta/ExoPlayerMusic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExoPlayerMusic

This sample shows how to implement a music player app backed by the ExoPlayer.

You can build on this project as a good starting point to release your own music player.

Demo

example

Features

Customize

If you just want to add your sources in the code directly, look at InMemorySource.kt below.

class InMemorySource() : AbstractMusicSource() {
...
    private suspend fun getCatalog(): List<MediaMetadataCompat> {
        return listOf(
            Pair(
                "https://storage.googleapis.com/maison-great-dev/oss/musicplayer/tagmp3_1473200_1.mp3",
                "TEST_1"
            ),
            Pair(
                "https://storage.googleapis.com/maison-great-dev/oss/musicplayer/tagmp3_2160166.mp3",
                "TEST_2"
            )
...

You can switch to other implementations backed by network, database, and so on if needed.

Music

License

The MIT License (MIT)

Acknowledgement

Thank you to the following projects and creators.

About

This sample shows how to implement a music player app backed by the ExoPlayer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages