fromAsset static method

  1. @Deprecated('Asset playback is not supported by the native player. Use fromFile instead.')
VideoSource fromAsset(
  1. String assetPath, {
  2. String package = '',
  3. List<SenzuPlayerAd>? ads,
  4. Map<String, SenzuPlayerSubtitle>? subtitle,
  5. String initialSubtitle = '',
  6. Tween<Duration>? range,
  7. SenzuThumbnailSprite? thumbnailSprite,
})

Implementation

@Deprecated(
  'Asset playback is not supported by the native player. Use fromFile instead.',
)
static VideoSource fromAsset(
  String assetPath, {
  String package = '',
  List<SenzuPlayerAd>? ads,
  Map<String, SenzuPlayerSubtitle>? subtitle,
  String initialSubtitle = '',
  Tween<Duration>? range,
  SenzuThumbnailSprite? thumbnailSprite,
}) => VideoSource(
  dataSource: assetPath,
  protocol: VideoProtocol.mp4,
  ads: ads,
  subtitle: subtitle,
  initialSubtitle: initialSubtitle,
  range: range,
  thumbnailSprite: thumbnailSprite,
);