@whereby.com/core 0.11.0 → 0.11.1
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 +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -45,7 +45,7 @@ const createReactor = (selectors, callback) => {
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
const coreVersion = "0.11.
|
|
48
|
+
const coreVersion = "0.11.1";
|
|
49
49
|
|
|
50
50
|
const initialState$d = {
|
|
51
51
|
isNodeSdk: false,
|
|
@@ -1427,9 +1427,9 @@ const selectScreenshares = toolkit.createSelector(selectLocalScreenshareStream,
|
|
|
1427
1427
|
const screenshares = [];
|
|
1428
1428
|
if (localScreenshareStream) {
|
|
1429
1429
|
screenshares.push({
|
|
1430
|
-
id: localScreenshareStream.id,
|
|
1430
|
+
id: localScreenshareStream.id || "local-screenshare",
|
|
1431
1431
|
participantId: "local",
|
|
1432
|
-
hasAudioTrack: localScreenshareStream.
|
|
1432
|
+
hasAudioTrack: localScreenshareStream.getTracks().some((track) => track.kind === "audio"),
|
|
1433
1433
|
stream: localScreenshareStream,
|
|
1434
1434
|
isLocal: true,
|
|
1435
1435
|
});
|
|
@@ -1437,9 +1437,9 @@ const selectScreenshares = toolkit.createSelector(selectLocalScreenshareStream,
|
|
|
1437
1437
|
for (const participant of remoteParticipants) {
|
|
1438
1438
|
if (participant.presentationStream) {
|
|
1439
1439
|
screenshares.push({
|
|
1440
|
-
id: participant.presentationStream.id
|
|
1440
|
+
id: participant.presentationStream.id || `pres-${participant.id}`,
|
|
1441
1441
|
participantId: participant.id,
|
|
1442
|
-
hasAudioTrack: participant.presentationStream.
|
|
1442
|
+
hasAudioTrack: participant.presentationStream.getTracks().some((track) => track.kind === "audio"),
|
|
1443
1443
|
stream: participant.presentationStream,
|
|
1444
1444
|
isLocal: false,
|
|
1445
1445
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -43,7 +43,7 @@ const createReactor = (selectors, callback) => {
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
const coreVersion = "0.11.
|
|
46
|
+
const coreVersion = "0.11.1";
|
|
47
47
|
|
|
48
48
|
const initialState$d = {
|
|
49
49
|
isNodeSdk: false,
|
|
@@ -1425,9 +1425,9 @@ const selectScreenshares = createSelector(selectLocalScreenshareStream, selectRe
|
|
|
1425
1425
|
const screenshares = [];
|
|
1426
1426
|
if (localScreenshareStream) {
|
|
1427
1427
|
screenshares.push({
|
|
1428
|
-
id: localScreenshareStream.id,
|
|
1428
|
+
id: localScreenshareStream.id || "local-screenshare",
|
|
1429
1429
|
participantId: "local",
|
|
1430
|
-
hasAudioTrack: localScreenshareStream.
|
|
1430
|
+
hasAudioTrack: localScreenshareStream.getTracks().some((track) => track.kind === "audio"),
|
|
1431
1431
|
stream: localScreenshareStream,
|
|
1432
1432
|
isLocal: true,
|
|
1433
1433
|
});
|
|
@@ -1435,9 +1435,9 @@ const selectScreenshares = createSelector(selectLocalScreenshareStream, selectRe
|
|
|
1435
1435
|
for (const participant of remoteParticipants) {
|
|
1436
1436
|
if (participant.presentationStream) {
|
|
1437
1437
|
screenshares.push({
|
|
1438
|
-
id: participant.presentationStream.id
|
|
1438
|
+
id: participant.presentationStream.id || `pres-${participant.id}`,
|
|
1439
1439
|
participantId: participant.id,
|
|
1440
|
-
hasAudioTrack: participant.presentationStream.
|
|
1440
|
+
hasAudioTrack: participant.presentationStream.getTracks().some((track) => track.kind === "audio"),
|
|
1441
1441
|
stream: participant.presentationStream,
|
|
1442
1442
|
isLocal: false,
|
|
1443
1443
|
});
|
package/package.json
CHANGED