PlayVideoFrom.youtube constructor

PlayVideoFrom.youtube(
  1. String dataSource, {
  2. bool live = false,
  3. VideoFormat? formatHint,
  4. Future<ClosedCaptionFile>? closedCaptionFile,
  5. VideoPlayerOptions? videoPlayerOptions,
  6. 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,
  );
}