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

zby-live-sdk

Package Overview
Dependencies
Maintainers
0
Versions
370
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zby-live-sdk - npm Package Compare versions

Comparing version 1.0.49-beta-20240820 to 1.0.49-beta-20240909

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="1.0.49-beta-20240909"></a>
## [1.0.49-beta-20240909] (2024-09-09)
### Features
* 增加自定义虚拟背景图片功能 ([44de0d7])
<a name="1.0.49-beta-20240820"></a>

@@ -7,0 +17,0 @@ ## [1.0.49-beta-20240820] (2024-08-20)

2

package.json
{
"name": "zby-live-sdk",
"version": "1.0.49-beta-20240820",
"version": "1.0.49-beta-20240909",
"main": "dist/zby-live-sdk.cjs.js",

@@ -5,0 +5,0 @@ "module": "dist/zby-live-sdk.esm.js",

@@ -2117,3 +2117,3 @@ /**

export const setBeautifyParam2 = (mode, submode, value, streamId, idx) => {
export const setBeautifyParam2 = (mode, submode, value, streamId, idx, image) => {
switch (window.zbyAVSDK_init_sdk_type) {

@@ -2123,9 +2123,9 @@ case RTC:

case ZEGO:
return zegosdk.setBeautifyParam2(mode, submode, value, streamId, idx);
return zegosdk.setBeautifyParam2(mode, submode, value, streamId, idx, image);
case TALRTC:
case NERTC:
case VOLCRTC:
return talrtcsdk.setBeautifyParam(mode, submode, value, streamId);
return talrtcsdk.setBeautifyParam(mode, submode, value, streamId, image);
default:
return zegosdk.setBeautifyParam2(mode, submode, value, streamId, idx);
return zegosdk.setBeautifyParam2(mode, submode, value, streamId, idx, image);
}

@@ -2132,0 +2132,0 @@ };

@@ -344,5 +344,6 @@ import zbyAVSDK from './zby-av-sdk/zby-av-sdk';

* @param {string?} streamId 流id
* @param {string?} image 图片地址
*/
setBackground(options, streamId, idx) {
defaultApi.writeLog(`sdk action: setBackground ${JSON.stringify(options)}, streamId: ${streamId}, idx: ${idx}`);
setBackground(options, streamId, idx, image) {
defaultApi.writeLog(`sdk action: setBackground ${JSON.stringify(options)}, streamId: ${streamId}, idx: ${idx}, image: ${image}`);
if (!options || !options.type) {

@@ -355,7 +356,7 @@ const res1 = zbyAVSDK.setBeautifyParam2(605, 1, 0, streamId, idx); // 关闭背景虚化

if (options.type === 'blur') {
return zbyAVSDK.setBeautifyParam2(605, 1, 100, streamId, idx);
return zbyAVSDK.setBeautifyParam2(605, 1, 100, streamId, idx, image);
}
if (options.type === 'image') {
return zbyAVSDK.setBeautifyParam2(901, 0, 100, streamId, idx);
return zbyAVSDK.setBeautifyParam2(901, 0, 100, streamId, idx, image);
}

@@ -362,0 +363,0 @@

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