flutter_nimplayer

Last updated:

0 purchases

flutter_nimplayer Image
flutter_nimplayer Images
Add to Cart

Description:

flutter nimplayer

flutter_nimplayer #
Flutter 版的网易云信点播播放器 SDK,支持 Android & iOS。

开始使用 #
添加依赖:
dependencies:
flutter_nimplayer: ^{latest_version}
copied to clipboard
用法 #
第一步,创建播放器:
player = FlutterNimplayerFactory.createPlayer();
copied to clipboard
第二步,添加播放器视图:
NimplayerView(
onCreated: (viewId) {
initAndPlay(viewId);
},
x: 0,
y: 0,
width: viewWidth,
height: viewHeight,
);
copied to clipboard
第三步,设置播放源并播放:
void initAndPlay(int viewId) {
// 建立连接
player?.setPlayerView(viewId);
// 设置播放链接
player?.setUrl(url);
// 准备播放
player?.prepare();
}
copied to clipboard
具体示例请移步项目下的 example 文件夹,更多播放器接口以及播放回调请查看项目源码。
欢迎提交 issue 和 PR 帮助完善该项目。

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.