PillarboxCastPlayer
A PillarboxPlayer implementation that works with Cast devices.
It disables smooth seeking and tracking capabilities as these are not supported or relevant in the context of Cast playback.
Parameters
A Context used to populate getDeviceInfo. If null
, getDeviceInfo will always return DEVICE_INFO_REMOTE_EMPTY.
The context from which the cast session is obtained.
The MediaItemConverter to use.
The TracksConverter to use.
The seekBack increment, in milliseconds.
The seekForward increment, in milliseconds.
The maximum position for which seekToPrevious seeks to the previous MediaItem, in milliseconds.
The CastTrackSelector to use when selecting tracks from TrackSelectionParameters.
The Looper that must be used for all calls to the player and that is used to call listeners on.
A Clock used to generate timestamps.
Properties
CastPlayer does not support ImageOutput.
CastPlayer does not support metrics.
CastPlayer does not support SeekParameters.
Smooth seeking is not supported on CastPlayer. By its very nature (ie. being remote), seeking smoothly is impossible to achieve.
This flag is not supported on CastPlayer. The receiver should implement tracking on its own.
Inherited properties
Functions
Inherited functions
Observe the availability of a Cast session as a Flow.