UNetworkSource constructor

UNetworkSource(
  1. String url, {
  2. String? id,
  3. UMediaMetadata? metadata,
  4. Map<String, String> headers = const <String, String>{},
  5. String? userAgent,
  6. UStreamProtocol? protocol,
  7. Duration? startPosition,
  8. Duration? endPosition,
  9. List<UExternalSubtitle> externalSubtitles = const <UExternalSubtitle>[],
  10. UDrmConfig? drm,
})

Implementation

UNetworkSource(
  this.url, {
  String? id,
  super.metadata,
  this.headers = const <String, String>{},
  this.userAgent,
  this.protocol,
  super.startPosition,
  super.endPosition,
  super.externalSubtitles,
  super.drm,
}) : super(id: id ?? url);