trtc-electron-sdk 11.9.604-beta.3 → 11.9.604
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/liteav/trtc.d.ts +1 -0
- package/liteav/trtc.js +8 -0
- package/liteav/trtc_define.d.ts +6 -0
- package/package.json +1 -1
package/liteav/trtc.d.ts
CHANGED
|
@@ -2432,6 +2432,7 @@ declare class TRTCCloud extends EventEmitter {
|
|
|
2432
2432
|
setPluginParams(type: TRTCPluginType, options: TRTCVideoProcessPluginOptions | TRTCMediaEncryptDecryptPluginOptions): void;
|
|
2433
2433
|
private _setVideoProcessPluginParams;
|
|
2434
2434
|
private _setMediaEncryptDecryptPluginParams;
|
|
2435
|
+
private _setAudioProcessPluginParams;
|
|
2435
2436
|
/**
|
|
2436
2437
|
* 添加插件
|
|
2437
2438
|
*
|
package/liteav/trtc.js
CHANGED
|
@@ -4254,6 +4254,9 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
4254
4254
|
case trtc_define_1.TRTCPluginType.TRTCPluginTypeMediaEncryptDecrypt:
|
|
4255
4255
|
this._setMediaEncryptDecryptPluginParams(options);
|
|
4256
4256
|
break;
|
|
4257
|
+
case trtc_define_1.TRTCPluginType.TRTCPluginTypeAudioProcess:
|
|
4258
|
+
this._setAudioProcessPluginParams(options);
|
|
4259
|
+
break;
|
|
4257
4260
|
default:
|
|
4258
4261
|
this.logger.log(`setPluginConfigParams invalid type:${type}`);
|
|
4259
4262
|
break;
|
|
@@ -4285,6 +4288,11 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
4285
4288
|
this.rtcCloud.enableEncodedDataCustomProcess(!!options.enable);
|
|
4286
4289
|
}
|
|
4287
4290
|
}
|
|
4291
|
+
_setAudioProcessPluginParams(options) {
|
|
4292
|
+
if (options.enable !== undefined) {
|
|
4293
|
+
this.rtcCloud.enableAudioFrameCustomProcess(!!options.enable);
|
|
4294
|
+
}
|
|
4295
|
+
}
|
|
4288
4296
|
/**
|
|
4289
4297
|
* 添加插件
|
|
4290
4298
|
*
|
package/liteav/trtc_define.d.ts
CHANGED
|
@@ -625,6 +625,12 @@ export declare type TRTCVideoProcessPluginOptions = {
|
|
|
625
625
|
export declare type TRTCMediaEncryptDecryptPluginOptions = {
|
|
626
626
|
enable?: boolean;
|
|
627
627
|
};
|
|
628
|
+
/**
|
|
629
|
+
* 音频自定义处理插件选项
|
|
630
|
+
*/
|
|
631
|
+
export declare type TRTCAudioProcessPluginOptions = {
|
|
632
|
+
enable?: boolean;
|
|
633
|
+
};
|
|
628
634
|
/**
|
|
629
635
|
* 云端混流(转码)配置
|
|
630
636
|
*
|