Skip to content

Support voice messages on linux#103

Open
RetrowaveHyena wants to merge 1 commit into
Nutcake:mainfrom
RetrowaveHyena:main
Open

Support voice messages on linux#103
RetrowaveHyena wants to merge 1 commit into
Nutcake:mainfrom
RetrowaveHyena:main

Conversation

@RetrowaveHyena
Copy link
Copy Markdown

Add Linux audio message support via just_audio_media_kit

This PR adds audio message playback support for Linux desktop builds.

Changes

  • Added just_audio_media_kit and media_kit_libs_linux dependencies to pubspec.yaml
  • Added JustAudioMediaKit.ensureInitialized(linux: true) to main.dart

Why

just_audio has no built-in Linux backend. just_audio_media_kit provides one via MPV, enabling audio messages to play on Linux without any changes to the existing audio player widget code.

Platform impact

None — all other platforms (Android, iOS, etc.) are unaffected as the non-Linux flags default to false.

Tested on

  • CachyOS x86_64 (Kernel version Linux 6.19.11-1-cachyos)

@RetrowaveHyena
Copy link
Copy Markdown
Author

This only fixes getting voice messages/listening to them. Working on the sending of voice messages, as well as patching this for Windows desktop as well.

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.

1 participant