@torrent-tv/proxy 2.100.12 → 2.100.13
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/package.json
CHANGED
|
@@ -316,7 +316,7 @@ export function createWebRtcManager({ sendSignal, onDataChannel, onLog, udpPort,
|
|
|
316
316
|
// Forward our SDP answer to the browser through the tunnel.
|
|
317
317
|
pc.onLocalDescription((sdp, type) => {
|
|
318
318
|
log(`[webrtc] Session ${sessionId.slice(0, 8)}: sending ${type}`);
|
|
319
|
-
signalBrowser({ type, sdp, ...(connectionId === null ? { separateControl:
|
|
319
|
+
signalBrowser({ type, sdp, ...(connectionId === null ? { separateControl: 2 } : {}) });
|
|
320
320
|
});
|
|
321
321
|
|
|
322
322
|
pc.onStateChange((state) => {
|
|
@@ -382,8 +382,6 @@ export function createWebRtcManager({ sendSignal, onDataChannel, onLog, udpPort,
|
|
|
382
382
|
}
|
|
383
383
|
const connectionId = signal.connectionId ?? null;
|
|
384
384
|
if (connectionId !== null && (typeof connectionId !== "string" || !/^[a-zA-Z0-9-]{1,64}$/.test(connectionId))) return;
|
|
385
|
-
// A second association is subordinate to an existing media connection.
|
|
386
|
-
if (connectionId !== null && !peers.has(sessionId)) return;
|
|
387
385
|
const peerId = connectionId === null ? sessionId : `${sessionId}/${connectionId}`;
|
|
388
386
|
|
|
389
387
|
if (signal.type === "offer") {
|