fromNetworkVideoSources static method

Map<String, VideoSource> fromNetworkVideoSources(
  1. Map<String, String> sources, {
  2. String initialSubtitle = '',
  3. Map<String, SenzuPlayerSubtitle>? subtitle,
  4. List<SenzuPlayerAd>? ads,
  5. Tween<Duration>? range,
  6. Map<String, String>? httpHeaders,
  7. SenzuThumbnailSprite? thumbnailSprite,
  8. SenzuDrmConfig? drm,
})

Implementation

static Map<String, VideoSource> fromNetworkVideoSources(
  Map<String, String> sources, {
  String initialSubtitle = '',
  Map<String, SenzuPlayerSubtitle>? subtitle,
  List<SenzuPlayerAd>? ads,
  Tween<Duration>? range,
  Map<String, String>? httpHeaders,
  SenzuThumbnailSprite? thumbnailSprite,
  final SenzuDrmConfig? drm,
}) => sources.map(
  (k, url) => MapEntry(
    k,
    VideoSource(
      dataSource: url,
      initialSubtitle: initialSubtitle,
      subtitle: subtitle,
      ads: ads,
      range: range,
      httpHeaders: httpHeaders,
      thumbnailSprite: thumbnailSprite,
      drm: drm,
    ),
  ),
);