EmbedInfo class

Initial parameters specifying the video to load and playback preferences.

Constructors

EmbedInfo({required bool offline, String? otp, String? playbackInfo, String? token, String? mediaId, EmbedInfoOptions? embedInfoOptions, Duration? skipDuration, List<double>? playbackSpeedOptions})
EmbedInfo.offline({required String mediaId, EmbedInfoOptions? embedInfoOptions, Duration? skipDuration, List<double>? playbackSpeedOptions})
Supported only on android and ios.
const
EmbedInfo.streaming({required String otp, required String playbackInfo, EmbedInfoOptions? embedInfoOptions, Duration? skipDuration, List<double>? playbackSpeedOptions = defaultPlaybackSpeedOptions})
const
EmbedInfo.streamingV2({required String token, required String mediaId, EmbedInfoOptions? embedInfoOptions, Duration? skipDuration, List<double>? playbackSpeedOptions = defaultPlaybackSpeedOptions})
const

Properties

embedInfoOptions EmbedInfoOptions?
final
hashCode int
The hash code for this object.
no setterinherited
mediaId String?
final
offline bool
final
otp String?
final
playbackInfo String?
final
playbackSpeedOptions List<double>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipDuration Duration?
final
token String?
final

Methods

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

Operators

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

Static Methods

fromMap(Map<Object?, Object?> embedInfo) EmbedInfo