DataSource class
Description of the data source used to create an instance of the video player.
Constructors
-
DataSource({required DataSourceType sourceType, String? uri, VideoFormat? formatHint, String? asset, String? package, Map<
String, String?> ? headers, bool useCache = false, int? maxCacheSize = _maxCacheSize, int? maxCacheFileSize = _maxCacheFileSize, String? cacheKey, bool? showNotification = false, String? title, String? author, String? imageUrl, String? notificationChannelName, Duration? overriddenDuration, String? licenseUrl, String? certificateUrl, Map<String, String> ? drmHeaders, String? activityName, String? clearKey, String? videoExtension}) - Constructs an instance of DataSource.
Properties
- activityName → String?
-
final
- asset → String?
-
The name of the asset. Only set for DataSourceType.asset videos.
final
-
final
- cacheKey → String?
-
final
- certificateUrl → String?
-
final
- clearKey → String?
-
final
-
drmHeaders
→ Map<
String, String> ? -
final
- formatHint → VideoFormat?
-
Android only. Will override the platform's generic file format
detection with whatever is set here.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String?> ? -
final
- imageUrl → String?
-
final
- key → String
-
Key to compare DataSource
no setter
- licenseUrl → String?
-
final
- maxCacheFileSize → int?
-
final
- maxCacheSize → int?
-
final
- notificationChannelName → String?
-
final
- overriddenDuration → Duration?
-
final
- package → String?
-
The package that the asset was loaded from. Only set for
DataSourceType.asset videos.
final
- rawFormalHint → String?
-
Android only. String representation of a formatHint.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showNotification → bool?
-
final
- sourceType → DataSourceType
-
Describes the type of data source this VideoPlayerController
is constructed with.
final
- title → String?
-
final
- uri → String?
-
The URI to the video file.
final
- useCache → bool
-
final
- videoExtension → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited