VdoPlayerValue constructor
VdoPlayerValue({
- Duration duration = Duration.zero,
- Duration position = Duration.zero,
- Duration bufferedPosition = Duration.zero,
- bool isLoading = false,
- MediaInfo? mediaInfo,
- bool isPlaying = false,
- bool isBuffering = false,
- bool isEnded = false,
- double playbackSpeed = 1.0,
- List<
double> playbackSpeedOptions = const [], - bool isAdaptive = true,
- bool isMuted = false,
- double? volume,
- VideoTrack? videoTrack,
- SubtitleTrack? subtitleTrack,
- List<
VideoTrack> videoTracks = const [], - List<
SubtitleTrack> subtitleTracks = const [], - Duration skipDuration = const Duration(milliseconds: 10000),
- VdoError? vdoError,
- 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,
});