forked from Foxyz/sync_replay_project
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>
49 lines
965 B
YAML
49 lines
965 B
YAML
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:
|