Mediarouter

Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
September 5, 2019 1.1.0 - - -

Declaring dependencies

To add a dependency on MediaRouter, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

dependencies {
    implementation "androidx.mediarouter:mediarouter:1.1.0"
}

For more information about dependencies, see Add build dependencies.

Version 1.1.0

Version 1.1.0

September 5, 2019

androidx.mediarouter:mediarouter:1.1.0 is released. The commits included in this version can be found here.

Import changes since 1.0.0

  • Dynamic group support
    • Allows users to add or remove route devices dynamically.
    • To enable a dynamic group, call MediaRouteButton.enableDynamicGroup(); the app shows a new dialog for the dynamic group
    • The installed MediaRouteProvider should also support dynamic group to actually enable the functionality.

Version 1.1.0-rc01

June 13, 2019

androidx.mediarouter:mediarouter:1.1.0-rc01 is released with no changes from 1.1.0-beta02. The commits included in this version can be found here.

Version 1.1.0-beta02

June 5, 2019

androidx.mediarouter:mediarouter:1.1.0-beta02 is released. The commits included in this version can be found here.

New features

  • Support RTL languages in MediaRouter dialogues

Bug fixes

  • Fix the bottom padding of MediaRoute dialogues

Version 1.1.0-beta01

May 7, 2019

androidx.mediarouter:mediarouter:1.1.0-alpha01 is released. The commits included in this version can be found here.

New features

  • Changed IllegalPointerException to NullPointerException for the null arguments which marked as @NonNull.

API changes

  • Callback logic for DynamicRouteDescriptor was changed. Now MediaRouteProvider will call MediaRouterProvider.DynamicGroupController.notifyDynamicRoutesChanged instead of directly calling the callback method.

Version 1.1.0-alpha03

April 3, 2019

androidx.mediarouter:mediarouter:1.1.0-alpha03 is released. The commits included in this version can be found here.

Bug fixes

  • Fixed crashes on MediaRouteVolumeSlider and RegisteredMediaRouteProvider.

Version 1.1.0-alpha02

March 13, 2019

androidx.mediarouter:mediarouter:1.1.0-alpha02 is released. The full list of commits included in this version can be found here.

New features

  • Support MediaRouteButton in Android Studio layout preview

API changes

  • Added enableDynamicGroup() method in MediaRouteActionProvider and MediaRouteButton to enable dynamic group feature
  • Added setAlwaysVisible(boolean) method in MediaRouteActionProvider and MediaRouteButton to allow MediaRouteButton visible always

Bug fixes

  • Made MediaRouteCastDialog rows easy to click
  • Removed unnecessary calls of onRouteChanged callback

Version 1.1.0-alpha01

December 3, 2018

New features

  • Added support dynamic group routes
    • Added APIs to support dynamic group routes by MediaRouteProviders
    • Added new UX for route chooser and controller dialogues for dynamic group routes