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
134
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.1.52 to 0.1.53

27

dist/index.js

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

var version = "0.1.51";
var version = "0.1.53";

@@ -1112,3 +1112,5 @@ var MeetingProvider = function MeetingProvider(_ref) {

_ref$onMediaStatusCha = _ref.onMediaStatusChanged,
onMediaStatusChanged = _ref$onMediaStatusCha === void 0 ? function () {} : _ref$onMediaStatusCha;
onMediaStatusChanged = _ref$onMediaStatusCha === void 0 ? function () {} : _ref$onMediaStatusCha,
_ref$onVideoQualityCh = _ref.onVideoQualityChanged,
onVideoQualityChanged = _ref$onVideoQualityCh === void 0 ? function () {} : _ref$onVideoQualityCh;

@@ -1222,2 +1224,13 @@ var _useState = React.useState(null),

var _handleVideoQualityChanged = function _handleVideoQualityChanged(data) {
var peerId = data.peerId,
prevQuality = data.prevQuality,
currentQuality = data.currentQuality;
onVideoQualityChanged({
peerId: peerId,
prevQuality: prevQuality,
currentQuality: currentQuality
});
};
var _handleMediaStatusChanged = function _handleMediaStatusChanged(data) {

@@ -1321,2 +1334,3 @@ var kind = data.kind,

participant === null || participant === void 0 ? void 0 : participant.on('media-status-changed', _handleMediaStatusChanged);
participant === null || participant === void 0 ? void 0 : participant.on('video-quality-changed', _handleVideoQualityChanged);
return function () {

@@ -1326,2 +1340,3 @@ participant === null || participant === void 0 ? void 0 : participant.off('stream-enabled', _handleStreamEnabled);

participant === null || participant === void 0 ? void 0 : participant.off('media-status-changed', _handleMediaStatusChanged);
participant === null || participant === void 0 ? void 0 : participant.off('video-quality-changed', _handleVideoQualityChanged);
};

@@ -1343,2 +1358,3 @@ }, [participant]);

pinState: pinState,
mode: participant === null || participant === void 0 ? void 0 : participant.mode,
consumeMicStreams: consumeMicStreams,

@@ -1516,3 +1532,5 @@ consumeWebcamStreams: consumeWebcamStreams,

_ref$optimizationMode = _ref.optimizationMode,
optimizationMode = _ref$optimizationMode === void 0 ? undefined : _ref$optimizationMode;
optimizationMode = _ref$optimizationMode === void 0 ? undefined : _ref$optimizationMode,
_ref$multiStream = _ref.multiStream,
multiStream = _ref$multiStream === void 0 ? true : _ref$multiStream;

@@ -1524,3 +1542,4 @@ try {

facingMode: facingMode,
optimizationMode: optimizationMode
optimizationMode: optimizationMode,
multiStream: multiStream
}));

@@ -1527,0 +1546,0 @@ } catch (e) {

@@ -291,3 +291,3 @@ import React, { createContext, useEffect, useContext, useState, useRef, useMemo } from 'react';

var version = "0.1.51";
var version = "0.1.53";

@@ -1109,3 +1109,5 @@ var MeetingProvider = function MeetingProvider(_ref) {

_ref$onMediaStatusCha = _ref.onMediaStatusChanged,
onMediaStatusChanged = _ref$onMediaStatusCha === void 0 ? function () {} : _ref$onMediaStatusCha;
onMediaStatusChanged = _ref$onMediaStatusCha === void 0 ? function () {} : _ref$onMediaStatusCha,
_ref$onVideoQualityCh = _ref.onVideoQualityChanged,
onVideoQualityChanged = _ref$onVideoQualityCh === void 0 ? function () {} : _ref$onVideoQualityCh;

@@ -1219,2 +1221,13 @@ var _useState = useState(null),

var _handleVideoQualityChanged = function _handleVideoQualityChanged(data) {
var peerId = data.peerId,
prevQuality = data.prevQuality,
currentQuality = data.currentQuality;
onVideoQualityChanged({
peerId: peerId,
prevQuality: prevQuality,
currentQuality: currentQuality
});
};
var _handleMediaStatusChanged = function _handleMediaStatusChanged(data) {

@@ -1318,2 +1331,3 @@ var kind = data.kind,

participant === null || participant === void 0 ? void 0 : participant.on('media-status-changed', _handleMediaStatusChanged);
participant === null || participant === void 0 ? void 0 : participant.on('video-quality-changed', _handleVideoQualityChanged);
return function () {

@@ -1323,2 +1337,3 @@ participant === null || participant === void 0 ? void 0 : participant.off('stream-enabled', _handleStreamEnabled);

participant === null || participant === void 0 ? void 0 : participant.off('media-status-changed', _handleMediaStatusChanged);
participant === null || participant === void 0 ? void 0 : participant.off('video-quality-changed', _handleVideoQualityChanged);
};

@@ -1340,2 +1355,3 @@ }, [participant]);

pinState: pinState,
mode: participant === null || participant === void 0 ? void 0 : participant.mode,
consumeMicStreams: consumeMicStreams,

@@ -1513,3 +1529,5 @@ consumeWebcamStreams: consumeWebcamStreams,

_ref$optimizationMode = _ref.optimizationMode,
optimizationMode = _ref$optimizationMode === void 0 ? undefined : _ref$optimizationMode;
optimizationMode = _ref$optimizationMode === void 0 ? undefined : _ref$optimizationMode,
_ref$multiStream = _ref.multiStream,
multiStream = _ref$multiStream === void 0 ? true : _ref$multiStream;

@@ -1521,3 +1539,4 @@ try {

facingMode: facingMode,
optimizationMode: optimizationMode
optimizationMode: optimizationMode,
multiStream: multiStream
}));

