@whereby.com/core 1.7.0 → 1.8.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 CHANGED
@@ -1158,7 +1158,7 @@ const createReactor = (selectors, callback) => {
1158
1158
  });
1159
1159
  };
1160
1160
 
1161
- const coreVersion = "1.7.0";
1161
+ const coreVersion = "1.8.0";
1162
1162
 
1163
1163
  const initialState$1 = {
1164
1164
  displayName: null,
@@ -2572,7 +2572,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
2572
2572
  if (screenshareStream) {
2573
2573
  return { stream: screenshareStream };
2574
2574
  }
2575
- const stream = yield media.getDisplayMedia();
2575
+ const stream = yield media.getDisplayMedia({
2576
+ video: {
2577
+ width: { max: window.screen.width },
2578
+ height: { max: window.screen.height },
2579
+ },
2580
+ audio: {
2581
+ autoGainControl: false,
2582
+ echoCancellation: false,
2583
+ noiseSuppression: false,
2584
+ },
2585
+ });
2576
2586
  const onEnded = () => {
2577
2587
  dispatch(doStopScreenshare());
2578
2588
  };
package/dist/index.mjs CHANGED
@@ -1156,7 +1156,7 @@ const createReactor = (selectors, callback) => {
1156
1156
  });
1157
1157
  };
1158
1158
 
1159
- const coreVersion = "1.7.0";
1159
+ const coreVersion = "1.8.0";
1160
1160
 
1161
1161
  const initialState$1 = {
1162
1162
  displayName: null,
@@ -2570,7 +2570,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
2570
2570
  if (screenshareStream) {
2571
2571
  return { stream: screenshareStream };
2572
2572
  }
2573
- const stream = yield getDisplayMedia();
2573
+ const stream = yield getDisplayMedia({
2574
+ video: {
2575
+ width: { max: window.screen.width },
2576
+ height: { max: window.screen.height },
2577
+ },
2578
+ audio: {
2579
+ autoGainControl: false,
2580
+ echoCancellation: false,
2581
+ noiseSuppression: false,
2582
+ },
2583
+ });
2574
2584
  const onEnded = () => {
2575
2585
  dispatch(doStopScreenshare());
2576
2586
  };
@@ -1156,7 +1156,7 @@ const createReactor = (selectors, callback) => {
1156
1156
  });
1157
1157
  };
1158
1158
 
1159
- const coreVersion = "1.7.0";
1159
+ const coreVersion = "1.8.0";
1160
1160
 
1161
1161
  const initialState$1 = {
1162
1162
  displayName: null,
@@ -2570,7 +2570,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
2570
2570
  if (screenshareStream) {
2571
2571
  return { stream: screenshareStream };
2572
2572
  }
2573
- const stream = yield getDisplayMedia();
2573
+ const stream = yield getDisplayMedia({
2574
+ video: {
2575
+ width: { max: window.screen.width },
2576
+ height: { max: window.screen.height },
2577
+ },
2578
+ audio: {
2579
+ autoGainControl: false,
2580
+ echoCancellation: false,
2581
+ noiseSuppression: false,
2582
+ },
2583
+ });
2574
2584
  const onEnded = () => {
2575
2585
  dispatch(doStopScreenshare());
2576
2586
  };
@@ -75,7 +75,7 @@ const createReactor = (selectors, callback) => {
75
75
  });
76
76
  };
77
77
 
78
- const coreVersion = "1.7.0";
78
+ const coreVersion = "1.8.0";
79
79
 
80
80
  const initialState$1 = {
81
81
  displayName: null,
@@ -1472,7 +1472,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
1472
1472
  if (screenshareStream) {
1473
1473
  return { stream: screenshareStream };
1474
1474
  }
1475
- const stream = yield media.getDisplayMedia();
1475
+ const stream = yield media.getDisplayMedia({
1476
+ video: {
1477
+ width: { max: window.screen.width },
1478
+ height: { max: window.screen.height },
1479
+ },
1480
+ audio: {
1481
+ autoGainControl: false,
1482
+ echoCancellation: false,
1483
+ noiseSuppression: false,
1484
+ },
1485
+ });
1476
1486
  const onEnded = () => {
1477
1487
  dispatch(doStopScreenshare());
1478
1488
  };
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
73
73
  });
74
74
  };
75
75
 
76
- const coreVersion = "1.7.0";
76
+ const coreVersion = "1.8.0";
77
77
 
78
78
  const initialState$1 = {
79
79
  displayName: null,
@@ -1470,7 +1470,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
1470
1470
  if (screenshareStream) {
1471
1471
  return { stream: screenshareStream };
1472
1472
  }
1473
- const stream = yield getDisplayMedia();
1473
+ const stream = yield getDisplayMedia({
1474
+ video: {
1475
+ width: { max: window.screen.width },
1476
+ height: { max: window.screen.height },
1477
+ },
1478
+ audio: {
1479
+ autoGainControl: false,
1480
+ echoCancellation: false,
1481
+ noiseSuppression: false,
1482
+ },
1483
+ });
1474
1484
  const onEnded = () => {
1475
1485
  dispatch(doStopScreenshare());
1476
1486
  };
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
73
73
  });
74
74
  };
75
75
 
76
- const coreVersion = "1.7.0";
76
+ const coreVersion = "1.8.0";
77
77
 
78
78
  const initialState$1 = {
79
79
  displayName: null,
@@ -1470,7 +1470,17 @@ const doStartScreenshare = createAsyncRoomConnectedThunk("localScreenshare/doSta
1470
1470
  if (screenshareStream) {
1471
1471
  return { stream: screenshareStream };
1472
1472
  }
1473
- const stream = yield getDisplayMedia();
1473
+ const stream = yield getDisplayMedia({
1474
+ video: {
1475
+ width: { max: window.screen.width },
1476
+ height: { max: window.screen.height },
1477
+ },
1478
+ audio: {
1479
+ autoGainControl: false,
1480
+ echoCancellation: false,
1481
+ noiseSuppression: false,
1482
+ },
1483
+ });
1474
1484
  const onEnded = () => {
1475
1485
  dispatch(doStopScreenshare());
1476
1486
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@whereby.com/core",
3
3
  "description": "Core library for whereby.com sdk",
4
4
  "author": "Whereby AS",
5
- "version": "1.7.0",
5
+ "version": "1.8.0",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@reduxjs/toolkit": "^2.2.3",
69
- "@whereby.com/media": "3.1.0",
69
+ "@whereby.com/media": "3.1.1",
70
70
  "axios": "^1.11.0",
71
71
  "btoa": "^1.2.1",
72
72
  "events": "^3.3.0"