Skip to content

Commit 1124736

Browse files
authored
Merge pull request #716 from apoint123/feat/ffmpeg-player
✨ feat: 添加 ffmpeg 解码器以支持更多音频格式
2 parents dbd74e5 + bb57a26 commit 1124736

19 files changed

Lines changed: 7374 additions & 386 deletions

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
*.sh text eol=lf
1+
*.sh text eol=lf
2+
3+
src/assets/ffmpeg/decode-audio.js linguist-generated

electron/main/ipc/ipc-system.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ const initSystemIpc = (): void => {
3333
app.quit();
3434
});
3535

36+
// 重启应用
37+
ipcMain.on("restart-app", () => {
38+
ipcLog.info("🔄 Restarting application...");
39+
app.relaunch();
40+
app.exit(0);
41+
});
42+
3643
// 获取系统全部字体
3744
ipcMain.handle("get-all-fonts", async () => {
3845
try {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"@fastify/multipart": "^9.3.0",
9292
"@fastify/static": "^8.3.0",
9393
"@types/better-sqlite3": "^7.6.13",
94+
"@types/emscripten": "^1.41.5",
9495
"@types/file-saver": "^2.0.7",
9596
"@types/js-cookie": "^3.0.6",
9697
"@types/md5": "^2.3.6",
@@ -148,4 +149,4 @@
148149
"register-scheme"
149150
]
150151
}
151-
}
152+
}

pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/wasm/decode-audio.wasm

2.46 MB
Binary file not shown.

0 commit comments

Comments
 (0)