Skip to content

Commit 4321d55

Browse files
committed
readme, changelog
1 parent 8d57a3a commit 4321d55

File tree

3 files changed

+30
-8
lines changed

3 files changed

+30
-8
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Miscellaneous
2+
.vscode/settings.json
23
mdk-sdk/
4+
*.dll
5+
*.so
6+
*.7z
7+
*.apk
8+
*.aab
9+
*.xz
10+
*.lock
311
*.class
412
*.log
513
*.pyc

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
## 0.0.1
22

3-
* TODO: Describe initial release.
3+
* video playback for windows, linux, macos, ios, android
4+
* hardware decoding, optimal gpu rendering

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# fvp
1+
# FVP
22

33
[Flutter Video Player](https://pub.dev/packages/video_player) **Plugin** based on [libmdk](https://github.com/wang-bin/mdk-sdk) for all desktop and mobile platforms.
44

@@ -8,26 +8,33 @@
88
- Hardware decoders are enabled by default
99
- Minimal code change for existing [Video Player](https://pub.dev/packages/video_player) apps
1010

11-
## Build
1211

12+
## How to Use
13+
Add 2 lines in your video_player examples
14+
15+
```dart
16+
import 'package:fvp/fvp.dart';
17+
18+
MdkVideoPlayer.registerWith();
1319
```
20+
21+
## Build
22+
23+
```bash
1424
git submodule update --init
1525
cd example
1626
flutter run
1727
```
1828

1929
Will download [libmdk](https://github.com/wang-bin/mdk-sdk) sdk if not found. You can also download the **latest** sdk for [android](https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-android.7z), [windows](https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-windows-desktop-vs2022.7z/download) and [linux](https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-linux.tar.xz) manually and extract in android, windows and linux folder. macOS and iOS will download the [latest sdk](https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-apple.zip/download) by cocoapods. To upgrade to the latest macOS/iOS sdk
20-
```
30+
31+
```bash
2132
cd examples/macos
2233
pod deintegrate
2334
pod cache clean mdk
2435
pod install --verbose
2536
```
2637

27-
## How to Use
28-
Add 2 lines in your video_player examples
29-
- `import 'package:fvp/fvp.dart';`
30-
- `MdkVideoPlayer.registerWith();`
3138
## TODO:
3239
- [ ] Assets
3340
- [ ] Android vulkan rendering
@@ -39,3 +46,9 @@ Add 2 lines in your video_player examples
3946
- Playback control api in dart via ffi
4047
- Manage video renderers in platform specific manners. Receive player ptr via `MethodChannel` to construct player instance and set a renderer target.
4148
- Callbacks and events in C++ are notified by ReceivePort
49+
50+
# Screenshots
51+
![fpv_android](https://github.com/wang-bin/fvp/assets/785206/40f458e5-d7ca-4513-b709-b056deaaf421)
52+
![fvp_win](https://github.com/wang-bin/fvp/assets/785206/920bdd51-6947-4a00-87b4-9c1a21a68d51)
53+
![fvp_linux](https://github.com/wang-bin/fvp/assets/785206/ce2ad50b-2ead-43bb-bf25-6e2575c5ebe1)
54+
![fvp_macos](https://github.com/wang-bin/fvp/assets/785206/71de39a4-c5f0-4c8f-9920-d7dfc6cd0d9a)

0 commit comments

Comments
 (0)