FileReplay

interface FileReplay : Replay

Local file replay stream control interface.

Provides control over some local file stream, allowing to control playback.

Every client that requests a reference on a local file replay stream is given its own dedicated instance of that stream. Multiple, independent stream may thus be open from the same file.

The stream is stopped and released as soon as the reference that provides it is closed. All open sinks are closed as a consequence.

Types

Link copied to clipboard
interface Source : Parcelable
Identifies a source for media replay.

Functions

Link copied to clipboard
Creates a source for streaming the default video track from a local file.
Link copied to clipboard
@IntRange(from = 0)
abstract fun duration(): Long
Informs about total playback duration.
Link copied to clipboard
Opens a sink from this stream.
Link copied to clipboard
abstract fun pause(): Boolean
Requests playback to pause.
Link copied to clipboard
abstract fun play(): Boolean
Requests playback to start.
Link copied to clipboard
Informs about current playback state.
Link copied to clipboard
@IntRange(from = 0)
abstract fun position(): Long
Informs about current playback position.
Link copied to clipboard
abstract fun seekTo(@IntRange(from = 0) position: Long): Boolean
Requests playback position change.
Link copied to clipboard
Informs about the configured source for this file replay stream.
Link copied to clipboard
abstract fun state(): Stream.State
Informs about current stream state.
Link copied to clipboard
abstract fun stop()
Stops the stream.
Link copied to clipboard
Creates a source for streaming a specific video track from a local file.

Properties

Link copied to clipboard
val TRACK_THERMAL_UNBLENDED: String = "ParrotThermalVideo"
Name for the thermal unblended video track in thermal media files.