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

@vonage/video

Package Overview
Dependencies
Maintainers
43
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/video - npm Package Compare versions

Comparing version 1.16.2 to 1.17.0

7

dist/lib/enums/ArchiveOutputMode.js

@@ -0,5 +1,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArchiveOutputMode = void 0;
/**
* Enum representing different output modes for video archives.
*/
export var ArchiveOutputMode;
var ArchiveOutputMode;
(function (ArchiveOutputMode) {

@@ -14,3 +17,3 @@ /**

ArchiveOutputMode["INDIVIDUAL"] = "individual";
})(ArchiveOutputMode || (ArchiveOutputMode = {}));
})(ArchiveOutputMode || (exports.ArchiveOutputMode = ArchiveOutputMode = {}));
//# sourceMappingURL=ArchiveOutputMode.js.map

@@ -0,5 +1,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AudioRate = void 0;
/**
* Enum representing different audio sample rates.
*/
export var AudioRate;
var AudioRate;
(function (AudioRate) {

@@ -14,3 +17,3 @@ /**

AudioRate[AudioRate["8KHZ"] = 8000] = "8KHZ";
})(AudioRate || (AudioRate = {}));
})(AudioRate || (exports.AudioRate = AudioRate = {}));
//# sourceMappingURL=AudioRate.js.map

@@ -0,5 +1,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CaptionStatus = void 0;
/**
* Enum representing different captioning status.
*/
export var CaptionStatus;
var CaptionStatus;
(function (CaptionStatus) {

@@ -22,3 +25,3 @@ /**

CaptionStatus["FAILED"] = "failed";
})(CaptionStatus || (CaptionStatus = {}));
})(CaptionStatus || (exports.CaptionStatus = CaptionStatus = {}));
//# sourceMappingURL=CaptionStatus.js.map

@@ -0,5 +1,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExperienceComposerResolution = void 0;
/**
* Enum representing different resolutions for an experience composer.
*/
export var ExperienceComposerResolution;
var ExperienceComposerResolution;
(function (ExperienceComposerResolution) {

@@ -22,3 +25,3 @@ /**

ExperienceComposerResolution["HD_PORTRAIT"] = "720x1280";
})(ExperienceComposerResolution || (ExperienceComposerResolution = {}));
})(ExperienceComposerResolution || (exports.ExperienceComposerResolution = ExperienceComposerResolution = {}));
//# sourceMappingURL=ExperienceComposerResolution.js.map

@@ -1,9 +0,25 @@

export * from './ArchiveOutputMode';
export * from './AudioRate';
export * from './CaptionStatus';
export * from './ExperienceComposerResolution';
export * from './LayoutType';
export * from './Resolution';
export * from './StreamMode';
export * from './MediaMode';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./ArchiveOutputMode"), exports);
__exportStar(require("./AudioRate"), exports);
__exportStar(require("./CaptionStatus"), exports);
__exportStar(require("./ExperienceComposerResolution"), exports);
__exportStar(require("./LayoutType"), exports);
__exportStar(require("./Resolution"), exports);
__exportStar(require("./StreamMode"), exports);
__exportStar(require("./MediaMode"), exports);
//# sourceMappingURL=index.js.map

@@ -0,5 +1,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LayoutType = void 0;
/**
* Enum representing different layout types for live streaming broadcasts.
*/
export var LayoutType;
var LayoutType;
(function (LayoutType) {

@@ -26,3 +29,3 @@ /**

LayoutType["VERTICAL_PRESENTATION"] = "verticalPresentation";
})(LayoutType || (LayoutType = {}));
})(LayoutType || (exports.LayoutType = LayoutType = {}));
//# sourceMappingURL=LayoutType.js.map

@@ -0,5 +1,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MediaMode = void 0;
/**
* Enum representing media modes for a session.
*/
export var MediaMode;
var MediaMode;
(function (MediaMode) {

@@ -14,3 +17,3 @@ /**

MediaMode["RELAYED"] = "enabled";
})(MediaMode || (MediaMode = {}));
})(MediaMode || (exports.MediaMode = MediaMode = {}));
//# sourceMappingURL=MediaMode.js.map

@@ -0,5 +1,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Resolution = void 0;
/**
* Enum representing different video resolutions for live streaming broadcasts.
*/
export var Resolution;
var Resolution;
(function (Resolution) {

@@ -30,3 +33,3 @@ /**

Resolution["SD_PORTRAIT"] = "480x640";
})(Resolution || (Resolution = {}));
})(Resolution || (exports.Resolution = Resolution = {}));
//# sourceMappingURL=Resolution.js.map

@@ -0,5 +1,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamMode = void 0;
/**
* Enum representing different stream modes for live streaming broadcasts.
*/
export var StreamMode;
var StreamMode;
(function (StreamMode) {

@@ -14,3 +17,3 @@ /**

StreamMode["MANUAL"] = "manual";
})(StreamMode || (StreamMode = {}));
})(StreamMode || (exports.StreamMode = StreamMode = {}));
//# sourceMappingURL=StreamMode.js.map

@@ -1,5 +0,21 @@

export * from './enums';
export * from './types';
export * from './parameters';
export * from './video';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./enums"), exports);
__exportStar(require("./types"), exports);
__exportStar(require("./parameters"), exports);
__exportStar(require("./video"), exports);
//# sourceMappingURL=index.js.map

@@ -1,2 +0,18 @@

export * from './VideoClassParameters';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./VideoClassParameters"), exports);
//# sourceMappingURL=index.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=VideoClassParameters.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ArchiveLayout.js.map

@@ -0,5 +1,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArchiveMode = void 0;
/**
* Enum representing different archive modes.
*/
export var ArchiveMode;
var ArchiveMode;
(function (ArchiveMode) {

@@ -14,3 +17,3 @@ /**

ArchiveMode["ALWAYS"] = "always";
})(ArchiveMode || (ArchiveMode = {}));
})(ArchiveMode || (exports.ArchiveMode = ArchiveMode = {}));
//# sourceMappingURL=ArchiveMode.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ArchiveOptions.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ArchiveSearchFilter.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=BroadcastConfig.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=BroadcastSearchFilter.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=BroadcastUpdateConfig.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CaptionOptions.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ClientTokenClaims.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ClientTokenOptions.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ExperienceComposerListFilter.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ExperienceComposerOptions.js.map

@@ -1,22 +0,38 @@

export * from './ArchiveLayout';
export * from './ArchiveMode';
export * from './ArchiveOptions';
export * from './ArchiveSearchFilter';
export * from './BroadcastConfig';
export * from './BroadcastSearchFilter';
export * from './BroadcastUpdateConfig';
export * from './CaptionOptions';
export * from './ClientTokenClaims';
export * from './ClientTokenOptions';
export * from './ExperienceComposerListFilter';
export * from './ExperienceComposerOptions';
export * from './Response';
export * from './Request/InitiateSIPCallRequest';
export * from './RTMPStream';
export * from './Session';
export * from './Singal';
export * from './SIPCallOptions';
export * from './StreamClassList';
export * from './VideoResponse';
export * from './WebSocketConfig';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./ArchiveLayout"), exports);
__exportStar(require("./ArchiveMode"), exports);
__exportStar(require("./ArchiveOptions"), exports);
__exportStar(require("./ArchiveSearchFilter"), exports);
__exportStar(require("./BroadcastConfig"), exports);
__exportStar(require("./BroadcastSearchFilter"), exports);
__exportStar(require("./BroadcastUpdateConfig"), exports);
__exportStar(require("./CaptionOptions"), exports);
__exportStar(require("./ClientTokenClaims"), exports);
__exportStar(require("./ClientTokenOptions"), exports);
__exportStar(require("./ExperienceComposerListFilter"), exports);
__exportStar(require("./ExperienceComposerOptions"), exports);
__exportStar(require("./Response"), exports);
__exportStar(require("./Request/InitiateSIPCallRequest"), exports);
__exportStar(require("./RTMPStream"), exports);
__exportStar(require("./Session"), exports);
__exportStar(require("./Singal"), exports);
__exportStar(require("./SIPCallOptions"), exports);
__exportStar(require("./StreamClassList"), exports);
__exportStar(require("./VideoResponse"), exports);
__exportStar(require("./WebSocketConfig"), exports);
//# sourceMappingURL=index.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=InitiateSIPCallRequest.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=BroadcastDetailsResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CaptionStatusResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CreateSessionResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=EnableCaptionResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ExperienceComposerResponse.js.map

@@ -1,15 +0,31 @@

export * from './BroadcastDetailsResponse';
export * from './CaptionStatusResponse';
export * from './CreateSessionResponse';
export * from './EnableCaptionResponse';
export * from './ExperienceComposerResponse';
export * from './MultiArchiveResponse';
export * from './MultiBroadcastResponse';
export * from './MultiExperienceComposerResponse';
export * from './MultiStreamLayoutResponse';
export * from './ProjectDetailsResponse';
export * from './SingleArchiveResponse';
export * from './SingleStreamLayoutResponse';
export * from './SIPCallResponse';
export * from './WebSocketConnectResponse';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./BroadcastDetailsResponse"), exports);
__exportStar(require("./CaptionStatusResponse"), exports);
__exportStar(require("./CreateSessionResponse"), exports);
__exportStar(require("./EnableCaptionResponse"), exports);
__exportStar(require("./ExperienceComposerResponse"), exports);
__exportStar(require("./MultiArchiveResponse"), exports);
__exportStar(require("./MultiBroadcastResponse"), exports);
__exportStar(require("./MultiExperienceComposerResponse"), exports);
__exportStar(require("./MultiStreamLayoutResponse"), exports);
__exportStar(require("./ProjectDetailsResponse"), exports);
__exportStar(require("./SingleArchiveResponse"), exports);
__exportStar(require("./SingleStreamLayoutResponse"), exports);
__exportStar(require("./SIPCallResponse"), exports);
__exportStar(require("./WebSocketConnectResponse"), exports);
//# sourceMappingURL=index.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MultiArchiveResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MultiBroadcastResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MultiExperienceComposerResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MultiStreamLayoutResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ProjectDetailsResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SingleArchiveResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SingleStreamLayoutResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SIPCallResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=WebSocketConnectResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=RTMPStream.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Session.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Singal.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SIPCallOptions.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=StreamClassList.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=VideoResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=WebSocketConfig.js.map

@@ -1,5 +0,8 @@

import { tokenGenerate } from '@vonage/jwt';
import { AuthenticationType, Client } from '@vonage/server-client';
import { MediaMode } from './enums';
import { ArchiveMode, } from './types';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Video = void 0;
const jwt_1 = require("@vonage/jwt");
const server_client_1 = require("@vonage/server-client");
const enums_1 = require("./enums");
const types_1 = require("./types");
/**

@@ -49,4 +52,4 @@ * Video Client for managing and interacting with video-related operations in your application.

*/
export class Video extends Client {
authType = AuthenticationType.JWT;
class Video extends server_client_1.Client {
authType = server_client_1.AuthenticationType.JWT;
/**

@@ -172,4 +175,4 @@ * Adds a stream to an existing archive, allowing you to include additional streams in the archive recording.

const data = {
archiveMode: sessionOptions?.archiveMode ?? ArchiveMode.MANUAL,
'p2p.preference': sessionOptions?.mediaMode ?? MediaMode.ROUTED,
archiveMode: sessionOptions?.archiveMode ?? types_1.ArchiveMode.MANUAL,
'p2p.preference': sessionOptions?.mediaMode ?? enums_1.MediaMode.ROUTED,
location: sessionOptions?.location ?? null,

@@ -338,3 +341,3 @@ };

}
return tokenGenerate(this.auth.applicationId, this.auth.privateKey, claims);
return (0, jwt_1.tokenGenerate)(this.auth.applicationId, this.auth.privateKey, claims);
}

@@ -849,2 +852,3 @@ /**

}
exports.Video = Video;
//# sourceMappingURL=video.js.map
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@vonage/video",
"version": "1.16.2",
"version": "1.17.0",
"description": "Package to interact with the Vonage Video API (Not OpenTok Compatible)",

@@ -29,3 +29,2 @@ "keywords": [

],
"type": "module",
"main": "dist/lib/index.js",

@@ -47,6 +46,6 @@ "types": "dist/lib/index.d.ts",

"dependencies": {
"@vonage/auth": "^1.10.1",
"@vonage/jwt": "^1.10.1",
"@vonage/server-client": "^1.12.1",
"@vonage/vetch": "^1.7.2"
"@vonage/auth": "^1.11.0",
"@vonage/jwt": "^1.11.0",
"@vonage/server-client": "^1.13.0",
"@vonage/vetch": "^1.8.0"
},

@@ -53,0 +52,0 @@ "devDependencies": {

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

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

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

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