Migrate playback to native media-kit - #2017
Open
YeungKC wants to merge 10 commits into
Open
Conversation
YeungKC
force-pushed
the
feature/media-kit-playback
branch
from
August 5, 2026 05:11
1c73fa1 to
6365f09
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates media playback to native media-kit while retaining existing recording and compression tooling.
Changes:
- Replaces video, audio-message, and voice-preview playback implementations.
- Adds native media-kit dependencies and plugin registration.
- Bundles and documents Linux libmpv requirements.
Reviewed changes
Copilot reviewed 20 out of 21 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
windows/flutter/generated_plugins.cmake |
Registers Windows media-kit plugins. |
windows/flutter/generated_plugin_registrant.cc |
Initializes Windows plugins. |
README.md |
Documents Linux playback dependencies. |
pubspec.yaml |
Replaces video_player with media-kit. |
pubspec.lock |
Locks new dependency graph. |
macos/Flutter/GeneratedPluginRegistrant.swift |
Updates macOS plugin registration. |
linux/flutter/generated_plugins.cmake |
Registers Linux media-kit plugins. |
linux/flutter/generated_plugin_registrant.cc |
Initializes Linux plugins. |
lib/widgets/message/item/video/video_preview_page.dart |
Migrates full-screen video playback. |
lib/widgets/message/item/video/video_message.dart |
Uses the native preview on all platforms. |
lib/widgets/message/item/video/progress_bar.dart |
Adapts progress rendering to media-kit state. |
lib/widgets/message/item/video/media_kit_video_player.dart |
Adds the media-kit video adapter. |
lib/utils/audio_message_player/ogg_opus_audio_player.dart |
Migrates audio-message playback. |
lib/ui/home/chat/voice_recorder_state.dart |
Migrates recorded-voice previews. |
lib/ui/home/chat/voice_recorder_bottom_bar.dart |
Imports media-kit for voice preview state. |
lib/ui/home/chat/files_preview.dart |
Migrates outgoing video previews. |
lib/main.dart |
Initializes media-kit at startup. |
AppImageBuilder.yml |
Bundles x64 libmpv. |
AppImageBuilder-arm64.yml |
Bundles arm64 libmpv. |
.github/workflows/manual-build.yml |
Installs libmpv for manual builds. |
.github/workflows/dart.yml |
Installs libmpv in CI. |
馃挕 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| player.stream.width.listen(_notify), | ||
| player.stream.height.listen(_notify), | ||
| ]); | ||
| unawaited(_open(path, autoPlay: autoPlay, looping: looping, muted: muted)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
Notes