@videosdk.live/react-sdk
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -346,10 +346,2 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _handle_meeting_joined = function _handle_meeting_joined(data) { | ||
eventEmitter.emit(events['meeting-joined'], data); | ||
}; | ||
var _handle_meeting_left = function _handle_meeting_left() { | ||
eventEmitter.emit(events['meeting-left']); | ||
}; | ||
var _handle_localParticipant_stream_enabled = function _handle_localParticipant_stream_enabled(stream) { | ||
@@ -401,2 +393,43 @@ if (stream.track.readyState === 'live') { | ||
var _handle_meeting_joined = function _handle_meeting_joined(data) { | ||
eventEmitter.emit(events['meeting-joined'], data); | ||
}; | ||
var _handle_meeting_left = function _handle_meeting_left() { | ||
eventEmitter.emit(events['meeting-left']); | ||
var meeting = meetingRef.current; | ||
if (meeting) { | ||
var _meeting$localPartici; | ||
if (typeof (meeting === null || meeting === void 0 ? void 0 : meeting.off) === 'function') { | ||
meeting.off('participant-joined', _handle_participant_joined); | ||
meeting.off('participant-left', _handle_participant_left); | ||
meeting.off('presenter-changed', _handle_presenter_changed); | ||
meeting.off('main-participant-changed', _handle_main_participant_changed); | ||
meeting.off('speaker-changed', _handle_speaker_changed); | ||
meeting.off('entry-requested', _handle_entry_requested); | ||
meeting.off('entry-responded', _handle_entry_responded); | ||
meeting.off('chat-message', _handle_chat_message); | ||
meeting.off('recording-started', _handle_recording_started); | ||
meeting.off('recording-stopped', _handle_recording_stopped); | ||
meeting.off('meeting-joined', _handle_meeting_joined); | ||
meeting.off('meeting-left', _handle_meeting_left); | ||
meeting.off('livestream-started', _handle_live_stream_started); | ||
meeting.off('livestream-stopped', _handle_live_stream_stopped); | ||
meeting.off('video-state-changed', _handle_video_state_changed); | ||
meeting.off('video-seeked', _handle_video_seeked); | ||
meeting.off('webcam-requested', _handle_webcam_requested); | ||
meeting.off('mic-requested', _handle_mic_requested); | ||
} | ||
if (typeof (meeting === null || meeting === void 0 ? void 0 : (_meeting$localPartici = meeting.localParticipant) === null || _meeting$localPartici === void 0 ? void 0 : _meeting$localPartici.off) === 'function') { | ||
meeting.localParticipant.off('stream-enabled', _handle_localParticipant_stream_enabled); | ||
meeting.localParticipant.off('stream-disabled', _handle_localParticipant_stream_disabled); | ||
} | ||
resetStates(); | ||
} | ||
}; | ||
var join = function join() { | ||
@@ -437,32 +470,3 @@ var meeting = jsSdk.ZujoSDK && jsSdk.ZujoSDK.initMeeting(config); | ||
if (meeting) { | ||
var _meeting$localPartici; | ||
if (typeof (meeting === null || meeting === void 0 ? void 0 : meeting.off) === 'function') { | ||
meeting.off('participant-joined', _handle_participant_joined); | ||
meeting.off('participant-left', _handle_participant_left); | ||
meeting.off('presenter-changed', _handle_presenter_changed); | ||
meeting.off('main-participant-changed', _handle_main_participant_changed); | ||
meeting.off('speaker-changed', _handle_speaker_changed); | ||
meeting.off('entry-requested', _handle_entry_requested); | ||
meeting.off('entry-responded', _handle_entry_responded); | ||
meeting.off('chat-message', _handle_chat_message); | ||
meeting.off('recording-started', _handle_recording_started); | ||
meeting.off('recording-stopped', _handle_recording_stopped); | ||
meeting.off('meeting-joined', _handle_meeting_joined); | ||
meeting.off('meeting-left', _handle_meeting_left); | ||
meeting.off('livestream-started', _handle_live_stream_started); | ||
meeting.off('livestream-stopped', _handle_live_stream_stopped); | ||
meeting.off('video-state-changed', _handle_video_state_changed); | ||
meeting.off('video-seeked', _handle_video_seeked); | ||
meeting.off('webcam-requested', _handle_webcam_requested); | ||
meeting.off('mic-requested', _handle_mic_requested); | ||
} | ||
if (typeof (meeting === null || meeting === void 0 ? void 0 : (_meeting$localPartici = meeting.localParticipant) === null || _meeting$localPartici === void 0 ? void 0 : _meeting$localPartici.off) === 'function') { | ||
meeting.localParticipant.off('stream-enabled', _handle_localParticipant_stream_enabled); | ||
meeting.localParticipant.off('stream-disabled', _handle_localParticipant_stream_disabled); | ||
} | ||
meeting.leave(); | ||
resetStates(); | ||
} | ||
@@ -469,0 +473,0 @@ }; |
@@ -343,10 +343,2 @@ import React, { createContext, useEffect, useContext, useState, useRef } from 'react'; | ||
var _handle_meeting_joined = function _handle_meeting_joined(data) { | ||
eventEmitter.emit(events['meeting-joined'], data); | ||
}; | ||
var _handle_meeting_left = function _handle_meeting_left() { | ||
eventEmitter.emit(events['meeting-left']); | ||
}; | ||
var _handle_localParticipant_stream_enabled = function _handle_localParticipant_stream_enabled(stream) { | ||
@@ -398,2 +390,43 @@ if (stream.track.readyState === 'live') { | ||
var _handle_meeting_joined = function _handle_meeting_joined(data) { | ||
eventEmitter.emit(events['meeting-joined'], data); | ||
}; | ||
var _handle_meeting_left = function _handle_meeting_left() { | ||
eventEmitter.emit(events['meeting-left']); | ||
var meeting = meetingRef.current; | ||
if (meeting) { | ||
var _meeting$localPartici; | ||
if (typeof (meeting === null || meeting === void 0 ? void 0 : meeting.off) === 'function') { | ||
meeting.off('participant-joined', _handle_participant_joined); | ||
meeting.off('participant-left', _handle_participant_left); | ||
meeting.off('presenter-changed', _handle_presenter_changed); | ||
meeting.off('main-participant-changed', _handle_main_participant_changed); | ||
meeting.off('speaker-changed', _handle_speaker_changed); | ||
meeting.off('entry-requested', _handle_entry_requested); | ||
meeting.off('entry-responded', _handle_entry_responded); | ||
meeting.off('chat-message', _handle_chat_message); | ||
meeting.off('recording-started', _handle_recording_started); | ||
meeting.off('recording-stopped', _handle_recording_stopped); | ||
meeting.off('meeting-joined', _handle_meeting_joined); | ||
meeting.off('meeting-left', _handle_meeting_left); | ||
meeting.off('livestream-started', _handle_live_stream_started); | ||
meeting.off('livestream-stopped', _handle_live_stream_stopped); | ||
meeting.off('video-state-changed', _handle_video_state_changed); | ||
meeting.off('video-seeked', _handle_video_seeked); | ||
meeting.off('webcam-requested', _handle_webcam_requested); | ||
meeting.off('mic-requested', _handle_mic_requested); | ||
} | ||
if (typeof (meeting === null || meeting === void 0 ? void 0 : (_meeting$localPartici = meeting.localParticipant) === null || _meeting$localPartici === void 0 ? void 0 : _meeting$localPartici.off) === 'function') { | ||
meeting.localParticipant.off('stream-enabled', _handle_localParticipant_stream_enabled); | ||
meeting.localParticipant.off('stream-disabled', _handle_localParticipant_stream_disabled); | ||
} | ||
resetStates(); | ||
} | ||
}; | ||
var join = function join() { | ||
@@ -434,32 +467,3 @@ var meeting = ZujoSDK && ZujoSDK.initMeeting(config); | ||
if (meeting) { | ||
var _meeting$localPartici; | ||
if (typeof (meeting === null || meeting === void 0 ? void 0 : meeting.off) === 'function') { | ||
meeting.off('participant-joined', _handle_participant_joined); | ||
meeting.off('participant-left', _handle_participant_left); | ||
meeting.off('presenter-changed', _handle_presenter_changed); | ||
meeting.off('main-participant-changed', _handle_main_participant_changed); | ||
meeting.off('speaker-changed', _handle_speaker_changed); | ||
meeting.off('entry-requested', _handle_entry_requested); | ||
meeting.off('entry-responded', _handle_entry_responded); | ||
meeting.off('chat-message', _handle_chat_message); | ||
meeting.off('recording-started', _handle_recording_started); | ||
meeting.off('recording-stopped', _handle_recording_stopped); | ||
meeting.off('meeting-joined', _handle_meeting_joined); | ||
meeting.off('meeting-left', _handle_meeting_left); | ||
meeting.off('livestream-started', _handle_live_stream_started); | ||
meeting.off('livestream-stopped', _handle_live_stream_stopped); | ||
meeting.off('video-state-changed', _handle_video_state_changed); | ||
meeting.off('video-seeked', _handle_video_seeked); | ||
meeting.off('webcam-requested', _handle_webcam_requested); | ||
meeting.off('mic-requested', _handle_mic_requested); | ||
} | ||
if (typeof (meeting === null || meeting === void 0 ? void 0 : (_meeting$localPartici = meeting.localParticipant) === null || _meeting$localPartici === void 0 ? void 0 : _meeting$localPartici.off) === 'function') { | ||
meeting.localParticipant.off('stream-enabled', _handle_localParticipant_stream_enabled); | ||
meeting.localParticipant.off('stream-disabled', _handle_localParticipant_stream_disabled); | ||
} | ||
meeting.leave(); | ||
resetStates(); | ||
} | ||
@@ -466,0 +470,0 @@ }; |
{ | ||
"name": "@videosdk.live/react-sdk", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
184239
1535