Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@videosdk.live/react-sdk

Package Overview
Dependencies
Maintainers
2
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@videosdk.live/react-sdk - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

52

dist/index.js

@@ -22,4 +22,4 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

'meeting-left': eventPrifix + "-meeting-left",
'live-stream-enabled': eventPrifix + "-live-stream-enabled",
'live-stream-disabled': eventPrifix + "-live-stream-disabled",
'live-stream-started': eventPrifix + "-live-stream-started",
'live-stream-stopped': eventPrifix + "-live-stream-stopped",
'video-started': eventPrifix + "-video-started",

@@ -58,6 +58,6 @@ 'video-stopped': eventPrifix + "-video-stopped"

onMeetingLeft = _ref$onMeetingLeft === void 0 ? function () {} : _ref$onMeetingLeft,
_ref$onLiveStreamEnab = _ref.onLiveStreamEnabled,
onLiveStreamEnabled = _ref$onLiveStreamEnab === void 0 ? function () {} : _ref$onLiveStreamEnab,
_ref$onLiveStreamDisa = _ref.onLiveStreamDisabled,
onLiveStreamDisabled = _ref$onLiveStreamDisa === void 0 ? function () {} : _ref$onLiveStreamDisa,
_ref$onLiveStreamStar = _ref.onLiveStreamStarted,
onLiveStreamStarted = _ref$onLiveStreamStar === void 0 ? function () {} : _ref$onLiveStreamStar,
_ref$onLiveStreamStop = _ref.onLiveStreamStopped,
onLiveStreamStopped = _ref$onLiveStreamStop === void 0 ? function () {} : _ref$onLiveStreamStop,
_ref$onVideoStarted = _ref.onVideoStarted,

@@ -81,4 +81,4 @@ onVideoStarted = _ref$onVideoStarted === void 0 ? function () {} : _ref$onVideoStarted,

eventEmitter.on(events['meeting-left'], onMeetingLeft);
eventEmitter.on(events['live-stream-enabled'], onLiveStreamEnabled);
eventEmitter.on(events['live-stream-disabled'], onLiveStreamDisabled);
eventEmitter.on(events['live-stream-started'], onLiveStreamStarted);
eventEmitter.on(events['live-stream-stopped'], onLiveStreamStopped);
eventEmitter.on(events['video-started'], onVideoStarted);

@@ -99,4 +99,4 @@ eventEmitter.on(events['video-stopped'], onVideoStopped);

eventEmitter.off(events['meeting-left'], onMeetingLeft);
eventEmitter.off(events['live-stream-enabled'], onLiveStreamEnabled);
eventEmitter.off(events['live-stream-disabled'], onLiveStreamDisabled);
eventEmitter.off(events['live-stream-started'], onLiveStreamStarted);
eventEmitter.off(events['live-stream-stopped'], onLiveStreamStopped);
eventEmitter.off(events['video-started'], onVideoStarted);

@@ -134,6 +134,6 @@ eventEmitter.off(events['video-stopped'], onVideoStopped);

onMeetingLeft = _ref2$onMeetingLeft === void 0 ? function () {} : _ref2$onMeetingLeft,
_ref2$onLiveStreamEna = _ref2.onLiveStreamEnabled,
onLiveStreamEnabled = _ref2$onLiveStreamEna === void 0 ? function () {} : _ref2$onLiveStreamEna,
_ref2$onLiveStreamDis = _ref2.onLiveStreamDisabled,
onLiveStreamDisabled = _ref2$onLiveStreamDis === void 0 ? function () {} : _ref2$onLiveStreamDis,
_ref2$onLiveStreamSta = _ref2.onLiveStreamStarted,
onLiveStreamStarted = _ref2$onLiveStreamSta === void 0 ? function () {} : _ref2$onLiveStreamSta,
_ref2$onLiveStreamSto = _ref2.onLiveStreamStopped,
onLiveStreamStopped = _ref2$onLiveStreamSto === void 0 ? function () {} : _ref2$onLiveStreamSto,
_ref2$onVideoStarted = _ref2.onVideoStarted,

@@ -156,4 +156,4 @@ onVideoStarted = _ref2$onVideoStarted === void 0 ? function () {} : _ref2$onVideoStarted,

eventEmitter.on(events['meeting-left'], onMeetingLeft);
eventEmitter.on(events['live-stream-enabled'], onLiveStreamEnabled);
eventEmitter.on(events['live-stream-disabled'], onLiveStreamDisabled);
eventEmitter.on(events['live-stream-enabled'], onLiveStreamStarted);
eventEmitter.on(events['live-stream-disabled'], onLiveStreamStopped);
eventEmitter.on(events['video-started'], onVideoStarted);

