PlayletCardView constructor

PlayletCardView({
  1. Key? key,
  2. required double width,
  3. required double height,
  4. bool? autoPlay,
  5. bool? loop,
  6. bool? mute,
})

短剧卡片

  • width 宽 (根据宽返回 高:宽16:9` 的视频,加载完成后flutter widget会自动适配原生返回视频大小,这里高度可能会与设置的height不一致)
  • height
  • autoPlay 是否自动播放,默认true
  • loop 是否是否循环播放播放,默认true
  • mute 是否静音,默认true

Implementation

PlayletCardView(
    {Key? key,
    required this.width,
    required this.height,
    this.autoPlay,
    this.loop,
    this.mute})
    : super(key: key);