Skip to content

Commit

Permalink
v0.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Aug 8, 2024
1 parent 22218c4 commit 06e9c93
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.23.0

* add `Player.snapshot()`
* fix sometimes no intialized event
* enable http(s) reconnect
* fix Player.state is not current state

## 0.22.0

* windows: fix d3d11 sync issue
Expand Down
2 changes: 1 addition & 1 deletion darwin/fvp.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'fvp'
s.version = '0.22.0'
s.version = '0.23.0'
s.summary = 'libmdk based Flutter video player plugin'
s.description = <<-DESC
Flutter video player plugin.
Expand Down
5 changes: 4 additions & 1 deletion lib/src/player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,10 @@ class Player {
_player.ref.object, Pointer.fromAddress(vid.hashCode));

/// Take a snapshot for current rendered frame.
/// Return rgba data, image size is `mediaInfo.video[current_track].codec.width/height`, stride is `width*4`
///
/// [width] snapshot width. if not set, result is `mediaInfo.video[current_track].codec.width`
/// [height] snapshot height. if not set, result is `mediaInfo.video[current_track].codec.height`
/// Return rgba data of image size [width]x[height], stride is `width*4`
Future<Uint8List?> snapshot({int? width, int? height}) {
if (!(_snapshot?.isCompleted ?? true)) {
_snapshot?.complete(null);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fvp
description: video_player plugin and backend APIs. Support all desktop/mobile platforms with hardware decoders, optimal renders. Supports most formats via FFmpeg
version: 0.22.0
version: 0.23.0
homepage: https://github.com/wang-bin/fvp
topics:
- video
Expand Down
2 changes: 1 addition & 1 deletion windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.14)

# Project-level configuration.
set(PROJECT_NAME "fvp")
project(${PROJECT_NAME} VERSION 0.22.0
project(${PROJECT_NAME} VERSION 0.23.0
DESCRIPTION "Flutter video_player plugin via libmdk")
set(PROJECT_VERSION_TWEAK 0)
set(CMAKE_CXX_STANDARD 20)
Expand Down
3 changes: 2 additions & 1 deletion windows/version.rc.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "winver.h"
// https://learn.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource

//IDI_ICON1 ICON DISCARDABLE "@CMAKE_SOURCE_DIR@/mdk.ico"
//IDI_ICON1 ICON DISCARDABLE "@CMAKE_SOURCE_DIR@/@PROJECT_NAME@.ico"

1 VERSIONINFO // VS_VERSION_INFO
FILEVERSION @PROJECT_VERSION_MAJOR@,@PROJECT_VERSION_MINOR@,@PROJECT_VERSION_PATCH@,@PROJECT_VERSION_TWEAK@
Expand All @@ -24,6 +24,7 @@ BEGIN
VALUE "FileDescription", "@PROJECT_DESCRIPTION@@MODULE_DETAIL@"
VALUE "FileVersion", "@PROJECT_VERSION_MAJOR@,@PROJECT_VERSION_MINOR@,@PROJECT_VERSION_PATCH@,@PROJECT_VERSION_TWEAK@"
VALUE "LegalCopyright", "Copyright (C) @COPYRIGHT_YEAR@ WangBin, wbsecg1@gmail.com"
VALUE "OriginalFilename", "@PROJECT_NAME@.dll"
VALUE "InternalName", "@PROJECT_NAME@"
VALUE "ProductName", "@PROJECT_NAME@"
VALUE "ProductVersion", "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@.@PROJECT_VERSION_TWEAK@"
Expand Down

0 comments on commit 06e9c93

Please sign in to comment.