VideoSource class
Properties
-
ads
→ List<VideoViewerAd>?
-
It's the ads list it's going to show
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
intialSubtitle
→ String
-
If intialSubtitle doesn't exist in subtitle, then it won't select any
subtitles and won't display anything until the user selects a subtitle.
final
-
range
→ Tween<Duration>?
-
It's the range of the video where it's going to play. For example, you want to play the video from
Duration.zero
to Duration(minutes: 2)
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
subtitle
→ Map<String, VideoViewerSubtitle>?
-
//MULTI-SUBTITLES SUPPORT
{
"English": VideoViewerSubtitle.network(
"https://pastebin.com/raw/h9cP6N5N",
type: SubtitleType.webvtt,
),
"Spanish": VideoViewerSubtitle.network(
"https://pastebin.com/raw/wrz69aay",
type: SubtitleType.webvtt,
),
},
final
-
video
→ VideoPlayerController
-
VideoPlayerController is from video_player package.
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
Static Methods
-
fromM3u8PlaylistUrl(String m3u8, {String initialSubtitle = "", Map<String, VideoViewerSubtitle>? subtitle, List<VideoViewerAd>? ads, Tween<Duration>? range, String formatter(String quality)?, bool descending = true})
→ Future<Map<String, VideoSource>>
-
It's a function that returns a map from VideoPlayerController.network, the input
data must be of type URL.
-
fromNetworkVideoSources(Map<String, String> sources, {String initialSubtitle = "", Map<String, VideoViewerSubtitle>? subtitle, List<VideoViewerAd>? ads, Tween<Duration>? range})
→ Map<String, VideoSource>
-
It's a function that returns a map from VideoPlayerController.network, the input
data must be of type URL.
-
getSource(bool descending, Map<String, dynamic> sources, Map<String, String> sourceUrls)
→ Iterable<MapEntry<String, dynamic>>
-