@whereby.com/core 0.24.2 → 0.25.0
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/dist/index.cjs +11 -1
- package/dist/index.d.cts +96 -32
- package/dist/index.d.mts +96 -32
- package/dist/index.d.ts +96 -32
- package/dist/index.mjs +11 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -45,7 +45,7 @@ const createReactor = (selectors, callback) => {
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
const coreVersion = "0.
|
|
48
|
+
const coreVersion = "0.25.0";
|
|
49
49
|
|
|
50
50
|
const initialState$f = {
|
|
51
51
|
isNodeSdk: false,
|
|
@@ -2026,6 +2026,7 @@ const doConnectRtc = createAppThunk(() => (dispatch, getState) => {
|
|
|
2026
2026
|
serverSocket: socket,
|
|
2027
2027
|
webrtcProvider,
|
|
2028
2028
|
features: {
|
|
2029
|
+
isNodeSdk,
|
|
2029
2030
|
lowDataModeEnabled: false,
|
|
2030
2031
|
sfuServerOverrideHost: undefined,
|
|
2031
2032
|
turnServerOverrideHost: undefined,
|
|
@@ -2064,11 +2065,13 @@ const doHandleAcceptStreams = createAppThunk((payload) => (dispatch, getState) =
|
|
|
2064
2065
|
if (state === "to_accept" ||
|
|
2065
2066
|
(state === "new_accept" && shouldAcceptNewClients) ||
|
|
2066
2067
|
(state === "old_accept" && !shouldAcceptNewClients)) {
|
|
2068
|
+
const enforceTurnProtocol = participant.isDialIn ? "onlytls" : undefined;
|
|
2067
2069
|
rtcManager.acceptNewStream({
|
|
2068
2070
|
streamId: streamId === "0" ? clientId : streamId,
|
|
2069
2071
|
clientId,
|
|
2070
2072
|
shouldAddLocalVideo: streamId === "0",
|
|
2071
2073
|
activeBreakout,
|
|
2074
|
+
enforceTurnProtocol,
|
|
2072
2075
|
});
|
|
2073
2076
|
}
|
|
2074
2077
|
else if (state === "new_accept" || state === "old_accept") ;
|
|
@@ -2140,6 +2143,13 @@ startAppListening({
|
|
|
2140
2143
|
rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.addNewStream(stream.id, stream, false, true);
|
|
2141
2144
|
},
|
|
2142
2145
|
});
|
|
2146
|
+
startAppListening({
|
|
2147
|
+
actionCreator: doAppStop,
|
|
2148
|
+
effect: (_, { getState }) => {
|
|
2149
|
+
const rtcManager = selectRtcManager(getState());
|
|
2150
|
+
rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.rtcStatsDisconnect();
|
|
2151
|
+
},
|
|
2152
|
+
});
|
|
2143
2153
|
startAppListening({
|
|
2144
2154
|
actionCreator: stopScreenshare,
|
|
2145
2155
|
effect: ({ payload }, { getState }) => {
|