VideoSource class

Constructors

VideoSource({required String dataSource, List<SenzuPlayerAd>? ads, Map<String, SenzuPlayerSubtitle>? subtitle, String initialSubtitle = '', Tween<Duration>? range, Map<String, String>? httpHeaders, SenzuThumbnailSprite? thumbnailSprite, bool isLowLatency = false, int? targetLatencyMs, String? forceCodec, SenzuDrmConfig? drm, VideoProtocol protocol = VideoProtocol.hls})

Properties

ads List<SenzuPlayerAd>?
final
dataSource String
final
drm SenzuDrmConfig?
final
forceCodec String?
final
hashCode int
The hash code for this object.
no setterinherited
httpHeaders Map<String, String>?
final
initialSubtitle String
final
intialSubtitle String
no setter
isLowLatency bool
final
protocol VideoProtocol
final
range Tween<Duration>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle Map<String, SenzuPlayerSubtitle>?
final
targetLatencyMs int?
final
thumbnailSprite SenzuThumbnailSprite?
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

Static Methods

fromAsset(String assetPath, {String package = '', List<SenzuPlayerAd>? ads, Map<String, SenzuPlayerSubtitle>? subtitle, String initialSubtitle = '', Tween<Duration>? range, SenzuThumbnailSprite? thumbnailSprite}) VideoSource
fromDashUrl(String url, {Map<String, String>? httpHeaders, List<SenzuPlayerAd>? ads, Map<String, SenzuPlayerSubtitle>? subtitle, String initialSubtitle = '', Tween<Duration>? range, SenzuDrmConfig? drm}) VideoSource
fromFile(String filePath, {List<SenzuPlayerAd>? ads, Map<String, SenzuPlayerSubtitle>? subtitle, String initialSubtitle = '', Tween<Duration>? range, SenzuThumbnailSprite? thumbnailSprite}) VideoSource
fromM3u8PlaylistUrl(String m3u8, {String initialSubtitle = '', Map<String, SenzuPlayerSubtitle>? subtitle, List<SenzuPlayerAd>? ads, Tween<Duration>? range, String formatter(String)?, bool descending = true, Map<String, String>? httpHeaders, bool autoSubtitle = true, String initialSubtitleLang = '', SenzuThumbnailSprite? thumbnailSprite, SenzuDrmConfig? drm}) Future<Map<String, VideoSource>>
fromNetworkVideoSources(Map<String, String> sources, {String initialSubtitle = '', Map<String, SenzuPlayerSubtitle>? subtitle, List<SenzuPlayerAd>? ads, Tween<Duration>? range, Map<String, String>? httpHeaders, SenzuThumbnailSprite? thumbnailSprite, SenzuDrmConfig? drm}) Map<String, VideoSource>
fromUrl(String url, {Map<String, String>? httpHeaders, List<SenzuPlayerAd>? ads, Map<String, SenzuPlayerSubtitle>? subtitle, String initialSubtitle = '', Tween<Duration>? range, SenzuThumbnailSprite? thumbnailSprite, bool isLowLatency = false, int? targetLatencyMs, String? forceCodec, VideoProtocol protocol = VideoProtocol.hls, SenzuDrmConfig? drm}) VideoSource