@@ -1524,0 +1543,0 @@ } catch (e) {

4

dist/types/index.d.ts

@@ -18,5 +18,6 @@ import MeetingProvider from "./meeting/MeetingProvider";

* optimizationMode?: "text"| "motion" | "detail" | undefined
* multiStream?: boolean
* }}
*/
export function createCameraVideoTrack({ cameraId, encoderConfig, facingMode, optimizationMode }: {
export function createCameraVideoTrack({ cameraId, encoderConfig, facingMode, optimizationMode, multiStream }: {
cameraId?: string | undefined;

@@ -26,2 +27,3 @@ encoderConfig?: "h90p_w160p" | "h180p_w320p" | "h216p_w384p" | "h360p_w640p" | "h540p_w960p" | "h720p_w1280p" | "h1080p_w1920p" | "h1440p_w2560p" | "h2160p_w3840p" | "h120p_w160p" | "h180p_w240p" | "h240p_w320p" | "h360p_w480p" | "h480p_w640p" | "h540p_w720p" | "h720p_w960p" | "h1080p_w1440p" | "h1440p_w1920p" | undefined;

optimizationMode?: "text" | "motion" | "detail" | undefined;
multiStream?: boolean;
}): Promise<any>;

@@ -28,0 +30,0 @@ /**

@@ -17,2 +17,4 @@ export default MeetingProvider;

* customMicrophoneAudioTrack?: MediaStream | undefined,
* multiStream?: boolean,
* mode?: "CONFERENCE" | "VIEWER",
* },

@@ -39,2 +41,4 @@ * token: string,

customMicrophoneAudioTrack?: MediaStream | undefined;
multiStream?: boolean;
mode?: "CONFERENCE" | "VIEWER";
};

@@ -41,0 +45,0 @@ token: string;

@@ -9,2 +9,3 @@ export default useParticipant;

* onMediaStatusChanged?: Function,
* onVideoQualityChanged?: Function,
* }} options

@@ -25,2 +26,3 @@ *

* pinState: any;
* mode: "CONFERENCE" | "VIEWER",
* consumeMicStreams: () => void;

@@ -62,6 +64,7 @@ * consumeWebcamStreams: () => void;

*/
declare function useParticipant(participantId: string, { onStreamEnabled, onStreamDisabled, onMediaStatusChanged }?: {
declare function useParticipant(participantId: string, { onStreamEnabled, onStreamDisabled, onMediaStatusChanged, onVideoQualityChanged }?: {
onStreamDisabled?: Function;
onStreamEnabled?: Function;
onMediaStatusChanged?: Function;
onVideoQualityChanged?: Function;
}): {

@@ -80,2 +83,3 @@ displayName: string;

pinState: any;
mode: "CONFERENCE" | "VIEWER";
consumeMicStreams: () => void;

@@ -82,0 +86,0 @@ consumeWebcamStreams: () => void;

{
"name": "@videosdk.live/react-sdk",
"version": "0.1.52",
"version": "0.1.53",
"license": "ISC",

@@ -74,5 +74,5 @@ "main": "dist/index.js",

"dependencies": {
"@videosdk.live/js-sdk": "0.0.52",
"@videosdk.live/js-sdk": "0.0.53",
"events": "^3.3.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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