@decentnetwork/lan 0.1.176 → 0.1.177
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.
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/ui/desktop/app.js
CHANGED
|
@@ -1799,7 +1799,8 @@ function CallOverlay({ T, ctl, peers }) {
|
|
|
1799
1799
|
if (!call) return null;
|
|
1800
1800
|
const peer = (peers || []).find((p) => p.id === call.peerId) || { id: call.peerId };
|
|
1801
1801
|
const name = peer.alias || peer.name || shortKey(call.peerId, 10, 6);
|
|
1802
|
-
const
|
|
1802
|
+
const streamHasVideo = (s) => !!(s && s.getVideoTracks && s.getVideoTracks().length > 0);
|
|
1803
|
+
const video = call.video || ctl.sharing || streamHasVideo(ctl.remoteStream) || streamHasVideo(ctl.localStream);
|
|
1803
1804
|
const mm = String(Math.floor(secs / 60)).padStart(2, "0");
|
|
1804
1805
|
const ss = String(secs % 60).padStart(2, "0");
|
|
1805
1806
|
const stateLabel = connected ? mm + ":" + ss : call.state === "ringing" ? T && T.ringing || "ringing\u2026" : call.state === "connecting" ? T && T.connecting || "connecting\u2026" : call.state;
|
|
@@ -535,8 +535,14 @@ var PeerWebRTC = (() => {
|
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
537
|
pc.ontrack = (ev) => {
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
__privateMethod(this, _CallEngine_instances, ensureRemoteStream_fn).call(this, session, ev.track);
|
|
539
|
+
const snapshot = new MediaStream(session.remoteStream.getTracks());
|
|
540
|
+
this.emit("remoteStream", session.callId, snapshot);
|
|
541
|
+
ev.track.addEventListener("unmute", () => {
|
|
542
|
+
if (!session.remoteStream)
|
|
543
|
+
return;
|
|
544
|
+
this.emit("remoteStream", session.callId, new MediaStream(session.remoteStream.getTracks()));
|
|
545
|
+
});
|
|
540
546
|
};
|
|
541
547
|
pc.oniceconnectionstatechange = () => {
|
|
542
548
|
switch (pc.iceConnectionState) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decentnetwork/lan",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.177",
|
|
4
4
|
"description": "Private virtual LAN for self-hosted services and AI agents, built on Elastos Carrier. NAT-traversal, name service, ACL, all over a peer-to-peer mesh — no public IP required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@decentnetwork/dora": "^0.1.13",
|
|
82
82
|
"@decentnetwork/peer": "^0.1.91",
|
|
83
|
-
"@decentnetwork/peer-webrtc": "^0.2.
|
|
83
|
+
"@decentnetwork/peer-webrtc": "^0.2.9",
|
|
84
84
|
"ink": "^5.2.1",
|
|
85
85
|
"js-yaml": "^4.1.0",
|
|
86
86
|
"node-forge": "^1.4.0",
|