EmbedInfo class

Initial parameters specifying the video to load and playback preferences. Note: mediaUrl and licenseUrl are supported only on Android.

Constructors

EmbedInfo({required bool offline, String? otp, String? playbackInfo, String? token, String? mediaId, String? mediaUrl, String? licenseUrl, EmbedInfoOptions? embedInfoOptions, Duration? skipDuration, List<double>? playbackSpeedOptions})
EmbedInfo.externalPlayback({required String mediaUrl, String? licenseUrl, EmbedInfoOptions? embedInfoOptions, Duration? skipDuration, List<double>? playbackSpeedOptions = defaultPlaybackSpeedOptions})
const
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
licenseUrl → String?
The license URL for DRM-protected content. Android-only.
final
mediaId → String?
final
mediaUrl → String?
The URL of the media file. Android-only.
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