-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(ui): replace package:dart_vlc with package:media_kit #1743
Conversation
package:dart_vlc
with package:media_kit
I tested the stream_chat_flutter/example app on Windows & GNU/Linux after changes, videos seem to play just fine. name: stream_chat_flutter_example
description: A new Flutter project.
publish_to: none
version: 1.0.0+1
environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.10.0"
dependencies:
collection: ^1.15.0
cupertino_icons: ^1.0.4
flutter:
sdk: flutter
responsive_builder: ^0.7.0
stream_chat_flutter:
path: ../../stream_chat_flutter
stream_chat_localizations:
path: ../../stream_chat_localizations
stream_chat_persistence:
path: ../../stream_chat_persistence
dependency_overrides:
stream_chat_flutter:
path: ../../stream_chat_flutter
stream_chat_localizations:
path: ../../stream_chat_localizations
stream_chat_persistence:
path: ../../stream_chat_persistence
flutter:
uses-material-design: true
assets:
- assets/background_doodle.png |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really think we should first deprecate FullScreenMedia*
classes before removing them. They are part of our public interface, and if we remove them like that. will probably break users' apps.
packages/stream_chat_flutter/lib/src/fullscreen_media/full_screen_media_builder.dart
Show resolved
Hide resolved
I hope the changes are according to your expectation. Thanks! |
Hi @alexmercerind, we would like to merge this before the next release. I updated the branch with the latest develop, and it caused the tests to fail. Could you take a look at that? |
Hey @alexmercerind ! We have switched our main branch to Thank you for bearing with us for so long. I am really sorry for your inconvenience 🙏 |
@alexmercerind any updates on this? |
@jnelle we have planned it to be part of our |
bc464a7
to
43441ab
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1743 +/- ##
==========================================
+ Coverage 59.40% 60.04% +0.64%
==========================================
Files 310 306 -4
Lines 17834 17649 -185
==========================================
+ Hits 10594 10598 +4
+ Misses 7240 7051 -189 ☔ View full report in Codecov by Sentry. |
Following dependencies have been added/removed: - dart_vlc: ^0.4.0 + media_kit_libs_linux: ^1.1.3 + media_kit_libs_windows_video: ^1.0.2 + video_player_media_kit: ^1.0.2
Resolved upstream at media-kit/media-kit@6516ef1.
Hello! I created an issue that I believe could be resolved by this change: Otherwise, I believe this PR would serve as a fix as well in the dart_vlc repo: This is impacting my production app, so it is a relatively urgent issue. Is there another workaround recommended prior to one of these PR's merging? Also could I get an estimate of when either/both of these PR's will be merged and deployed? Thanks in advance! |
Submit a pull request
CLA
Description of the pull request
This PR replaces dart_vlc with media_kit (used on Microsoft Windows & GNU/Linux in stream_chat_flutter). media_kit has major benefits over dart_vlc e.g. better stability, improved performance, less bundle size etc.
To simplify & reduce the total size of implementation, video_player_media_kit is used. It automatically adds support for unsupported platforms to video_player. This means existing video_player-based implementation is automatically shared between all platforms without any additional implementation, wrapper or boilerplate.
video_player_media_kit is part of media_kit project itself, where it receives similar support & maintenance.
It also happens to be sponsored by GetStream.IO!
References: