DefaultPlayableMedia

Default implementation of PlayableMedia

Parameters

source

the MediaSource on which the media is found

mediaPlayer

the android.media.MediaPlayer playing the media

Default implementation of PlayableMedia

Default implementation of PlayableMedia

Parameters

source

the MediaSource on which the media is found

avPlayerItem

the AVPlayerItem associated with the media

Default implementation of PlayableMedia

Parameters

source

the MediaSource on which the media is found

avPlayerItem

the AVPlayerItem associated with the media

Default implementation of PlayableMedia for the JS family, reading live from the player's HTMLMediaElement (held in the registry under id).

Constructors

Link copied to clipboard
constructor(source: MediaSource, mediaPlayer: AndroidMediaPlayer)
constructor(source: MediaSource, avPlayerItem: AVPlayerItem)
constructor(source: MediaSource, avPlayerItem: AVPlayerItem)

Properties

Link copied to clipboard
actual open override val currentPlayTime: Duration

gets the Duration of playtime at the time this property is requested

expect open override val currentPlayTime: Duration

gets the Duration of playtime at the time this property is requested

actual open override val currentPlayTime: Duration

gets the Duration of playtime at the time this property is requested

actual open override val currentPlayTime: Duration

gets the Duration of playtime at the time this property is requested

actual open override val currentPlayTime: Duration

gets the Duration of playtime at the time this property is requested

Link copied to clipboard
actual open override val duration: Duration

the Duration of the media

expect open override val duration: Duration

the Duration of the media

actual open override val duration: Duration

the Duration of the media

actual open override val duration: Duration

the Duration of the media

actual open override val duration: Duration

the Duration of the media

Link copied to clipboard

If true this PlayableMedia has a video component

Link copied to clipboard
actual open override val resolution: Flow<Resolution>

a Flow of the Resolution of the media. Note that if no MediaSurface has been bound to the media, this will be Resolution.ZERO

expect open override val resolution: Flow<Resolution>

a Flow of the Resolution of the media. Note that if no MediaSurface has been bound to the media, this will be Resolution.ZERO

actual open override val resolution: Flow<Resolution>

a Flow of the Resolution of the media. Note that if no MediaSurface has been bound to the media, this will be Resolution.ZERO

actual open override val resolution: Flow<Resolution>

a Flow of the Resolution of the media. Note that if no MediaSurface has been bound to the media, this will be Resolution.ZERO

actual open override val resolution: Flow<Resolution>

a Flow of the Resolution of the media. Note that if no MediaSurface has been bound to the media, this will be Resolution.ZERO

Link copied to clipboard
actual open override val source: MediaSource
expect open override val source: MediaSource

the MediaSource on which the media is found

actual open override val source: MediaSource
actual open override val source: MediaSource
actual open override val source: MediaSource

the MediaSource on which the media is found

Link copied to clipboard
actual open override val tracks: List<TrackInfo>

a list of TrackInfo of the media

expect open override val tracks: List<TrackInfo>

a list of TrackInfo of the media

actual open override val tracks: List<TrackInfo>

a list of TrackInfo of the media

actual open override val tracks: List<TrackInfo>

a list of TrackInfo of the media

actual open override val tracks: List<TrackInfo>

a list of TrackInfo of the media