@rongcloud/plugin-rtc 5.6.17-alpha.1 → 5.6.18-alpha.1
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/dist/index.d.ts +11 -13
- package/dist/index.esm.js +86 -62
- package/dist/index.umd.js +86 -62
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, BasicLogger, INaviInfo, EnableLogL, RTCPluginContext, Codec, IPromiseResult, ErrorCode, KVString, IRuntime, IAsyncRes, RCConnectionStatus, ConversationType, ISendMsgOptions, IReceivedMessage, RTCMode as RTCMode$1, IPluginGenerator } from '@rongcloud/engine';
|
|
1
|
+
import { EventEmitter, BasicLogger, INaviInfo, LogL, EnableLogL, RTCPluginContext, Codec, IPromiseResult, ErrorCode, KVString, IRuntime, IAsyncRes, RCConnectionStatus, ConversationType, ISendMsgOptions, IReceivedMessage, RTCMode as RTCMode$1, IPluginGenerator } from '@rongcloud/engine';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* 错误码,与移动端对齐
|
|
@@ -122,7 +122,8 @@ declare enum RCFrameRate {
|
|
|
122
122
|
FPS_10 = "FPS_10",
|
|
123
123
|
FPS_15 = "FPS_15",
|
|
124
124
|
FPS_24 = "FPS_24",
|
|
125
|
-
FPS_30 = "FPS_30"
|
|
125
|
+
FPS_30 = "FPS_30",
|
|
126
|
+
FPS_60 = "FPS_60"
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
declare enum RCResolution {
|
|
@@ -144,6 +145,8 @@ declare enum RCResolution {
|
|
|
144
145
|
W960_H720 = "W960_H720",
|
|
145
146
|
W1280_H720 = "W1280_H720",
|
|
146
147
|
W1920_H1080 = "W1920_H1080",
|
|
148
|
+
W2560_H1440 = "W2560_H1440",
|
|
149
|
+
W3840_H2160 = "W3840_H2160",
|
|
147
150
|
W144_H176 = "W144_H176",
|
|
148
151
|
W144_H256 = "W144_H256",
|
|
149
152
|
W180_H240 = "W180_H240",
|
|
@@ -156,7 +159,9 @@ declare enum RCResolution {
|
|
|
156
159
|
W480_H848 = "W480_H848",
|
|
157
160
|
W720_H1280 = "W720_H1280",
|
|
158
161
|
W720_H960 = "W720_H960",
|
|
159
|
-
W1080_H1920 = "W1080_H1920"
|
|
162
|
+
W1080_H1920 = "W1080_H1920",
|
|
163
|
+
W1440_H2560 = "W1440_H2560",
|
|
164
|
+
W2160_H3840 = "W2160_H3840"
|
|
160
165
|
}
|
|
161
166
|
|
|
162
167
|
/**
|
|
@@ -1867,9 +1872,10 @@ interface IRCRTCInitOptions {
|
|
|
1867
1872
|
* * 2 - WARN
|
|
1868
1873
|
* * 1 - ERROR
|
|
1869
1874
|
*/
|
|
1870
|
-
logLevel?:
|
|
1875
|
+
logLevel?: LogL.ERROR | LogL.WARN | LogL.INFO | LogL.DEBUG;
|
|
1871
1876
|
/**
|
|
1872
|
-
*
|
|
1877
|
+
* (已废弃)~修改默认的 log 输出函数~
|
|
1878
|
+
* @deprecated 5.6.1
|
|
1873
1879
|
*/
|
|
1874
1880
|
logStdout?: (logLevel: EnableLogL, content: string) => void;
|
|
1875
1881
|
/**
|
|
@@ -3046,10 +3052,6 @@ declare class RCAudienceLivingRoom {
|
|
|
3046
3052
|
code: RCRTCCode;
|
|
3047
3053
|
failedList?: ISubscribeAttr[];
|
|
3048
3054
|
}>;
|
|
3049
|
-
addSubscribeTask(tracks: (RCRemoteTrack | ISubscribeAttr)[]): Promise<{
|
|
3050
|
-
code: RCRTCCode;
|
|
3051
|
-
failedList?: ISubscribeAttr[];
|
|
3052
|
-
}>;
|
|
3053
3055
|
private __unsubscribe;
|
|
3054
3056
|
/**
|
|
3055
3057
|
* 取消订阅资源
|
|
@@ -3059,10 +3061,6 @@ declare class RCAudienceLivingRoom {
|
|
|
3059
3061
|
code: RCRTCCode;
|
|
3060
3062
|
failedList?: ISubscribeAttr[];
|
|
3061
3063
|
}>;
|
|
3062
|
-
addUnsubscribeTask(tracks: RCRemoteTrack[]): Promise<{
|
|
3063
|
-
code: RCRTCCode;
|
|
3064
|
-
failedList?: ISubscribeAttr[];
|
|
3065
|
-
}>;
|
|
3066
3064
|
/**
|
|
3067
3065
|
* 退出房间并销毁当前房间实例,退出后该房间的所有方法将不可用
|
|
3068
3066
|
*/
|