SourceConfig constructor

const SourceConfig({
  1. required String url,
  2. required SourceType type,
  3. String? title,
  4. String? description,
  5. List<String>? audioCodecPriority,
  6. bool isPosterPersistent = false,
  7. String? posterSource,
  8. List<SubtitleTrack>? subtitleTracks = const [],
  9. ThumbnailTrack? thumbnailTrack,
  10. List<String>? videoCodecPriority,
  11. SourceOptions options = const SourceOptions(),
  12. DrmConfig? drmConfig,
  13. SourceMetadata? analyticsSourceMetadata,
})

Implementation

const SourceConfig({
  required this.url,
  required this.type,
  this.title,
  this.description,
  this.audioCodecPriority,
  this.isPosterPersistent = false,
  this.posterSource,
  this.subtitleTracks = const [],
  this.thumbnailTrack,
  this.videoCodecPriority,
  this.options = const SourceOptions(),
  this.drmConfig,
  this.analyticsSourceMetadata,
});