rip out media_kit, use better_player and audioplayers
This also let us rip out cocoapods stuff. Needs testing on Windows, MacOS, and ideally, iOS.
This commit is contained in:
parent
161d39322c
commit
37a2c150f3
1 changed files with 375 additions and 604 deletions
|
|
@ -7,12 +7,14 @@
|
|||
stdenv.cc
|
||||
go
|
||||
git
|
||||
ffmpeg-headless
|
||||
|
||||
libGL
|
||||
(flutter.override {
|
||||
# audioplayers plays audio through GStreamer
|
||||
extraPkgConfigPackages = [
|
||||
mpv-unwrapped
|
||||
libass
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
];
|
||||
})
|
||||
]
|
||||
|
|
@ -25,6 +27,27 @@
|
|||
];
|
||||
|
||||
env = lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||
LD_LIBRARY_PATH = "./build/native_assets/linux:${lib.makeLibraryPath [ pkgs.zlib ]}";
|
||||
# better_player loads libmpv at runtime to play videos
|
||||
LD_LIBRARY_PATH = "./build/native_assets/linux:${
|
||||
lib.makeLibraryPath [
|
||||
pkgs.zlib
|
||||
pkgs.mpv-unwrapped
|
||||
]
|
||||
}";
|
||||
# audioplayers links GStreamer by name only, without its library directory
|
||||
LIBRARY_PATH = lib.makeLibraryPath [
|
||||
pkgs.gst_all_1.gstreamer
|
||||
pkgs.gst_all_1.gst-plugins-base
|
||||
pkgs.glib
|
||||
];
|
||||
GST_PLUGIN_SYSTEM_PATH_1_0 = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" (
|
||||
with pkgs.gst_all_1;
|
||||
[
|
||||
gstreamer
|
||||
gst-plugins-base
|
||||
gst-plugins-good
|
||||
gst-libav
|
||||
]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue