A simple audio player plugin for flutter.
platform | status | audio renderer |
---|---|---|
Windows | ✅ | SDL2 |
Linux | ✅ | SDL2 |
macOS | ✅ | CoreAudio |
- audio/video demux by ffmpeg.
- flutter version: 3.0
- if build for linux, we need these libs:
- install ffmpeg dev libs:
sudo apt install libavcodec-dev libavformat-dev libavdevice-dev
- install sdl2:
sudo apt-get install libsdl2-dev
- install ffmpeg dev libs:
-
flutter pub get
. -
if build for macOS/iOS
- go to
example/macos
orexample/ios
runpod install
to installffmpeg-kit
- go to
ffplayer
, run./apple-flutter-install.sh macos
or./apple-flutter-install.sh ios
- go to
-
flutter run -d your_device
-
run windows app.
flutter run -d windows
-
open
example/build/windows/lychee_player_example.sln
by visual studio 2019 -
mark
lychee_player_example
as run program. (which ALL_BUILD is default selected, but we can not run it). -
click run with local debug. then waiting for crash.
-
add remote gdb debug configuration. target remote args set
127.0.0.1:1234
-
run the application which flutter build with debug.
gdbserver :1234 build/linux/debug/bundle/lychee_player_example