VdoPlayerValue constructor

VdoPlayerValue({
  1. Duration duration = Duration.zero,
  2. Duration position = Duration.zero,
  3. Duration bufferedPosition = Duration.zero,
  4. bool isLoading = false,
  5. MediaInfo? mediaInfo,
  6. bool isPlaying = false,
  7. bool isBuffering = false,
  8. bool isEnded = false,
  9. double playbackSpeed = 1.0,
  10. List<double> playbackSpeedOptions = const [],
  11. bool isAdaptive = true,
  12. bool isMuted = false,
  13. double? volume,
  14. VideoTrack? videoTrack,
  15. SubtitleTrack? subtitleTrack,
  16. List<VideoTrack> videoTracks = const [],
  17. List<SubtitleTrack> subtitleTracks = const [],
  18. Duration skipDuration = const Duration(milliseconds: 10000),
  19. VdoError? vdoError,
  20. ResizeMode resizeMode = ResizeMode.fit,
})

Implementation

VdoPlayerValue({
  this.duration = Duration.zero,
  this.position = Duration.zero,
  this.bufferedPosition = Duration.zero,
  this.isLoading = false,
  this.mediaInfo,
  this.isPlaying = false,
  this.isBuffering = false,
  this.isEnded = false,
  this.playbackSpeed = 1.0,
  this.playbackSpeedOptions = const [],
  this.isAdaptive = true,
  this.isMuted = false,
  this.volume,
  //this.audioTrack,
  this.videoTrack,
  this.subtitleTrack,
  //this.audioTracks = const [],
  this.videoTracks = const [],
  this.subtitleTracks = const [],
  this.skipDuration = const Duration(milliseconds: 10000),
  this.vdoError,
  this.resizeMode = ResizeMode.fit,
});