@camera.ui/go2rtc 0.0.62 → 0.0.64
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/README.md +100 -1
- package/dist/install.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1 +1,100 @@
|
|
|
1
|
-
# @camera.ui/go2rtc
|
|
1
|
+
# @camera.ui/go2rtc
|
|
2
|
+
|
|
3
|
+
Go2RTC binary downloader for camera.ui - downloads the camera.ui-optimized version with enhanced streaming capabilities.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @camera.ui/go2rtc
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The Go2RTC binary will be automatically downloaded during installation.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { go2rtcPath, isGo2rtcAvailable } from '@camera.ui/go2rtc';
|
|
17
|
+
|
|
18
|
+
// Get Go2RTC binary path
|
|
19
|
+
const go2rtc = go2rtcPath();
|
|
20
|
+
console.log('Go2RTC path:', go2rtc);
|
|
21
|
+
|
|
22
|
+
// Check if Go2RTC is available
|
|
23
|
+
if (isGo2rtcAvailable()) {
|
|
24
|
+
console.log('Go2RTC is ready to use');
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Platform Support
|
|
29
|
+
|
|
30
|
+
**Supported Platforms:**
|
|
31
|
+
- **Linux** - x64, ARM64, ARMv6, ARMv7, x86, MIPSEL
|
|
32
|
+
- **Windows** - x64, ARM64, x86
|
|
33
|
+
- **macOS** - Intel (x64), Apple Silicon (ARM64)
|
|
34
|
+
- **FreeBSD** - x64, ARM64
|
|
35
|
+
|
|
36
|
+
## Examples
|
|
37
|
+
|
|
38
|
+
### Basic Usage
|
|
39
|
+
```typescript
|
|
40
|
+
import { go2rtcPath } from '@camera.ui/go2rtc';
|
|
41
|
+
import { spawn } from 'child_process';
|
|
42
|
+
|
|
43
|
+
const go2rtc = spawn(go2rtcPath(), ['-config', 'go2rtc.yaml']);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Check Availability
|
|
47
|
+
```typescript
|
|
48
|
+
import { isGo2rtcAvailable, go2rtcPath } from '@camera.ui/go2rtc';
|
|
49
|
+
|
|
50
|
+
if (!isGo2rtcAvailable()) {
|
|
51
|
+
console.error('Go2RTC not found');
|
|
52
|
+
process.exit(1);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
console.log('Using Go2RTC at:', go2rtcPath());
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Cross-Platform Installation
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Force specific platform/architecture
|
|
62
|
+
npm_config_os=linux npm_config_cpu=arm64 npm install
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Examples:**
|
|
66
|
+
```bash
|
|
67
|
+
npm_config_os=linux npm_config_cpu=x64 # Linux x64
|
|
68
|
+
npm_config_os=linux npm_config_cpu=arm64 # Linux ARM64
|
|
69
|
+
npm_config_os=win32 npm_config_cpu=x64 # Windows x64
|
|
70
|
+
npm_config_os=darwin npm_config_cpu=arm64 # Apple Silicon
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Installation Process
|
|
74
|
+
|
|
75
|
+
The installer automatically:
|
|
76
|
+
1. Detects your platform and architecture
|
|
77
|
+
2. Downloads the appropriate binary from camera.ui Go2RTC releases
|
|
78
|
+
3. Extracts and makes executable (Unix systems)
|
|
79
|
+
4. Cleans up temporary files
|
|
80
|
+
|
|
81
|
+
### Installation Log
|
|
82
|
+
```
|
|
83
|
+
Detected platform: linux / arm64
|
|
84
|
+
Downloading Go2Rtc v1.9.9-cui.18...
|
|
85
|
+
Extracting binary...
|
|
86
|
+
Making executable...
|
|
87
|
+
Done!
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Contributing
|
|
91
|
+
|
|
92
|
+
Contributions are welcome! Please read our contributing guidelines and submit pull requests to our repository.
|
|
93
|
+
|
|
94
|
+
## License
|
|
95
|
+
|
|
96
|
+
MIT
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
*Part of the camera.ui ecosystem - A comprehensive camera management solution.*
|
package/dist/install.js
CHANGED
|
@@ -9,7 +9,7 @@ import { go2rtcPath } from './index.js';
|
|
|
9
9
|
import { getArchitecture, getPlatform } from './utils.js';
|
|
10
10
|
const __filename = fileURLToPath(import.meta.url);
|
|
11
11
|
const __dirname = dirname(__filename);
|
|
12
|
-
const GO2RTC_VERSION = 'v1.9.9-cui.
|
|
12
|
+
const GO2RTC_VERSION = 'v1.9.9-cui.20';
|
|
13
13
|
const binaries = {
|
|
14
14
|
darwin: {
|
|
15
15
|
x64: `go2rtc-darwin-x64-${GO2RTC_VERSION.replace('v', '')}.zip`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camera.ui/go2rtc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.64",
|
|
4
4
|
"description": "camera.ui go2rtc package",
|
|
5
5
|
"author": "seydx (https://github.com/seydx/camera.ui)",
|
|
6
6
|
"type": "module",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"unzipper": "^0.10.14"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@stylistic/eslint-plugin": "^4.
|
|
31
|
-
"@typescript-eslint/parser": "^8.
|
|
32
|
-
"eslint": "^9.
|
|
33
|
-
"globals": "^16.
|
|
30
|
+
"@stylistic/eslint-plugin": "^4.4.1",
|
|
31
|
+
"@typescript-eslint/parser": "^8.33.1",
|
|
32
|
+
"eslint": "^9.28.0",
|
|
33
|
+
"globals": "^16.2.0",
|
|
34
34
|
"prettier": "^3.5.3",
|
|
35
|
-
"typescript-eslint": "^8.
|
|
35
|
+
"typescript-eslint": "^8.33.1",
|
|
36
36
|
"@types/fs-extra": "^11.0.4",
|
|
37
|
-
"@types/node": "^22.15.
|
|
37
|
+
"@types/node": "^22.15.29",
|
|
38
38
|
"@types/unzipper": "^0.10.11",
|
|
39
39
|
"concurrently": "^9.1.2",
|
|
40
40
|
"rimraf": "^6.0.1",
|