Skip to content

SRGSSR/MediaMaestro

Repository files navigation

MediaMaestro MediaMaestro

Last release Android min SDK Build status License

Simplify media routing in your Compose app with this native Material 3 MediaRouter library. Enjoy easy integration, a pure Compose-friendly approach, and no need for AppCompatActivity or Theme.AppCompat.*. Focus on what matters: creating seamless media experiences for your users.

Getting started

  1. Add the GitHub Packages repository:
// settings.gradle.kts
repositories {
    maven {
        url = uri("https://maven.pkg.github.com/SRGSSR/MediaMaestro")
        credentials {
            username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
            password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
        }
        content {
            includeGroup("ch.srgssr.media.maestro")
        }
    }
}
  1. Add the dependency:
// <module>/build.gradle.kts
implementation("ch.srgssr.media.maestro:media-maestro:<version>")
  1. Add the Media Router button:
// In your @Composable layout
MediaRouteButton()

And you're good to go! If you need more customization, you can check the documentation.

Release

New versions are automatically published to GitHub Packages whenever a new tag following the x.y.z pattern is pushed.

License

This library is provided under the MIT License. Please refer to the license file for detailed information.

About

Seamless integration of AndroidX MediaRouter with Compose

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •  

Languages