@videosdk.live/react-sdk 0.3.5 → 0.3.7
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 +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/types/meeting.d.ts +17 -3
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -75,7 +75,7 @@ var events = {
|
|
|
75
75
|
'connection-open': eventPrifix + "-connection-open",
|
|
76
76
|
'connection-close': eventPrifix + "-connection-close",
|
|
77
77
|
'switch-meeting': eventPrifix + "-switch-meeting",
|
|
78
|
-
|
|
78
|
+
error: eventPrifix + "-error",
|
|
79
79
|
'hls-started': eventPrifix + "-hls-started",
|
|
80
80
|
'hls-stopped': eventPrifix + "-hls-stopped",
|
|
81
81
|
'hls-state-changed': eventPrifix + "-hls-state-changed",
|
|
@@ -444,7 +444,7 @@ var MeetingConsumer = function MeetingConsumer(_ref2) {
|
|
|
444
444
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MeetingProviderContex.Consumer, null, children));
|
|
445
445
|
};
|
|
446
446
|
|
|
447
|
-
var version = "0.3.
|
|
447
|
+
var version = "0.3.6";
|
|
448
448
|
|
|
449
449
|
var MeetingProvider = function MeetingProvider(_ref) {
|
|
450
450
|
var children = _ref.children,
|
|
@@ -2306,8 +2306,10 @@ var withAdaptiveObservers = function withAdaptiveObservers(VideoPlayerComponent)
|
|
|
2306
2306
|
var resizeObserverRef = useRef(null);
|
|
2307
2307
|
var _useParticipant = useParticipant(participantId),
|
|
2308
2308
|
participant = _useParticipant.participant;
|
|
2309
|
+
var _useMeeting = useMeeting(),
|
|
2310
|
+
localParticipant = _useMeeting.localParticipant;
|
|
2309
2311
|
useEffect(function () {
|
|
2310
|
-
if (type === 'share' || !ref.current || !participant) return;
|
|
2312
|
+
if (type === 'share' || !ref.current || !participant || participantId === localParticipant.id) return;
|
|
2311
2313
|
var element = ref.current;
|
|
2312
2314
|
if (!element || !participant) return;
|
|
2313
2315
|
if (observerRef.current) observerRef.current.disconnect();
|