PlayVideoFrom.vimeo constructor

PlayVideoFrom.vimeo(
  1. String dataSource, {
  2. String? hash,
  3. VideoFormat? formatHint,
  4. Future<ClosedCaptionFile>? closedCaptionFile,
  5. VideoPlayerOptions? videoPlayerOptions,
  6. Map<String, String> httpHeaders = const {},
})

Implementation

factory PlayVideoFrom.vimeo(
  String dataSource, {
  String? hash,
  VideoFormat? formatHint,
  Future<ClosedCaptionFile>? closedCaptionFile,
  VideoPlayerOptions? videoPlayerOptions,
  Map<String, String> httpHeaders = const {},
}) {
  return PlayVideoFrom._(
    playerType: PodVideoPlayerType.vimeo,
    dataSource: dataSource,
    hash: hash,
    formatHint: formatHint,
    closedCaptionFile: closedCaptionFile,
    videoPlayerOptions: videoPlayerOptions,
    httpHeaders: httpHeaders,
  );
}