Skip to content

feat(video): add cross-platform video player support#2456

Open
RafayAhmad7548 wants to merge 1 commit into
krille-chan:mainfrom
RafayAhmad7548:video-support-desktop
Open

feat(video): add cross-platform video player support#2456
RafayAhmad7548 wants to merge 1 commit into
krille-chan:mainfrom
RafayAhmad7548:video-support-desktop

Conversation

@RafayAhmad7548

@RafayAhmad7548 RafayAhmad7548 commented Dec 29, 2025

Copy link
Copy Markdown

Fixes issuse #1333

Thank you so much for your contribution to FluffyChat ❤️❤️❤️

Pull Request has been tested on:

  • Android
  • iOS
  • Browser (Chromium based)
  • Browser (Firefox based)
  • Browser (WebKit based)
  • Desktop Linux
  • Desktop Windows
  • Desktop macOS

Copilot AI review requested due to automatic review settings December 29, 2025 11:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds cross-platform video player support to FluffyChat by integrating the media_kit library, enabling video playback on Windows and Linux desktop platforms where it was previously unsupported.

Key changes:

  • Added media_kit dependencies for Linux and Windows desktop video playback
  • Removed platform-specific video player checks, enabling video functionality across all platforms
  • Initialized media_kit video player in the main entry point for desktop platforms

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pubspec.yaml Added media_kit dependencies for cross-platform video support
pubspec.lock Added transitive and direct dependencies for media_kit ecosystem
windows/flutter/generated_plugins.cmake Registered media_kit plugins for Windows build
windows/flutter/generated_plugin_registrant.cc Added Windows plugin registration for media_kit
macos/Flutter/GeneratedPluginRegistrant.swift Added macOS plugin registration for media_kit
linux/flutter/generated_plugins.cmake Registered media_kit plugins for Linux build
linux/flutter/generated_plugin_registrant.cc Added Linux plugin registration for media_kit
lib/utils/platform_infos.dart Removed supportsVideoPlayer flag that limited video to mobile/web
lib/pages/image_viewer/video_player.dart Removed conditional platform checks for video player initialization
lib/pages/image_viewer/image_viewer.dart Removed conditional inclusion of video events based on platform
lib/pages/chat/events/video_player.dart Removed platform-specific fallback behavior for video playback
lib/main.dart Added media_kit initialization for Linux and Windows at app startup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/main.dart Outdated
Comment thread lib/main.dart Outdated
Comment thread lib/pages/chat/events/video_player.dart
Comment thread lib/main.dart Outdated
Comment thread pubspec.yaml
latlong2: ^0.9.1
linkify: ^5.0.0
matrix: ^4.1.0
media_kit_libs_linux: ^1.2.1

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has this been tested inside of a flatpak and a snap as well? Otherwise we cannot merge

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't done flatpak/snap testing.
I will test it and let you know.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to test for flatpak and it works with some additions to the flatpak manifset.
wasn't able to test snap yet, will let you know when i do

@krille-chan krille-chan added the stale The item is going to be closed soon because of inactivity label Feb 1, 2026
@krille-chan krille-chan removed the stale The item is going to be closed soon because of inactivity label Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants