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

trtc-sdk-v5

Package Overview
Dependencies
Maintainers
9
Versions
289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trtc-sdk-v5 - npm Package Compare versions

Comparing version 5.5.0-beta.5 to 5.5.0-beta.6

plugins/video-effect/basic-beauty/basic-beauty.esm.js

162

core.d.ts
declare enum LOG_LEVEL {

@@ -58,8 +57,2 @@ /**

};
readonly '120p_2': {
readonly width: 160;
readonly height: 120;
readonly frameRate: 15;
readonly bitrate: 100;
};
readonly '180p': {

@@ -71,8 +64,2 @@ readonly width: 320;

};
readonly '180p_2': {
readonly width: 320;
readonly height: 180;
readonly frameRate: 15;
readonly bitrate: 150;
};
readonly '240p': {

@@ -84,8 +71,2 @@ readonly width: 320;

};
readonly '240p_2': {
readonly width: 320;
readonly height: 240;
readonly frameRate: 15;
readonly bitrate: 200;
};
readonly '360p': {

@@ -97,8 +78,2 @@ readonly width: 640;

};
readonly '360p_2': {
readonly width: 640;
readonly height: 360;
readonly frameRate: 15;
readonly bitrate: 400;
};
readonly '480p': {

@@ -110,8 +85,2 @@ readonly width: 640;

};
readonly '480p_2': {
readonly width: 640;
readonly height: 480;
readonly frameRate: 15;
readonly bitrate: 500;
};
readonly '720p': {

@@ -198,16 +167,2 @@ readonly width: 1280;

declare interface DeviceInfo {

@@ -254,3 +209,93 @@ readonly deviceId: string;

declare const enum NetworkQualityValue {
UNKNOWN,
EXCELLENT,
GOOD,
POOR,
BAD,
VERY_BAD,
DISCONNECTED
}
declare const enum RemoteStreamType {
Main = 'main',
Aux = 'auxiliary',
}
declare interface MixTranscodeConfig {
/** Stream mixing mode */
mode?: 'manual' | 'preset-layout';
/** Stream ID after mixtranscoding. Default value: '' */
streamId?: string;
/**
* Width of the video resolution in px after transcoding. Default value: 640.
*
* The value must be greater than or equal to 0 and is large enough so that all mixed video streams can be accommodated.
*/
videoWidth?: number;
/**
* Height of the video resolution in px after transcoding. Default value: 480.
*
* The value must be greater than or equal to 0 and is large enough so that all mixed video streams can be accommodated.
*/
videoHeight?: number;
/** Video bitrate (Kbps) after transcoding. If `0` is passed in, the bitrate value is determined by `videoWidth` and `videoHeight`. */
videoBitrate?: number;
/** Video frame rate (fps) after transcoding. Default value: 15. Value range: (0, 30]. */
videoFramerate?: number;
/** Video keyframe interval (s) after transcoding. Default value: 2. Value range: [1, 8]. */
videoGOP?: number;
/** Audio sample rate (Hz) after transcoding. Default value: 48000 */
audioSampleRate?: number;
/** Audio bitrate (Kbps) after transcoding. Default value: 64. Value range: [32, 192]. */
audioBitrate?: number;
/** Number of sound channels after transcoding. Valid values: 1 (default), 2 */
audioChannels?: 1 | 2;
/** Background color of the image after mixing. The value must be a hexadecimal number. Default value: 0x000000 (black) */
backgroundColor?: number;
/** Background picture of the image after mixing. Default value: '' */
backgroundImage?: string;
/** Information list of users' streams mixed. The list must contain API caller information. */
mixUsers: MixUser[];
}
/**
* @link https://web.sdk.qcloud.com/trtc/webrtc/doc/en/global.html#MixUser
*/
declare interface MixUser {
/** userId */
userId: string;
/**
* user's roomId. You can use this param to mix streams from diffrent rooms.
* @since 4.11.5
*/
roomId: number | string;
/** Only the user's audio stream is mixed in. If the value is `true`, the following video parameters do not need to be passed in. */
pureAudio: boolean;
/** Width (px) of the user's stream in the mixed stream. The value must be greater than or equal to 0. The default value is 0. */
width?: number;
/** Height (px) of the user's stream in the mixed stream. The value must be greater than or equal to 0. The default value is 0. */
height?: number;
/** X coordinate (px) of the user's stream in the mixed stream, starting from the upper left corner of the mixed stream. The value must be greater than or equal to 0. The default value is 0. */
locationX?: number;
/** Y coordinate (px) of the user's stream in the mixed stream, starting from the upper left corner of the mixed stream. The value must be greater than or equal to 0. The default value is 0. */
locationY?: number;
/** Layer number of the user's stream in the mixed stream. The value range is [1, 15]. If `pureAudio` is `false`, `zOrder` must be passed in. */
zOrder?: number;
/** Remote stream type in manual mode. This parameter does not need to be set in preset layout mode. Valid values: `main` (primary stream), `auxiliary` (substream of screen sharing) */
streamType?: RemoteStreamType;
renderMode?: 0 | 1 | 2;
}
declare interface PublishCDNStreamOptions {
/** Custom stream ID. Default value: ${sdkAppId}_${roomId}_${userId}_main */
streamId?: string;
streamType?: RemoteStreamType;
/** Tencent Cloud live streaming `appId` */
appId?: number;
/** Tencent Cloud live streaming `bizId` */
bizId?: number;
/** Specified CDN address for stream publishing */
url?: string;
}
declare const enum PlayerState {

@@ -291,23 +336,9 @@ PAUSED = "PAUSED",

}
declare interface Core {
room: IRoom;
innerEmitter: EventEmitter<InnerEventTypes>;
constants: typeof constants;
environment: typeof environment;
utils: typeof utils;
log: Logger;
eventLogger: typeof eventLogger;
clearStarted(plugin: IPlugin, group: string): void;
declare interface AudioSourceOptions {
id: string;
url: string;
loop?: boolean;
volume?: number;
operation?: string;
}
declare interface IPlugin<T = any> {
getName(): string;
getAlias(): string;
getGroup(option: T): string;
getValidateRule(method: 'start' | 'update' | 'stop'): ValidateRule | ValidateRule[];
start(option: T): void;
update(option: T): void;
stop(option: T): void;
}

@@ -326,2 +357,1 @@

{
"name": "trtc-sdk-v5",
"version": "5.5.0-beta.5",
"version": "5.5.0-beta.6",
"description": "Tencent Cloud RTC SDK for Web",

@@ -5,0 +5,0 @@ "main": "trtc.js",

{
"name": "@rtc-plugin/cdn-streaming",
"version": "5.4.3",
"version": "5.5.0-beta.6",
"description": "TRTC Web SDK 5.x CDN streaming plugin",

@@ -5,0 +5,0 @@ "main": "./cdn-streaming.esm.js",

{
"name": "@rtc-plugin/virtual-background",
"version": "5.4.3",
"version": "5.5.0-beta.6",
"description": "TRTC Web SDK 5.x virtual background plugin",

@@ -5,0 +5,0 @@ "main": "./virtual-background.esm.js",

{
"name": "@rtc-plugin/watermark",
"version": "5.4.3",
"version": "5.5.0-beta.6",
"description": "TRTC Web SDK 5.x watermark plugin",

@@ -5,0 +5,0 @@ "main": "./watermark.esm.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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