zby-live-sdk
Advanced tools
Comparing version 1.0.49-beta-20240820 to 1.0.49-beta-20240909
@@ -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) |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2097412
25697