TPStreamsPlayerValue constructor

TPStreamsPlayerValue({
  1. Duration duration = Duration.zero,
  2. Duration position = Duration.zero,
  3. bool isLoading = false,
  4. bool isPlaying = false,
  5. bool isBuffering = false,
  6. bool isEnded = false,
  7. TPStreamsError? error,
})

Creates an instance of TPStreamsPlayerValue.

Use this class to represent the state of a streams player, including playback information, buffering status, and available playback speed options.

Implementation

TPStreamsPlayerValue(
    {this.duration = Duration.zero,
    this.position = Duration.zero,
    this.isLoading = false,
    this.isPlaying = false,
    this.isBuffering = false,
    this.isEnded = false,
    this.error});