Skip to content

Commit 0a11125

Browse files
committed
v0.30.0
1 parent cbfb02d commit 0a11125

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 0.30.0
2+
3+
* `subtitleFontFile` option can be an http url
4+
* ios: fix no sound in silent mode
5+
* android: fix snapshot result is empty
6+
* android: use `onSurfaceCleanup` for flutter >= 3.28
7+
18
## 0.29.0
29

310
* not declared as video_player implementation in pubdec.yaml, fix conflicting with other implementations

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ project is create with `flutter create -t plugin --platforms=linux,macos,windows
1515
- Hardware decoders are enabled by default
1616
- Dolby Vision support on all platforms
1717
- Minimal code change for existing [Video Player](https://pub.dev/packages/video_player) apps
18-
- Support most formats via FFmpeg demuxer and software decoders if not supported by gpu. You can use your own ffmpeg 4.0~7.0(or master branch) by removing bundled ffmpeg dynamic library.
18+
- Support most formats via FFmpeg demuxer and software decoders if not supported by gpu. You can use your own ffmpeg 4.0~7.1(or master branch) by removing bundled ffmpeg dynamic library.
1919
- High performance. Lower cpu, gpu and memory load than libmpv based players.
2020
- Support audio without video
21+
- HEVC(ios, mac only), VP8 and VP9 transparent video
2122
- Small footprint. Only about 10MB size increase per cpu architecture(platform dependent).
2223

2324

@@ -103,7 +104,12 @@ For other platforms, set environment var `FVP_DEPS_LATEST=1` and rebuilt, will u
103104

104105
libass is required, and it's added to your app automatically for windows, macOS and android(remove ass.dll, libass.dylib and libass.so from mdk-sdk if you don't need it). For iOS, [download](https://sourceforge.net/projects/mdk-sdk/files/deps/dep.7z/download) and add `ass.framework` to your xcode project. For linux, system libass can be used, you may have to install manually via system package manager.
105106

106-
If required subtitle font is not found in the system(e.g. android), you can add [assets/subfont.ttf](https://github.com/mpv-android/mpv-android/raw/master/app/src/main/assets/subfont.ttf) in pubspec.yaml as the fallback.
107+
If required subtitle font is not found in the system(e.g. android), you can add [assets/subfont.ttf](https://github.com/mpv-android/mpv-android/raw/master/app/src/main/assets/subfont.ttf) in pubspec.yaml assets as the fallback. Optionally you can also download the font file by fvp like this
108+
```dart
109+
fvp.registerWith(options: {
110+
'subtitleFontFile': 'https://github.com/mpv-android/mpv-android/raw/master/app/src/main/assets/subfont.ttf'
111+
});
112+
```
107113

108114
# DO NOT use flutter-snap
109115
Flutter can be installed by snap, but it will add some [enviroment vars(`CPLUS_INCLUDE_PATH` and `LIBRARY_PATH`) which may break C++ compiler](https://github.com/canonical/flutter-snap/blob/main/env.sh#L15-L18). It's not recommended to use snap, althrough building for linux is [fixed](https://github.com/wang-bin/fvp/commit/567c68270ba16b95b1198ae58850707ae4ad7b22), but it's not possible for android.

darwin/fvp.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
Pod::Spec.new do |s|
77
s.name = 'fvp'
8-
s.version = '0.29.0'
8+
s.version = '0.30.0'
99
s.summary = 'libmdk based Flutter video player plugin'
1010
s.description = <<-DESC
1111
Flutter video player plugin.
@@ -25,7 +25,7 @@ Flutter video player plugin.
2525
s.osx.dependency 'FlutterMacOS'
2626
s.ios.deployment_target = '12.0'
2727
s.osx.deployment_target = '10.13'
28-
s.dependency 'mdk', '~> 0.30.1'
28+
s.dependency 'mdk', '~> 0.31.0'
2929

3030
# s.platform = :osx, '10.11'
3131
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }

pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fvp
22
description: video_player plugin and backend APIs. Support all desktop/mobile platforms with hardware decoders, optimal renders. Supports most formats via FFmpeg
3-
version: 0.29.0
3+
version: 0.30.0
44
homepage: https://github.com/wang-bin/fvp
55
topics:
66
- video
@@ -29,7 +29,7 @@ dev_dependencies:
2929
flutter_test:
3030
sdk: flutter
3131
flutter_lints: any
32-
ffigen: '>=9.0.0'
32+
ffigen: ^9.0.0
3333
lints: any
3434

3535
# For information on the generic Dart part of this file, see the

windows/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.14)
66

77
# Project-level configuration.
88
set(PROJECT_NAME "fvp")
9-
project(${PROJECT_NAME} VERSION 0.29.0
9+
project(${PROJECT_NAME} VERSION 0.30.0
1010
DESCRIPTION "Flutter video_player plugin via libmdk")
1111
set(PROJECT_VERSION_TWEAK 0)
1212
set(CMAKE_CXX_STANDARD 20)

0 commit comments

Comments
 (0)