Skip to content

Commit c08c8cc

Browse files
committed
refactor: migrate camera streaming to go2rtc
1 parent bdcf6ee commit c08c8cc

42 files changed

Lines changed: 2714 additions & 2235 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ coverage/
4747
*.tmp
4848
*.temp
4949
.cache/
50+
data/runtime/

package-lock.json

Lines changed: 1 addition & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
"bin": "dist/index.js",
77
"type": "commonjs",
88
"scripts": {
9+
"postinstall": "node scripts/download-go2rtc.cjs",
910
"dev": "npm run build && concurrently --names \"BACKEND,WEBUI,SERVER\" \"npm run build:backend:watch\" \"npm run build:webui:watch\" \"npm run start:dev\"",
1011
"start": "node dist/index.js",
1112
"start:dev": "nodemon --watch src --ext ts --exec \"node dist/index.js\"",
1213
"build": "npm run build:backend && npm run build:webui",
1314
"build:watch": "concurrently \"npm run build:backend:watch\" \"npm run build:webui:watch\"",
1415
"build:backend": "tsx scripts/build-backend.ts",
1516
"build:backend:watch": "tsx scripts/build-backend.ts --watch",
16-
"build:webui": "tsc --project src/webui/static/tsconfig.json && npm run build:webui:copy",
17+
"build:webui": "rimraf dist/webui/static && tsc --project src/webui/static/tsconfig.json && npm run build:webui:copy",
1718
"build:webui:watch": "tsc --project src/webui/static/tsconfig.json --watch",
1819
"build:webui:copy": "node scripts/copy-webui-assets.js",
1920
"build:linux": "npm run build && pkg . --targets node20-linux-x64 --output dist/flashforge-webui-linux-x64",
@@ -32,6 +33,7 @@
3233
"build:mac-arm:wrapped": "npm run build:wrapper -- --platform mac-arm",
3334
"build:all:wrapped": "npm run build:win:wrapped && npm run build:linux:wrapped && npm run build:linux-arm:wrapped && npm run build:linux-armv7:wrapped && npm run build:mac:wrapped && npm run build:mac-arm:wrapped",
3435
"clean": "rimraf dist",
36+
"download:go2rtc": "node scripts/download-go2rtc.cjs",
3537
"lint": "biome lint .",
3638
"lint:fix": "biome lint --write .",
3739
"format": "biome format .",
@@ -54,15 +56,13 @@
5456
"author": "Parallel-7",
5557
"license": "MIT",
5658
"dependencies": {
57-
"@cycjimmy/jsmpeg-player": "^6.1.2",
5859
"@ghosttypes/ff-api": "1.0.0-20251122000715",
5960
"@parallel-7/slicer-meta": "1.1.0-20251121155836",
6061
"axios": "^1.8.4",
6162
"express": "^5.1.0",
6263
"form-data": "^4.0.0",
6364
"gridstack": "^12.3.3",
6465
"lucide": "^0.552.0",
65-
"node-rtsp-stream": "^0.0.9",
6666
"ws": "^8.18.3",
6767
"zod": "^4.0.5"
6868
},
@@ -95,7 +95,8 @@
9595
"node_modules/zod/**/*.cjs"
9696
],
9797
"assets": [
98-
"dist/webui/**/*"
98+
"dist/webui/**/*",
99+
"resources/bin/**/*"
99100
],
100101
"outputPath": "dist"
101102
}

resources/bin/darwin-arm64/go2rtc

17.1 MB
Binary file not shown.

resources/bin/darwin-x64/go2rtc

18.2 MB
Binary file not shown.

resources/bin/linux-arm/go2rtc

4.25 MB
Binary file not shown.

resources/bin/linux-arm64/go2rtc

4.31 MB
Binary file not shown.

resources/bin/linux-x64/go2rtc

5.31 MB
Binary file not shown.
16.8 MB
Binary file not shown.

resources/bin/win32-x64/go2rtc.exe

18.2 MB
Binary file not shown.

0 commit comments

Comments
 (0)