Vendor media_kit_video 2.0.1 with the X11/EGL fix (hardware rendering on X11 with Flutter >= 3.38)
Flutter >= 3.38 keeps its EGL contexts on the raster thread, so media_kit's video output found none on the platform thread and fell back to software rendering (no shaders, ~5 fps) on X11. The patched output opens Flutter's EGL display itself, steps GDK's GLX context aside on X11 and releases its own context. Patch from a friend's agent, kept in third_party/media_kit_video/starsync/. Wayland/NVIDIA still renders on the GPU (checked); the X11 path was verified on the friend's machine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
25b19f2d6a
commit
a87ee98faa
131 files changed
+15532
-6
No files matched your search
+48
@@ -0,0 +1,48 @@
|
||||
name: media_kit_video
|
||||
description: Native implementation for video playback in package:media_kit.
|
||||
homepage: https://github.com/media-kit/media-kit
|
||||
repository: https://github.com/media-kit/media-kit
|
||||
version: 2.0.1
|
||||
topics:
|
||||
- video
|
||||
- video-player
|
||||
- audio
|
||||
- audio-player
|
||||
- cross-platform
|
||||
|
||||
environment:
|
||||
sdk: ">=2.17.0 <4.0.0"
|
||||
flutter: ">=3.7.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
media_kit: ^1.2.3
|
||||
|
||||
synchronized: ^3.1.0
|
||||
wakelock_plus: ^1.1.6
|
||||
universal_platform: ^1.0.0+1
|
||||
plugin_platform_interface: ^2.0.2
|
||||
web: ^1.1.0
|
||||
|
||||
dev_dependencies:
|
||||
flutter_lints: ^5.0.0
|
||||
|
||||
|
||||
|
||||
flutter:
|
||||
plugin:
|
||||
platforms:
|
||||
windows:
|
||||
pluginClass: MediaKitVideoPluginCApi
|
||||
linux:
|
||||
pluginClass: MediaKitVideoPlugin
|
||||
macos:
|
||||
pluginClass: MediaKitVideoPlugin
|
||||
ios:
|
||||
pluginClass: MediaKitVideoPlugin
|
||||
android:
|
||||
package: com.alexmercerind.media_kit_video
|
||||
pluginClass: MediaKitVideoPlugin
|
||||
web:
|
||||
Reference in new issue
Block a user