ThaMediaSource class

Definition of a single media item for the native player.

Constructors

ThaMediaSource(String url, {Map<String, String>? headers, bool isLive = false, ThaDrmConfig drm = const ThaDrmConfig(type: ThaDrmType.none), String? thumbnailVttUrl, Map<String, String>? thumbnailHeaders})
Creates a media source definition.
const

Properties

drm ThaDrmConfig
DRM configuration for the item.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
Optional HTTP headers applied to the media request.
final
isLive bool
When true, enables live-stream tuning such as low latency buffering.
final
isM3U bool
true if the URL ends with .m3u.
no setter
isM3U8 bool
true if the URL looks like an HLS manifest.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnailHeaders Map<String, String>?
Additional headers for thumbnail requests.
final
thumbnailVttUrl String?
Optional VTT sprite sheet used to render seek thumbnails.
final
url String
Stream URL or manifest (HLS/DASH/MP4/etc).
final

Methods

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