@rongcloud/plugin-rtc 5.6.4-alpha.1 → 5.6.5
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 +14 -22
- package/dist/index.esm.js +16 -29156
- package/dist/index.js +16 -29185
- package/dist/index.umd.js +16 -29189
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.6.
|
|
3
|
-
* CommitId -
|
|
4
|
-
* Fri
|
|
2
|
+
* RCRTC - v5.6.5
|
|
3
|
+
* CommitId - 7e6442f163b046ac139dce6e05dde9b9f54de541
|
|
4
|
+
* Fri Dec 02 2022 12:44:08 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
import { EventEmitter, BasicLogger, INaviInfo, RTCPluginContext, AbsCodec, IPromiseResult, ErrorCode, KVString, IRuntime, IAsyncRes, ConnectionStatus, ConversationType, ISendMsgOptions, IReceivedMessage, EnableLogL, IPluginGenerator } from '@rongcloud/engine';
|
|
@@ -1240,7 +1240,7 @@ declare const keymaps: {
|
|
|
1240
1240
|
readonly RCRTCPBStatusInfo: readonly ["joinTime", "receiveTime", "totalBitRate", "appCPUUsage", "systemCPUUsage", "systemCPUFrequency", "networkStatus", "googleRTTNetwork", "ipAddress", "useReceiveBroadBand", "useSendBroadBand", "packetLossCount", "streams"];
|
|
1241
1241
|
readonly RCRTCPBStreamInfo: readonly ["trackId", "codeName", "volume", "samplingRate", "bitRate", "packetLossRate", "frameRate", "resolution", "blockTime", "jitterData", "nAckCount", "pliCount", "googleRTTTotalTime", "isReceiveFirstFrameRate", "codeType", "isEnabled"];
|
|
1242
1242
|
};
|
|
1243
|
-
|
|
1243
|
+
type RTCKeyMaps = typeof keymaps;
|
|
1244
1244
|
|
|
1245
1245
|
/**
|
|
1246
1246
|
* 设置 RTC 人员 inner、outer 数据
|
|
@@ -1698,6 +1698,7 @@ declare class RCRTCPeerConnection extends EventEmitter {
|
|
|
1698
1698
|
private readonly _isRoomAudience;
|
|
1699
1699
|
protected readonly _initOptions?: IRCRTCInitOptions | undefined;
|
|
1700
1700
|
static __INNER_EVENT_TRACK_READY__: string;
|
|
1701
|
+
static __INNER_AUDIOLEVEL_CHANGE__: string;
|
|
1701
1702
|
private readonly senderAndReciveSize;
|
|
1702
1703
|
private readonly _rtcPeerConn;
|
|
1703
1704
|
private readonly _sdpStrategy;
|
|
@@ -1707,8 +1708,7 @@ declare class RCRTCPeerConnection extends EventEmitter {
|
|
|
1707
1708
|
private _reportStatsTimer;
|
|
1708
1709
|
private _reportR3R4ToPolarisTimer;
|
|
1709
1710
|
private _isDestroyed;
|
|
1710
|
-
private
|
|
1711
|
-
private _originReportStatsData?;
|
|
1711
|
+
private _formatStatsData?;
|
|
1712
1712
|
private _logger;
|
|
1713
1713
|
constructor(
|
|
1714
1714
|
/**
|
|
@@ -1797,10 +1797,6 @@ declare class RCRTCPeerConnection extends EventEmitter {
|
|
|
1797
1797
|
* @returns 返回格式化后的数据
|
|
1798
1798
|
*/
|
|
1799
1799
|
private _getStatsData;
|
|
1800
|
-
getAudioLevelReportData(gap?: number): Promise<{
|
|
1801
|
-
trackId: string;
|
|
1802
|
-
audioLevel: number | null;
|
|
1803
|
-
}[] | undefined>;
|
|
1804
1800
|
/**
|
|
1805
1801
|
* 通知用户质量数据、peerConnection 北极星数据上报
|
|
1806
1802
|
* @todo
|
|
@@ -1810,10 +1806,6 @@ declare class RCRTCPeerConnection extends EventEmitter {
|
|
|
1810
1806
|
* 获取合流音源信息
|
|
1811
1807
|
*/
|
|
1812
1808
|
private _getLiveAudioState;
|
|
1813
|
-
/**
|
|
1814
|
-
* 获取缓存的本地质量数据
|
|
1815
|
-
*/
|
|
1816
|
-
_getCacheStatsData(): Promise<IInnerRCRTCStateReport | undefined>;
|
|
1817
1809
|
/**
|
|
1818
1810
|
* 北极星上报 R3、R4 数据
|
|
1819
1811
|
*/
|
|
@@ -2199,13 +2191,13 @@ declare class Invoker extends BaseInvoker<Store> {
|
|
|
2199
2191
|
destroy(): void;
|
|
2200
2192
|
}
|
|
2201
2193
|
|
|
2202
|
-
|
|
2194
|
+
type ExchangeHooksRes = {
|
|
2203
2195
|
headers: IRTCReqHeader;
|
|
2204
2196
|
pushOtherRooms: IPushOtherRooms[];
|
|
2205
2197
|
};
|
|
2206
|
-
|
|
2198
|
+
type ExchangeHooks = (pcName: string) => ExchangeHooksRes;
|
|
2207
2199
|
|
|
2208
|
-
|
|
2200
|
+
type IOnRecvPKMsg = (msg: IReceivedMessage) => void;
|
|
2209
2201
|
interface IRoomPKEventListener {
|
|
2210
2202
|
/**
|
|
2211
2203
|
* 收到连麦邀请
|
|
@@ -2361,7 +2353,7 @@ declare class RCLivingPKHandler {
|
|
|
2361
2353
|
};
|
|
2362
2354
|
}
|
|
2363
2355
|
|
|
2364
|
-
|
|
2356
|
+
type ResourceMsgContent = {
|
|
2365
2357
|
/**
|
|
2366
2358
|
* 旧版本兼容参数,当收到非 `RTCMessageName.TOTAL_CONTENT_RESOURCE` 时:
|
|
2367
2359
|
* * ignore 值为 `true` 表示该消息由 signal server 向旧版本 RTCLib 提供的兼容消息,无需处理
|
|
@@ -3234,13 +3226,13 @@ declare class Store extends ReadableStore {
|
|
|
3234
3226
|
setRoomStatusVersion(version: number): void;
|
|
3235
3227
|
}
|
|
3236
3228
|
|
|
3237
|
-
|
|
3229
|
+
type ISdpSemantics = 'plan-b' | 'unified-plan';
|
|
3238
3230
|
interface IOfferInfo {
|
|
3239
3231
|
type: 'offer';
|
|
3240
3232
|
sdp: string;
|
|
3241
3233
|
semantics: ISdpSemantics;
|
|
3242
3234
|
}
|
|
3243
|
-
|
|
3235
|
+
type OutboundVideoInfo = {
|
|
3244
3236
|
trackId: string;
|
|
3245
3237
|
simulcast: RCStreamType;
|
|
3246
3238
|
resolution: string;
|
|
@@ -4051,13 +4043,13 @@ interface IAudioLevelChangeHandler {
|
|
|
4051
4043
|
/**
|
|
4052
4044
|
* 房间资源数据
|
|
4053
4045
|
*/
|
|
4054
|
-
|
|
4046
|
+
type RoomData = {
|
|
4055
4047
|
[userId: string]: IPublishedResource[];
|
|
4056
4048
|
};
|
|
4057
4049
|
/**
|
|
4058
4050
|
* IMutilPeerC 中的 track 类型
|
|
4059
4051
|
*/
|
|
4060
|
-
|
|
4052
|
+
type TrackParam = RCLocalTrack | IPublishAttrs | RCRemoteTrack | ISubscribeAttr;
|
|
4061
4053
|
/**
|
|
4062
4054
|
* RCRTCPeerCManager 创建的一条 pcItem 上的数据类型
|
|
4063
4055
|
*/
|