PlaybackConfig class

Configures the playback behavior of the player.

Inheritance
Annotations

Constructors

PlaybackConfig({bool isAutoplayEnabled = false, bool isMuted = false, bool isTimeShiftEnabled = true, bool isBackgroundPlaybackEnabled = false, List<String>? videoCodecPriority, List<String>? audioCodecPriority, bool isTunneledPlaybackEnabled = false, SeekMode seekMode = SeekMode.exact, MediaFilter audioFilter = MediaFilter.loose, MediaFilter videoFilter = MediaFilter.loose})
const
PlaybackConfig.fromJson(Map<String, dynamic> json)
factory

Properties

audioCodecPriority List<String>?
The audio codec priority where the first index has the highest priority. For a single SourceConfig this can be overwritten using SourceConfig.audioCodecPriority. Default value is null. In this case the player will use the default that is provided by the platform.
final
audioFilter MediaFilter
Specifies how strictly potentially unsupported audio tracks and qualities are filtered out of a playback session. Default value is MediaFilter.loose.
final
hashCode int
The hash code for this object.
no setterinherited
isAutoplayEnabled bool
Specifies whether autoplay is enabled. Default value is false.
final
isBackgroundPlaybackEnabled bool
Specifies if background playback is enabled or not. Default is false.
final
isMuted bool
Specifies whether the player should start muted. Default value is false.
final
isTimeShiftEnabled bool
Specifies if time shifting (during live streaming) should be enabled. Default value is true.
final
isTunneledPlaybackEnabled bool
Specifies if tunneled playback should be enabled. Default value is false.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seekMode SeekMode
The SeekMode that will be used. Default value is SeekMode.exact.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
videoCodecPriority List<String>?
The video codec priority where the index has the highest priority. For a single SourceConfig this can be overwritten using SourceConfig.videoCodecPriority. Default value is null. In this case the player will use the default that is provided by the platform.
final
videoFilter MediaFilter
Specifies how strictly potentially unsupported video qualities are filtered out of a playback session. Default value is MediaFilter.loose.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited