belongs to Maven artifact com.android.support:mediarouter-v7:28.0.0-alpha1
MediaRouter
public
final
class
MediaRouter
extends Object
java.lang.Object | |
↳ | android.support.v7.media.MediaRouter |
MediaRouter allows applications to control the routing of media channels and streams from the current device to external speakers and destination devices.
A MediaRouter instance is retrieved through getInstance(Context)
. Applications
can query the media router about the currently selected route and its capabilities
to determine how to send content to the route's destination. Applications can
also send control requests
to the route
to ask the route's destination to perform certain remote control functions
such as playing media.
See also MediaRouteProvider
for information on how an application
can publish new media routes to the media router.
The media router API is not thread-safe; all interactions with it must be done from the main thread of the process.
Summary
Nested classes | |
---|---|
class |
MediaRouter.Callback
Interface for receiving events about media routing changes. |
class |
MediaRouter.ControlRequestCallback
Callback which is invoked with the result of a media control request. |
class |
MediaRouter.ProviderInfo
Provides information about a media route provider. |
class |
MediaRouter.RouteInfo
Provides information about a media route. |