Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
moxun33 committed Feb 7, 2023
1 parent 0f5cae4 commit ec8c265
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ jobs:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Copy ffmpeg dll to cargo dir
run: |
cp ffmpeg/bin/*.dll C:\Users\runneradmin\.cargo\bin
- uses: subosito/flutter-action@v2
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ jobs:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Copy ffmpeg dll to cargo dir
run: |
cp ffmpeg/bin/*.dll C:\Users\runneradmin\.cargo\bin
- uses: subosito/flutter-action@v2
with:
channel: "stable"
Expand Down
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- 打开单个网络链接
- 播放器基本设置
- 直播源扫描和导出
- 扫源时获取IPV4地址信息和媒体信息

## 多平台

Expand All @@ -31,15 +32,10 @@

- 拉取项目,安装依赖
- 安装配置``ffmpeg``(已测试版本为``4.4.1``,其他版本未测试_和``LLVM``[下载ffmpeg](https://github.com/GyanD/codexffmpeg/releases/download/4.4.1/ffmpeg-4.4.1-full_build-shared.zip),解压后,设置环境变量``FFMPEG_DIR``为ffmpeg解压目录。更多信息,请参考[这里](https://github.com/zmwangx/rust-ffmpeg/wiki/Notes-on-building))

- (可选) FFI Code Gen ,首次运行

``flutter_rust_bridge_codegen --rust-input rust/src/api.rs --dart-output lib/bridge_generated.dart ``

- 搭建``rust``环境(``rust ``版本大于1.66),参考[rustup](https://www.rust-lang.org/zh-CN/tools/install)。 Window平台中复制``ffmpeg/bin``目录下的所有``dll````cargo/bin``目录, 否则``rust-ffmpeg``可能出错。
- 首次运行 ``flutter_rust_bridge_codegen --rust-input rust/src/api.rs --dart-output lib/bridge_generated.dart ``

- 启动项目
> 提醒:项目中使用了 ``flutter_rust_bridge``,可自行搭建``rust``环境,具体参考 [flutter-rust-bridge](http://cjycode.com/flutter_rust_bridge/)``rust ``版本大于1.66

## 截图

Expand All @@ -58,8 +54,9 @@

2、项目使用了[rust-ffmpeg](https://github.com/meh/rust-ffmpeg),需要提前配置编译环境

3、关于``flutter_rust_bridge``,具体参考 [flutter-rust-bridge](http://cjycode.com/flutter_rust_bridge/)

4、若编译``rust-ffmpeg``出现``exit code: 0xc0000135, STATUS_DLL_NOT_FOUND``错误时,参考 https://github.com/zmwangx/rust-ffmpeg/issues/119 进行设置。一般设置好``FFMPEG_DIR``不会出现该错误
4、若编译``rust-ffmpeg``出现``exit code: 0xc0000135, STATUS_DLL_NOT_FOUND``错误或扫源时无法获取媒体信息(Windows平台中显示无法加载``native.dll``),Window平台中复制``ffmpeg/bin``目录下的所有``dll````cargo/bin``目录。具体参考 https://github.com/zmwangx/rust-ffmpeg/issues/119 进行设置。


## 声明
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.4.0+1
version: 0.4.4+1

environment:
sdk: ">=2.17.0 <3.0.0"
Expand Down

0 comments on commit ec8c265

Please sign in to comment.