@videosdk.live/react-sdk 0.1.65 → 0.1.67
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.js +3 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -11
- package/dist/index.modern.js.map +1 -1
- package/dist/types/meeting/meetingProviderContextDef.d.ts +2 -2
- package/dist/types/meeting/meetingProviderContextDef.d.ts.map +1 -1
- package/dist/types/participant/useParticipant.d.ts +8 -6
- package/dist/types/participant/useParticipant.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -42,7 +42,6 @@ var eventEmitter = new EventEmitter();
|
|
|
42
42
|
eventEmitter.setMaxListeners(9999);
|
|
43
43
|
|
|
44
44
|
var MeetingProviderContex = React.createContext();
|
|
45
|
-
|
|
46
45
|
var useMeeting = function useMeeting(_temp) {
|
|
47
46
|
var _ref = _temp === void 0 ? {} : _temp,
|
|
48
47
|
_ref$onParticipantJoi = _ref.onParticipantJoined,
|
|
@@ -300,7 +299,7 @@ var MeetingConsumer = function MeetingConsumer(_ref2) {
|
|
|
300
299
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(MeetingProviderContex.Consumer, null, children));
|
|
301
300
|
};
|
|
302
301
|
|
|
303
|
-
var version = "0.1.
|
|
302
|
+
var version = "0.1.66";
|
|
304
303
|
|
|
305
304
|
var MeetingProvider = function MeetingProvider(_ref) {
|
|
306
305
|
var children = _ref.children,
|
|
@@ -635,7 +634,6 @@ var MeetingProvider = function MeetingProvider(_ref) {
|
|
|
635
634
|
participants.set(part.id, part);
|
|
636
635
|
return participants;
|
|
637
636
|
});
|
|
638
|
-
|
|
639
637
|
if (data.participantId === (meetingRef === null || meetingRef === void 0 ? void 0 : (_meetingRef$current2 = meetingRef.current) === null || _meetingRef$current2 === void 0 ? void 0 : (_meetingRef$current2$ = _meetingRef$current2.localParticipant) === null || _meetingRef$current2$ === void 0 ? void 0 : _meetingRef$current2$.id)) {
|
|
640
638
|
setLocalParticipant(function (participant) {
|
|
641
639
|
participant.mode = data.mode;
|
|
@@ -901,7 +899,7 @@ var MeetingProvider = function MeetingProvider(_ref) {
|
|
|
901
899
|
payload = _ref6.payload;
|
|
902
900
|
try {
|
|
903
901
|
var _meeting3 = meetingRef.current;
|
|
904
|
-
var
|
|
902
|
+
var _temp = function () {
|
|
905
903
|
if (_meeting3) {
|
|
906
904
|
return Promise.resolve(_meeting3.connectTo({
|
|
907
905
|
meetingId: meetingId,
|
|
@@ -909,7 +907,7 @@ var MeetingProvider = function MeetingProvider(_ref) {
|
|
|
909
907
|
})).then(function () {});
|
|
910
908
|
}
|
|
911
909
|
}();
|
|
912
|
-
return Promise.resolve(
|
|
910
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
913
911
|
} catch (e) {
|
|
914
912
|
return Promise.reject(e);
|
|
915
913
|
}
|
|
@@ -1041,7 +1039,6 @@ var useParticipant = function useParticipant(participantId, _temp) {
|
|
|
1041
1039
|
cam: false,
|
|
1042
1040
|
share: false
|
|
1043
1041
|
};
|
|
1044
|
-
|
|
1045
1042
|
return {
|
|
1046
1043
|
participants: participants,
|
|
1047
1044
|
localParticipant: localParticipant,
|
|
@@ -1055,7 +1052,6 @@ var useParticipant = function useParticipant(participantId, _temp) {
|
|
|
1055
1052
|
activeSpeakerId = _useMemo.activeSpeakerId,
|
|
1056
1053
|
mainParticipant = _useMemo.mainParticipant,
|
|
1057
1054
|
pinState = _useMemo.pinState;
|
|
1058
|
-
|
|
1059
1055
|
var participant = participants === null || participants === void 0 ? void 0 : participants.get(participantId);
|
|
1060
1056
|
var _useState5 = React.useState(participant === null || participant === void 0 ? void 0 : participant.webcamOn),
|
|
1061
1057
|
webcamOn = _useState5[0],
|
|
@@ -1346,7 +1342,6 @@ var usePubSub = function usePubSub(topic, _temp) {
|
|
|
1346
1342
|
messages = _useState[0],
|
|
1347
1343
|
setMessages = _useState[1];
|
|
1348
1344
|
var isSubscribed = React.useRef(false);
|
|
1349
|
-
|
|
1350
1345
|
var publish = function publish(message, options) {
|
|
1351
1346
|
if (meeting) {
|
|
1352
1347
|
meeting.pubSub.publish(topic, message, options);
|
|
@@ -1388,7 +1383,6 @@ var usePubSub = function usePubSub(topic, _temp) {
|
|
|
1388
1383
|
};
|
|
1389
1384
|
|
|
1390
1385
|
var Constants = jsSdk.VideoSDK.Constants;
|
|
1391
|
-
|
|
1392
1386
|
var createCameraVideoTrack = function createCameraVideoTrack(_ref) {
|
|
1393
1387
|
var _ref$cameraId = _ref.cameraId,
|
|
1394
1388
|
cameraId = _ref$cameraId === void 0 ? undefined : _ref$cameraId,
|
|
@@ -1412,7 +1406,6 @@ var createCameraVideoTrack = function createCameraVideoTrack(_ref) {
|
|
|
1412
1406
|
return Promise.reject(e);
|
|
1413
1407
|
}
|
|
1414
1408
|
};
|
|
1415
|
-
|
|
1416
1409
|
var createScreenShareVideoTrack = function createScreenShareVideoTrack(_ref2) {
|
|
1417
1410
|
var _ref2$encoderConfig = _ref2.encoderConfig,
|
|
1418
1411
|
encoderConfig = _ref2$encoderConfig === void 0 ? undefined : _ref2$encoderConfig,
|
|
@@ -1430,7 +1423,6 @@ var createScreenShareVideoTrack = function createScreenShareVideoTrack(_ref2) {
|
|
|
1430
1423
|
return Promise.reject(e);
|
|
1431
1424
|
}
|
|
1432
1425
|
};
|
|
1433
|
-
|
|
1434
1426
|
var createMicrophoneAudioTrack = function createMicrophoneAudioTrack(_ref3) {
|
|
1435
1427
|
var _ref3$noiseConfig = _ref3.noiseConfig,
|
|
1436
1428
|
noiseConfig = _ref3$noiseConfig === void 0 ? undefined : _ref3$noiseConfig,
|