VesperDownloadSource.fromSource constructor

VesperDownloadSource.fromSource({
  1. required VesperPlayerSource source,
  2. VesperDownloadContentFormat? contentFormat,
  3. String? manifestUri,
})

Implementation

factory VesperDownloadSource.fromSource({
  required VesperPlayerSource source,
  VesperDownloadContentFormat? contentFormat,
  String? manifestUri,
}) {
  return VesperDownloadSource(
    source: source,
    contentFormat: contentFormat ?? _inferContentFormat(source.protocol),
    manifestUri: manifestUri,
  );
}