VdoPlayerValue class
Properties identifying the current state of a VdoPlayerController.
Constructors
-
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})
Properties
- bufferedPosition → Duration
-
Position up to where the video is buffered.
final
- duration → Duration
-
Total duration of the video.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAdaptive → bool
-
True if track selection is done in adaptive mode, false if a track has
been selected explicitly.
final
- isBuffering → bool
-
True if the video is buffering.
final
- isEnded → bool
-
True if the currently loaded video has played to the end.
final
- isLoading → bool
-
True if a video is currently being loaded into the player.
final
- isMuted → bool
-
Specifies the audio output of the video is muted.
Supported only on web and always false for android and iOS platform.
final
- isPlaying → bool
-
True if the video is playing, false if paused.
final
- mediaInfo → MediaInfo?
-
Properties related to the currently loaded video.
final
- playbackSpeed → double
-
The current playback speed.
final
-
playbackSpeedOptions
→ List<
double> -
The list of available playback speed options.
final
- position → Duration
-
The current playback position.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skipDuration → Duration
-
Skip Backword/Forward duration
final
- subtitleTrack → SubtitleTrack?
-
Currently selected subtitle track.
Returns null if subtitle is disabled.
final
-
subtitleTracks
→ List<
SubtitleTrack> -
List of all available subtitle tracks.
final
- vdoError → VdoError?
-
If not null, this gives details about an error encountered while loading
the video or during playback.
final
- videoTrack → VideoTrack?
-
Currently selected audio track.
Currently selected video track.
final
-
videoTracks
→ List<
VideoTrack> -
List of all available audio tracks.
List of all available video tracks.
final
- volume → double?
-
Specifies the current volume of the audio/video. Must be a number between 0.0 and 1.0.
Supported only on web and always null for android and iOS platform.
final
Methods
-
copyWith(
{bool? isLoading, MediaInfo? mediaInfo, Duration? duration, Duration? position, Duration? bufferedPosition, bool? isPlaying, bool? isBuffering, bool? isEnded, double? playbackSpeed, List< double> ? playbackSpeedOptions, bool? isAdaptive, double? volume, bool? isMuted, VideoTrack? videoTrack, SubtitleTrack? subtitleTrack, List<VideoTrack> ? videoTracks, List<SubtitleTrack> ? subtitleTracks, Duration? skipDuration, VdoError? vdoError}) → VdoPlayerValue - Returns a new instance with the same values as this current instance, except for any overrides specified as arguments.
-
copyWithDisabledTracks(
{bool? isLoading, MediaInfo? mediaInfo, Duration? duration, Duration? position, Duration? bufferedPosition, bool? isPlaying, bool? isBuffering, bool? isEnded, double? playbackSpeed, List< double> ? playbackSpeedOptions, bool? isAdaptive, double? volume, bool? isMuted, VideoTrack? videoTrack, SubtitleTrack? subtitleTrack, List<VideoTrack> ? videoTracks, List<SubtitleTrack> ? subtitleTracks, Duration? skipDuration, VdoError? vdoError}) → VdoPlayerValue -
copyWithoutError(
{bool? isLoading, MediaInfo? mediaInfo, Duration? duration, Duration? position, Duration? bufferedPosition, bool? isPlaying, bool? isBuffering, bool? isEnded, double? playbackSpeed, List< double> ? playbackSpeedOptions, bool? isAdaptive, double? volume, bool? isMuted, VideoTrack? videoTrack, SubtitleTrack? subtitleTrack, List<VideoTrack> ? videoTracks, List<SubtitleTrack> ? subtitleTracks, Duration? skipDuration}) → VdoPlayerValue - Returns a new instance with the same values as this current instance and removes error if it was present.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited