@rongcloud/plugin-call-plus 2.44.0 → 2.46.0
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/index.d.ts +27 -2
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +3 -3
- package/wrapper/index.esm.js +1 -1
- package/wrapper/index.js +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RCConnectionStatus, EventEmitter, BasicLogger, PluginContext, IRuntime, EnableLogL, IReceivedMessage, IPluginGenerator } from '@rongcloud/engine';
|
|
2
|
-
import
|
|
2
|
+
import * as _rongcloud_plugin_rtc from '@rongcloud/plugin-rtc';
|
|
3
|
+
import { RCRemoteTrack, RCTrack, ISubscribeAttr, RCRTCCode, RCLocalAudioTrack, RCRemoteAudioTrack, RCRTCClient, RCRTCRoom, RCLocalTrack, IPublishAttrs, RCFrameRate, RCResolution } from '@rongcloud/plugin-rtc';
|
|
3
4
|
export { RCFrameRate as RCCallPlusFrameRate, RCResolution as RCCallPlusResolution } from '@rongcloud/plugin-rtc';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -2363,7 +2364,7 @@ declare class RTCModule extends EventEmitter {
|
|
|
2363
2364
|
publish(tracks: (RCLocalTrack | IPublishAttrs)[], traceId: string): Promise<{
|
|
2364
2365
|
code: number;
|
|
2365
2366
|
}>;
|
|
2366
|
-
publishVideoTrack(): Promise<IPubSuccessRes>;
|
|
2367
|
+
publishVideoTrack(): Promise<_rongcloud_plugin_rtc.IPubSuccessRes>;
|
|
2367
2368
|
setVideoView(list: {
|
|
2368
2369
|
userId: string;
|
|
2369
2370
|
videoElement: HTMLVideoElement;
|
|
@@ -3305,6 +3306,20 @@ interface IAndroidPushConfig {
|
|
|
3305
3306
|
* 小米的 channelId
|
|
3306
3307
|
*/
|
|
3307
3308
|
channelIdMi?: string;
|
|
3309
|
+
/**
|
|
3310
|
+
* 小米私信推送模板 ID
|
|
3311
|
+
* @since 5.46.0
|
|
3312
|
+
*/
|
|
3313
|
+
templateIdMi?: string;
|
|
3314
|
+
/**
|
|
3315
|
+
* 小米私信推送模板参数,参数名和参数值需与小米模板定义一致
|
|
3316
|
+
*
|
|
3317
|
+
* 每个模板最多支持 9 个参数,参数值长度为 1~128 字符,
|
|
3318
|
+
* 不能为纯空格,且不支持 emoji 和 Unicode Other Symbol 字符。
|
|
3319
|
+
* 最终的模板匹配和请求长度由服务端与小米推送校验。
|
|
3320
|
+
* @since 5.46.0
|
|
3321
|
+
*/
|
|
3322
|
+
templateParamMi?: Record<string, string>;
|
|
3308
3323
|
/**
|
|
3309
3324
|
* 小米 Large icon 链接
|
|
3310
3325
|
* Large icon 可以出现在大图版和多字版消息中,显示在右边。
|
|
@@ -3429,6 +3444,16 @@ declare class RCCallPlusAndroidPushConfigBuilder {
|
|
|
3429
3444
|
* 设置小米的 channelId
|
|
3430
3445
|
*/
|
|
3431
3446
|
setChannelIdMi(channelIdMi: string): this;
|
|
3447
|
+
/**
|
|
3448
|
+
* 设置小米私信推送模板 ID
|
|
3449
|
+
* @since 5.46.0
|
|
3450
|
+
*/
|
|
3451
|
+
setTemplateIdMi(templateIdMi: string): this;
|
|
3452
|
+
/**
|
|
3453
|
+
* 设置小米私信推送模板参数,参数名和参数值需与小米模板定义一致
|
|
3454
|
+
* @since 5.46.0
|
|
3455
|
+
*/
|
|
3456
|
+
setTemplateParamMi(templateParamMi: Record<string, string>): this;
|
|
3432
3457
|
/**
|
|
3433
3458
|
* 设置小米 Large icon 链接
|
|
3434
3459
|
* @deprecated 由于小米官方已停止支持该能力,该方法已失效
|