Media class

Constructors

Media({required String url, String? drmLicenseUrl, String? drmCertificate, List<String>? subtitles, int? startFromSecond, Map<String, String>? headers, String? imaTagUrl})

Properties

drmCertificate String?
Fairplay certificate. Can be either URL or Base64 encoded certificate
getter/setter pair
drmLicenseUrl String?
Widevine License URL if the media is DRM protected
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
headers Map<String, String>?
Player headers
getter/setter pair
imaTagUrl String?
IMA Ads
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startFromSecond int?
Where to start media from (in seconds)
getter/setter pair
subtitles List<String>?
External subtitles url
getter/setter pair
url String
The Dash URL of the media (required)
getter/setter pair

Methods

encode() Object
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.
override

Static Methods

decode(Object result) Media