node-karin 1.15.0 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.mjs +17 -20
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.15.1](https://github.com/KarinJS/Karin/compare/core-v1.15.0...core-v1.15.1) (2026-03-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Bug Fixes
|
|
7
|
+
|
|
8
|
+
* ffmpeg initialization priority order ([#629](https://github.com/KarinJS/Karin/issues/629)) ([5510219](https://github.com/KarinJS/Karin/commit/5510219de2dc199d1dfe71dd024524b9cf45ff87))
|
|
9
|
+
|
|
3
10
|
## [1.15.0](https://github.com/KarinJS/Karin/compare/core-v1.14.4...core-v1.15.0) (2026-03-24)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.mjs
CHANGED
|
@@ -7543,26 +7543,23 @@ var init_ffmpeg = __esm({
|
|
|
7543
7543
|
ffprobePath2 = "ffprobe";
|
|
7544
7544
|
ffplayPath2 = "ffplay";
|
|
7545
7545
|
setTimeout(async () => {
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
ffprobePath2 = ffprobe2 ? `"${ffprobe2}"` : ffprobePath2;
|
|
7564
|
-
ffplayPath2 = ffplay2 ? `"${ffplay2}"` : ffplayPath2;
|
|
7565
|
-
}
|
|
7546
|
+
try {
|
|
7547
|
+
const name = "@karinjs/plugin-ffmpeg";
|
|
7548
|
+
const plugin = await import(name);
|
|
7549
|
+
const ffmpeg2 = plugin.default.ffmpegPath;
|
|
7550
|
+
const ffprobe2 = plugin.default.ffprobePath;
|
|
7551
|
+
const ffplay2 = plugin.default.ffplayPath;
|
|
7552
|
+
ffmpegPath2 = ffmpeg2 ? `"${ffmpeg2}"` : ffmpegPath2;
|
|
7553
|
+
ffprobePath2 = ffprobe2 ? `"${ffprobe2}"` : ffprobePath2;
|
|
7554
|
+
ffplayPath2 = ffplay2 ? `"${ffplay2}"` : ffplayPath2;
|
|
7555
|
+
} catch {
|
|
7556
|
+
const cfg = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
7557
|
+
const ffmpeg2 = cfg.ffmpegPath();
|
|
7558
|
+
const ffprobe2 = cfg.ffprobePath();
|
|
7559
|
+
const ffplay2 = cfg.ffplayPath();
|
|
7560
|
+
ffmpegPath2 = ffmpeg2 ? `"${ffmpeg2}"` : ffmpegPath2;
|
|
7561
|
+
ffprobePath2 = ffprobe2 ? `"${ffprobe2}"` : ffprobePath2;
|
|
7562
|
+
ffplayPath2 = ffplay2 ? `"${ffplay2}"` : ffplayPath2;
|
|
7566
7563
|
}
|
|
7567
7564
|
}, 1e3);
|
|
7568
7565
|
ffmpeg = async (cmd, options) => {
|