@@ -174,4 +174,4 @@ eventEmitter.on(events['video-stopped'], onVideoStopped);

eventEmitter.off(events['meeting-left'], onMeetingLeft);
eventEmitter.off(events['live-stream-enabled'], onLiveStreamEnabled);
eventEmitter.off(events['live-stream-disabled'], onLiveStreamDisabled);
eventEmitter.off(events['live-stream-enabled'], onLiveStreamStarted);
eventEmitter.off(events['live-stream-disabled'], onLiveStreamStopped);
eventEmitter.off(events['video-started'], onVideoStarted);

@@ -358,8 +358,8 @@ eventEmitter.off(events['video-stopped'], onVideoStopped);

var _handle_live_stream_enabled = function _handle_live_stream_enabled(data) {
eventEmitter.emit(events['live-stream-enabled'], data);
var _handle_live_stream_started = function _handle_live_stream_started(data) {
eventEmitter.emit(events['live-stream-started'], data);
};
var _handle_live_stream_disabled = function _handle_live_stream_disabled(data) {
eventEmitter.emit(events['live-stream-disabled'], data);
var _handle_live_stream_stopped = function _handle_live_stream_stopped(data) {
eventEmitter.emit(events['live-stream-stopped'], data);
};

@@ -397,4 +397,4 @@

meeting.on('meeting-left', _handle_meeting_left);
meeting.on('livestream-enabled', _handle_live_stream_enabled);
meeting.on('livestream-disabled', _handle_live_stream_disabled);
meeting.on('livestream-started', _handle_live_stream_started);
meeting.on('livestream-stopped', _handle_live_stream_stopped);
meeting.on('video-started', _handle_video_started);

@@ -426,4 +426,4 @@ meeting.on('video-stopped', _handle_video_stopped);

meeting.off('meeting-left', _handle_meeting_left);
meeting.off('livestream-enabled', _handle_live_stream_enabled);
meeting.off('livestream-disabled', _handle_live_stream_disabled);
meeting.on('livestream-started', _handle_live_stream_started);
meeting.on('livestream-stopped', _handle_live_stream_stopped);
meeting.off('video-started', _handle_video_started);

@@ -430,0 +430,0 @@ meeting.off('video-stopped', _handle_video_stopped);

@@ -19,4 +19,4 @@ import React, { createContext, useEffect, useContext, useState, useRef } from 'react';

'meeting-left': eventPrifix + "-meeting-left",
'live-stream-enabled': eventPrifix + "-live-stream-enabled",
'live-stream-disabled': eventPrifix + "-live-stream-disabled",
'live-stream-started': eventPrifix + "-live-stream-started",
'live-stream-stopped': eventPrifix + "-live-stream-stopped",
'video-started': eventPrifix + "-video-started",

@@ -55,6 +55,6 @@ 'video-stopped': eventPrifix + "-video-stopped"

onMeetingLeft = _ref$onMeetingLeft === void 0 ? function () {} : _ref$onMeetingLeft,
_ref$onLiveStreamEnab = _ref.onLiveStreamEnabled,
onLiveStreamEnabled = _ref$onLiveStreamEnab === void 0 ? function () {} : _ref$onLiveStreamEnab,
_ref$onLiveStreamDisa = _ref.onLiveStreamDisabled,
onLiveStreamDisabled = _ref$onLiveStreamDisa === void 0 ? function () {} : _ref$onLiveStreamDisa,
_ref$onLiveStreamStar = _ref.onLiveStreamStarted,
onLiveStreamStarted = _ref$onLiveStreamStar === void 0 ? function () {} : _ref$onLiveStreamStar,
_ref$onLiveStreamStop = _ref.onLiveStreamStopped,
onLiveStreamStopped = _ref$onLiveStreamStop === void 0 ? function () {} : _ref$onLiveStreamStop,
_ref$onVideoStarted = _ref.onVideoStarted,

@@ -78,4 +78,4 @@ onVideoStarted = _ref$onVideoStarted === void 0 ? function () {} : _ref$onVideoStarted,

eventEmitter.on(events['meeting-left'], onMeetingLeft);
eventEmitter.on(events['live-stream-enabled'], onLiveStreamEnabled);
eventEmitter.on(events['live-stream-disabled'], onLiveStreamDisabled);
eventEmitter.on(events['live-stream-started'], onLiveStreamStarted);
eventEmitter.on(events['live-stream-stopped'], onLiveStreamStopped);
eventEmitter.on(events['video-started'], onVideoStarted);

@@ -96,4 +96,4 @@ eventEmitter.on(events['video-stopped'], onVideoStopped);

eventEmitter.off(events['meeting-left'], onMeetingLeft);
eventEmitter.off(events['live-stream-enabled'], onLiveStreamEnabled);
eventEmitter.off(events['live-stream-disabled'], onLiveStreamDisabled);
eventEmitter.off(events['live-stream-started'], onLiveStreamStarted);
eventEmitter.off(events['live-stream-stopped'], onLiveStreamStopped);
eventEmitter.off(events['video-started'], onVideoStarted);

@@ -131,6 +131,6 @@ eventEmitter.off(events['video-stopped'], onVideoStopped);

onMeetingLeft = _ref2$onMeetingLeft === void 0 ? function () {} : _ref2$onMeetingLeft,
_ref2$onLiveStreamEna = _ref2.onLiveStreamEnabled,
onLiveStreamEnabled = _ref2$onLiveStreamEna === void 0 ? function () {} : _ref2$onLiveStreamEna,
_ref2$onLiveStreamDis = _ref2.onLiveStreamDisabled,
onLiveStreamDisabled = _ref2$onLiveStreamDis === void 0 ? function () {} : _ref2$onLiveStreamDis,
_ref2$onLiveStreamSta = _ref2.onLiveStreamStarted,
onLiveStreamStarted = _ref2$onLiveStreamSta === void 0 ? function () {} : _ref2$onLiveStreamSta,
_ref2$onLiveStreamSto = _ref2.onLiveStreamStopped,
onLiveStreamStopped = _ref2$onLiveStreamSto === void 0 ? function () {} : _ref2$onLiveStreamSto,
_ref2$onVideoStarted = _ref2.onVideoStarted,

@@ -153,4 +153,4 @@ onVideoStarted = _ref2$onVideoStarted === void 0 ? function () {} : _ref2$onVideoStarted,

eventEmitter.on(events['meeting-left'], onMeetingLeft);
eventEmitter.on(events['live-stream-enabled'], onLiveStreamEnabled);
eventEmitter.on(events['live-stream-disabled'], onLiveStreamDisabled);
eventEmitter.on(events['live-stream-enabled'], onLiveStreamStarted);
eventEmitter.on(events['live-stream-disabled'], onLiveStreamStopped);
eventEmitter.on(events['video-started'], onVideoStarted);

@@ -171,4 +171,4 @@ eventEmitter.on(events['video-stopped'], onVideoStopped);

eventEmitter.off(events['meeting-left'], onMeetingLeft);
eventEmitter.off(events['live-stream-enabled'], onLiveStreamEnabled);
eventEmitter.off(events['live-stream-disabled'], onLiveStreamDisabled);
eventEmitter.off(events['live-stream-enabled'], onLiveStreamStarted);
eventEmitter.off(events['live-stream-disabled'], onLiveStreamStopped);
eventEmitter.off(events['video-started'], onVideoStarted);

@@ -355,8 +355,8 @@ eventEmitter.off(events['video-stopped'], onVideoStopped);

var _handle_live_stream_enabled = function _handle_live_stream_enabled(data) {
eventEmitter.emit(events['live-stream-enabled'], data);
var _handle_live_stream_started = function _handle_live_stream_started(data) {
eventEmitter.emit(events['live-stream-started'], data);
};
var _handle_live_stream_disabled = function _handle_live_stream_disabled(data) {
eventEmitter.emit(events['live-stream-disabled'], data);
var _handle_live_stream_stopped = function _handle_live_stream_stopped(data) {
eventEmitter.emit(events['live-stream-stopped'], data);
};

@@ -394,4 +394,4 @@

meeting.on('meeting-left', _handle_meeting_left);
meeting.on('livestream-enabled', _handle_live_stream_enabled);
meeting.on('livestream-disabled', _handle_live_stream_disabled);
meeting.on('livestream-started', _handle_live_stream_started);
meeting.on('livestream-stopped', _handle_live_stream_stopped);
meeting.on('video-started', _handle_video_started);

@@ -423,4 +423,4 @@ meeting.on('video-stopped', _handle_video_stopped);

meeting.off('meeting-left', _handle_meeting_left);
meeting.off('livestream-enabled', _handle_live_stream_enabled);
meeting.off('livestream-disabled', _handle_live_stream_disabled);
meeting.on('livestream-started', _handle_live_stream_started);
meeting.on('livestream-stopped', _handle_live_stream_stopped);
meeting.off('video-started', _handle_video_started);

@@ -427,0 +427,0 @@ meeting.off('video-stopped', _handle_video_stopped);

{
"name": "@videosdk.live/react-sdk",
"version": "0.0.14",
"version": "0.0.15",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc