PlayVideoFrom.youtube constructor
PlayVideoFrom.youtube(
- String dataSource, {
- bool live = false,
- VideoFormat? formatHint,
- Future<
ClosedCaptionFile> ? closedCaptionFile, - VideoPlayerOptions? videoPlayerOptions,
- Map<
String, String> httpHeaders = const {},
Implementation
factory PlayVideoFrom.youtube(
String dataSource, {
bool live = false,
VideoFormat? formatHint,
Future<ClosedCaptionFile>? closedCaptionFile,
VideoPlayerOptions? videoPlayerOptions,
Map<String, String> httpHeaders = const {},
}) {
return PlayVideoFrom._(
live: live,
playerType: PodVideoPlayerType.youtube,
dataSource: dataSource,
formatHint: formatHint,
closedCaptionFile: closedCaptionFile,
videoPlayerOptions: videoPlayerOptions,
httpHeaders: httpHeaders,
);
}