RemoteControlApi

Provides the means to initiate and manage casting of video to a cast-compatible remote device.

Inheritors

Properties

Link copied to clipboard
abstract val isCastAvailable: Boolean

Whether casting to a cast-compatible remote device is available. PlayerEvent.CastAvailable signals when casting becomes available.

Link copied to clipboard
abstract val isCasting: Boolean

Whether video is currently being casted to a remote device and not played locally.

Functions

Link copied to clipboard
@RequiresApi(value = 19)
abstract fun castStop()

Stops casting the current video. Has no effect if isCasting is false.

Link copied to clipboard
@RequiresApi(value = 19)
abstract fun castVideo()

Initiates casting the current video to a cast-compatible remote device. The user has to choose to which device it should be sent.