Skip to content

Commit 8a25285

Browse files
Merge pull request #286 from alexmercerind/v0.2.1
v0.2.1
2 parents 966b450 + 992d163 commit 8a25285

File tree

8 files changed

+36
-3
lines changed

8 files changed

+36
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.2.1
2+
3+
- Addressed few issues related to `NativeVideo` on Windows (@alexmercerind).
4+
- Fixed switch case directShow control (@Paradoxu).
5+
- Fixed Bump `flutter_native_view` and `window_manager` to latest versions (@ashutosh2014, @alexmercerind).
6+
17
## 0.2.0
28

39
- Addressed multiple Dart-sided memory leaks during FFI interop (@alexmercerind).

example/linux/flutter/generated_plugin_registrant.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77
#include "generated_plugin_registrant.h"
88

99
#include <dart_vlc/dart_vlc_plugin.h>
10+
#include <window_manager/window_manager_plugin.h>
1011

1112
void fl_register_plugins(FlPluginRegistry* registry) {
1213
g_autoptr(FlPluginRegistrar) dart_vlc_registrar =
1314
fl_plugin_registry_get_registrar_for_plugin(registry, "DartVlcPlugin");
1415
dart_vlc_plugin_register_with_registrar(dart_vlc_registrar);
16+
g_autoptr(FlPluginRegistrar) window_manager_registrar =
17+
fl_plugin_registry_get_registrar_for_plugin(registry, "WindowManagerPlugin");
18+
window_manager_plugin_register_with_registrar(window_manager_registrar);
1519
}

example/linux/flutter/generated_plugins.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
list(APPEND FLUTTER_PLUGIN_LIST
66
dart_vlc
7+
window_manager
8+
)
9+
10+
list(APPEND FLUTTER_FFI_PLUGIN_LIST
711
)
812

913
set(PLUGIN_BUNDLED_LIBRARIES)
@@ -14,3 +18,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
1418
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
1519
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
1620
endforeach(plugin)
21+
22+
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
23+
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
24+
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
25+
endforeach(ffi_plugin)

example/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import Foundation
77

88
import dart_vlc
99
import path_provider_macos
10+
import window_manager
1011

1112
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1213
DartVlcPlugin.register(with: registry.registrar(forPlugin: "DartVlcPlugin"))
1314
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
15+
WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin"))
1416
}

example/windows/flutter/generated_plugin_registrant.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88

99
#include <dart_vlc/dart_vlc_plugin.h>
1010
#include <flutter_native_view/flutter_native_view_plugin.h>
11+
#include <window_manager/window_manager_plugin.h>
1112

1213
void RegisterPlugins(flutter::PluginRegistry* registry) {
1314
DartVlcPluginRegisterWithRegistrar(
1415
registry->GetRegistrarForPlugin("DartVlcPlugin"));
1516
FlutterNativeViewPluginRegisterWithRegistrar(
1617
registry->GetRegistrarForPlugin("FlutterNativeViewPlugin"));
18+
WindowManagerPluginRegisterWithRegistrar(
19+
registry->GetRegistrarForPlugin("WindowManagerPlugin"));
1720
}

example/windows/flutter/generated_plugins.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
list(APPEND FLUTTER_PLUGIN_LIST
66
dart_vlc
77
flutter_native_view
8+
window_manager
9+
)
10+
11+
list(APPEND FLUTTER_FFI_PLUGIN_LIST
812
)
913

1014
set(PLUGIN_BUNDLED_LIBRARIES)
@@ -15,3 +19,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
1519
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
1620
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
1721
endforeach(plugin)
22+
23+
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
24+
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
25+
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
26+
endforeach(ffi_plugin)

example/windows/runner/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
2222
return EXIT_FAILURE;
2323
}
2424
window.SetQuitOnClose(true);
25-
flutternativeview::CreateNativeViewContainer();
25+
flutternativeview::NativeViewContainer::GetInstance()->Create();
2626
MSG msg;
2727
while (GetMessage(&msg, nullptr, 0, 0)) {
2828
TranslateMessage(&msg);

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dart_vlc
22
description: Flutter media playback, broadcast, recording & chromecast library. Based on libvlc.
3-
version: 0.2.0
3+
version: 0.2.1
44
homepage: https://github.com/alexmercerind/dart_vlc
55
repository: https://github.com/alexmercerind/dart_vlc
66
documentation: https://github.com/alexmercerind/dart_vlc/blob/master/README.md
@@ -16,7 +16,7 @@ dependencies:
1616
path: ">=1.8.0 <2.0.0"
1717
path_provider: ">=2.0.2 <3.0.0"
1818
audio_video_progress_bar: ">=0.9.0 <1.0.0"
19-
flutter_native_view: ^0.0.1+1
19+
flutter_native_view: ^0.0.2
2020
window_manager: ^0.2.3
2121

2222
# REMOVE THIS BEFORE PUBLISHING ON pub.dev.

0 commit comments

Comments
 (0)