lemon_js_ui_video_player 0.1.0 copy "lemon_js_ui_video_player: ^0.1.0" to clipboard
lemon_js_ui_video_player: ^0.1.0 copied to clipboard

VideoPlayer component plugin for package:lemon_js_ui.

lemon_js_ui_video_player #

lemon_js_ui_video_playerlemon_js_ui 提供原生 VideoPlayer 组件,JS 页面可通过 quickjs_ui/video_player 模块声明播放器节点。

安装 #

dependencies:
  lemon_js_ui_video_player: ^0.1.0

插件内部负责依赖 video_player,并在 Windows、macOS 和 Linux 上自动注册 FVP 后端。宿主通常不需要直接依赖或初始化这两个底层包。

final plugins = <QuickjsUiPlugin>[
  QuickjsUiVideoPlayerPlugin.plugin,
];

只有需要定制桌面端 FVP 参数时,才需要在创建 UI Session 前调用:

QuickjsUiVideoPlayerPlugin.registerDesktopBackend(
  options: const <String, Object>{
    'platforms': <String>['windows', 'macos', 'linux'],
  },
);

更多页面协议和代码提示配置见 lemon_js_ui 使用指南

0
likes
0
points
183
downloads

Publisher

unverified uploader

Weekly Downloads

VideoPlayer component plugin for package:lemon_js_ui.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, fvp, lemon_js, lemon_js_ui, video_player

More

Packages that depend on lemon_js_ui_video_player