@reactoo/watchtogether-sdk-js 2.7.17 → 2.7.18
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
package/src/modules/wt-room.js
CHANGED
|
@@ -866,6 +866,7 @@ class RoomSession {
|
|
|
866
866
|
id: handle.handleId,
|
|
867
867
|
userId: decodeJanusDisplay(handle.userId)?.userId,
|
|
868
868
|
role: decodeJanusDisplay(handle.userId)?.role,
|
|
869
|
+
fullUserId: handle.userId,
|
|
869
870
|
stream: null,
|
|
870
871
|
streamMap: structuredClone(handle.webrtcStuff?.streamMap),
|
|
871
872
|
tracksMap: structuredClone(handle.webrtcStuff?.tracksMap),
|
|
@@ -1029,13 +1030,15 @@ class RoomSession {
|
|
|
1029
1030
|
this.emit('removeLocalParticipant', {
|
|
1030
1031
|
id: handleId,
|
|
1031
1032
|
userId: decodeJanusDisplay(handle.userId)?.userId,
|
|
1032
|
-
role: decodeJanusDisplay(handle.userId)?.role
|
|
1033
|
+
role: decodeJanusDisplay(handle.userId)?.role,
|
|
1034
|
+
fullUserId: handle.userId}
|
|
1033
1035
|
);
|
|
1034
1036
|
} else {
|
|
1035
1037
|
this.emit(this._getRemoveParticipantEventName(handleId), {
|
|
1036
1038
|
id: handleId,
|
|
1037
1039
|
userId: decodeJanusDisplay(handle.userId)?.userId,
|
|
1038
|
-
role: decodeJanusDisplay(handle.userId)?.role
|
|
1040
|
+
role: decodeJanusDisplay(handle.userId)?.role,
|
|
1041
|
+
fullUserId: handle.userId}
|
|
1039
1042
|
);
|
|
1040
1043
|
}
|
|
1041
1044
|
|
|
@@ -1926,6 +1929,7 @@ class RoomSession {
|
|
|
1926
1929
|
id: handle.handleId,
|
|
1927
1930
|
userId: decodeJanusDisplay(handle.userId)?.userId,
|
|
1928
1931
|
role: decodeJanusDisplay(handle.userId)?.role,
|
|
1932
|
+
fullUserId: handle.userId,
|
|
1929
1933
|
stream: config.stream,
|
|
1930
1934
|
streamMap: structuredClone(config.streamMap),
|
|
1931
1935
|
tracksMap: structuredClone(config.tracksMap),
|
|
@@ -1952,6 +1956,7 @@ class RoomSession {
|
|
|
1952
1956
|
id: handle.handleId,
|
|
1953
1957
|
userId: decodeJanusDisplay(handle.userId)?.userId,
|
|
1954
1958
|
role: decodeJanusDisplay(handle.userId)?.role,
|
|
1959
|
+
fullUserId: handle.userId,
|
|
1955
1960
|
stream: config.stream,
|
|
1956
1961
|
streamMap: structuredClone(config.streamMap),
|
|
1957
1962
|
tracksMap: structuredClone(config.tracksMap),
|
|
@@ -2021,6 +2026,7 @@ class RoomSession {
|
|
|
2021
2026
|
constructId: this.constructId,
|
|
2022
2027
|
userId: decodeJanusDisplay(handle.userId)?.userId,
|
|
2023
2028
|
role: decodeJanusDisplay(handle.userId)?.role,
|
|
2029
|
+
fullUserId: handle.userId,
|
|
2024
2030
|
stream: config.stream,
|
|
2025
2031
|
streamMap: structuredClone(config.streamMap),
|
|
2026
2032
|
tracksMap: structuredClone(config.tracksMap),
|
|
@@ -2049,6 +2055,7 @@ class RoomSession {
|
|
|
2049
2055
|
id: handle.handleId,
|
|
2050
2056
|
userId: decodeJanusDisplay(handle.userId)?.userId,
|
|
2051
2057
|
role: decodeJanusDisplay(handle.userId)?.role,
|
|
2058
|
+
fullUserId: handle.userId,
|
|
2052
2059
|
stream: config.stream,
|
|
2053
2060
|
streamMap: structuredClone(config.streamMap),
|
|
2054
2061
|
tracksMap: structuredClone(config.tracksMap),
|
|
@@ -2084,6 +2091,7 @@ class RoomSession {
|
|
|
2084
2091
|
constructId: this.constructId,
|
|
2085
2092
|
userId: decodeJanusDisplay(handle.userId)?.userId,
|
|
2086
2093
|
role: decodeJanusDisplay(handle.userId)?.role,
|
|
2094
|
+
fullUserId: handle.userId,
|
|
2087
2095
|
stream: config.stream,
|
|
2088
2096
|
streamMap: structuredClone(config.streamMap),
|
|
2089
2097
|
tracksMap: structuredClone(config.tracksMap),
|
|
@@ -2114,6 +2122,7 @@ class RoomSession {
|
|
|
2114
2122
|
constructId: this.constructId,
|
|
2115
2123
|
userId: decodeJanusDisplay(handle.userId)?.userId,
|
|
2116
2124
|
role: decodeJanusDisplay(handle.userId)?.role,
|
|
2125
|
+
fullUserId: handle.userId,
|
|
2117
2126
|
stream: config.stream,
|
|
2118
2127
|
streamMap: structuredClone(config.streamMap),
|
|
2119
2128
|
source,
|
|
@@ -2172,6 +2181,7 @@ class RoomSession {
|
|
|
2172
2181
|
constructId: this.constructId,
|
|
2173
2182
|
userId: decodeJanusDisplay(handle.userId)?.userId,
|
|
2174
2183
|
role: decodeJanusDisplay(handle.userId)?.role,
|
|
2184
|
+
fullUserId: handle.userId,
|
|
2175
2185
|
stream: config.stream,
|
|
2176
2186
|
streamMap: structuredClone(config.streamMap),
|
|
2177
2187
|
source,
|
|
@@ -2936,6 +2946,7 @@ class RoomSession {
|
|
|
2936
2946
|
|
|
2937
2947
|
getUserTalkIntercomChannels(userId) {
|
|
2938
2948
|
let talkIntercomChannels = []
|
|
2949
|
+
// TODO: check if we don't need full userId
|
|
2939
2950
|
let handle = this._getHandle(null, null, userId);
|
|
2940
2951
|
if (handle) {
|
|
2941
2952
|
let config = handle.webrtcStuff;
|