@videosdk.live/react-sdk 0.3.6 → 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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/types/meeting.d.ts +17 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ var events = {
|
|
|
77
77
|
'connection-open': eventPrifix + "-connection-open",
|
|
78
78
|
'connection-close': eventPrifix + "-connection-close",
|
|
79
79
|
'switch-meeting': eventPrifix + "-switch-meeting",
|
|
80
|
-
|
|
80
|
+
error: eventPrifix + "-error",
|
|
81
81
|
'hls-started': eventPrifix + "-hls-started",
|
|
82
82
|
'hls-stopped': eventPrifix + "-hls-stopped",
|
|
83
83
|
'hls-state-changed': eventPrifix + "-hls-state-changed",
|
|
@@ -2308,8 +2308,10 @@ var withAdaptiveObservers = function withAdaptiveObservers(VideoPlayerComponent)
|
|
|
2308
2308
|
var resizeObserverRef = React.useRef(null);
|
|
2309
2309
|
var _useParticipant = useParticipant(participantId),
|
|
2310
2310
|
participant = _useParticipant.participant;
|
|
2311
|
+
var _useMeeting = useMeeting(),
|
|
2312
|
+
localParticipant = _useMeeting.localParticipant;
|
|
2311
2313
|
React.useEffect(function () {
|
|
2312
|
-
if (type === 'share' || !ref.current || !participant) return;
|
|
2314
|
+
if (type === 'share' || !ref.current || !participant || participantId === localParticipant.id) return;
|
|
2313
2315
|
var element = ref.current;
|
|
2314
2316
|
if (!element || !participant) return;
|
|
2315
2317
|
if (observerRef.current) observerRef.current.disconnect();
|