@gjsify/webrtc-native 0.4.43 → 0.4.44
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 +20 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @gjsify/webrtc-native
|
|
2
|
+
|
|
3
|
+
Native Vala/GObject prebuild that makes GStreamer's `webrtcbin` signals safe to handle from GJS. Provides three main-thread signal bridges — `WebrtcbinBridge`, `DataChannelBridge`, and `PromiseBridge` — that capture callbacks fired on GStreamer's streaming thread and re-emit them via `GLib.Idle.add()` on the GLib main context. Consumed internally by `@gjsify/webrtc`; not intended for direct use.
|
|
4
|
+
|
|
5
|
+
Part of the [gjsify](https://github.com/gjsify/gjsify) project — Node.js and Web APIs for GJS (GNOME JavaScript).
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
This is an internal native bridge package — installed automatically as a dependency of `@gjsify/webrtc`, not separately.
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
// Use @gjsify/webrtc instead:
|
|
13
|
+
import { RTCPeerConnection } from '@gjsify/webrtc';
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The `@gjsify/webrtc-native` prebuild (`.so` + `.typelib`) is loaded automatically by `gjsify run` via the `GI_TYPELIB_PATH`/`LD_LIBRARY_PATH` detection in the CLI.
|
|
17
|
+
|
|
18
|
+
## License
|
|
19
|
+
|
|
20
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/webrtc-native",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.44",
|
|
4
4
|
"description": "Vala-based main-thread signal bridge for @gjsify/webrtc. Marshals webrtcbin signals and GstPromise callbacks from GStreamer's streaming thread onto the GLib main context so GJS can safely handle them.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/esm/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@girs/gstwebrtc-1.0": "1.0.0-4.0.4"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@gjsify/cli": "^0.4.
|
|
58
|
+
"@gjsify/cli": "^0.4.44",
|
|
59
59
|
"@types/node": "^25.9.1",
|
|
60
60
|
"typescript": "^6.0.3"
|
|
61
61
|
},
|