@rongcloud/plugin-rtc 5.4.7-alpha.3 → 5.5.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/core/Invoker.d.ts +3 -2
- package/dist/core/PolarisReporter.d.ts +3 -2
- package/dist/core/RCAudienceClient.d.ts +3 -2
- package/dist/core/RCMediaStreamCapture.d.ts +3 -3
- package/dist/core/RCRTCClient.d.ts +25 -3
- package/dist/core/Store.d.ts +5 -3
- package/dist/core/codec/RTCContext.d.ts +76 -0
- package/dist/core/codec/interface.d.ts +168 -0
- package/dist/core/codec/proto.d.ts +94 -0
- package/dist/core/codec/rtc-helper.d.ts +17 -0
- package/dist/core/command/JoinRoomCommand.d.ts +4 -1
- package/dist/core/command/OnSignalReconnectedCommand.d.ts +1 -1
- package/dist/core/command/PubCommand.d.ts +34 -0
- package/dist/core/command/RTCIdentityChangeCommand.d.ts +2 -1
- package/dist/core/constants.d.ts +2 -0
- package/dist/core/enums/RCLoggerTag.d.ts +9 -1
- package/dist/core/enums/RCRTCCode.d.ts +3 -0
- package/dist/core/enums/RCResolution.d.ts +8 -8
- package/dist/core/enums/RTCJoinType.d.ts +18 -0
- package/dist/core/enums/RTCMode.d.ts +22 -0
- package/dist/core/enums/inner/LiveRole.d.ts +11 -0
- package/dist/core/enums/inner/LiveType.d.ts +14 -0
- package/dist/core/enums/inner/RTCApiType.d.ts +5 -0
- package/dist/core/enums/inner/RTCIdentityChangeType.d.ts +5 -0
- package/dist/core/interfaces.d.ts +11 -0
- package/dist/core/room/Pinger.d.ts +3 -2
- package/dist/core/room/RCAbstractRoom.d.ts +7 -3
- package/dist/core/room/RCAudienceLivingRoom.d.ts +7 -2
- package/dist/core/room/RCLivingPKHandler.d.ts +3 -2
- package/dist/core/room/RCLivingRoom.d.ts +6 -2
- package/dist/core/room/RCRTCRoom.d.ts +5 -3
- package/dist/core/service/RCMediaService.d.ts +27 -2
- package/dist/core/service/helper.d.ts +11 -1
- package/dist/core/service/interface.d.ts +6 -1
- package/dist/core/webrtc/sdp/ASdpBuilder.d.ts +5 -0
- package/dist/helper.d.ts +7 -1
- package/dist/index.d.ts +399 -31
- package/dist/index.esm.js +15 -19373
- package/dist/index.js +15 -19405
- package/dist/index.umd.js +15 -19409
- package/package.json +3 -3
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 音视频模式
|
|
3
|
+
*/
|
|
4
|
+
export declare enum RTCMode {
|
|
5
|
+
/**
|
|
6
|
+
* 普通音视频模式
|
|
7
|
+
*/
|
|
8
|
+
RTC = 0,
|
|
9
|
+
/**
|
|
10
|
+
* 直播模式
|
|
11
|
+
*/
|
|
12
|
+
LIVE = 2,
|
|
13
|
+
/**
|
|
14
|
+
* 跨应用多人房间
|
|
15
|
+
*/
|
|
16
|
+
CROSS_MUTI = 7,
|
|
17
|
+
/**
|
|
18
|
+
* 跨应用直播
|
|
19
|
+
*/
|
|
20
|
+
CROSS_LIVE = 8
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=RTCMode.d.ts.map
|
|
@@ -14,6 +14,7 @@ import { RCRTCLiveRole } from './enums/RCRTCLiveRole';
|
|
|
14
14
|
import RCRTCPeerConnection from './webrtc/RCRTCPeerConnection';
|
|
15
15
|
import { RCRTCCode } from './enums/RCRTCCode';
|
|
16
16
|
import { IExchangeResponse } from './service/interface';
|
|
17
|
+
import { IServerRTCRoomEntry } from './codec/interface';
|
|
17
18
|
export interface IRCTrackBitrate {
|
|
18
19
|
/**
|
|
19
20
|
* 最大码率
|
|
@@ -928,4 +929,14 @@ export interface IPubTaskRes {
|
|
|
928
929
|
data?: IExchangeResponse | undefined;
|
|
929
930
|
tracks: RCLocalTrack[];
|
|
930
931
|
}
|
|
932
|
+
export interface IChrmKVPullData {
|
|
933
|
+
kvEntries: IServerRTCRoomEntry[];
|
|
934
|
+
isFullUpdate?: boolean;
|
|
935
|
+
syncTime?: number;
|
|
936
|
+
}
|
|
937
|
+
export interface IServerRTCKVList {
|
|
938
|
+
entries: IServerRTCRoomEntry[];
|
|
939
|
+
bFullUpdate: boolean;
|
|
940
|
+
syncTime: number;
|
|
941
|
+
}
|
|
931
942
|
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { RTCMode, RTCPluginContext } from '@rongcloud/engine';
|
|
2
1
|
import { RCRTCPingResult } from '../enums/RCRTCPingResult';
|
|
2
|
+
import { RTCContext } from '../codec/RTCContext';
|
|
3
|
+
import { RTCMode } from '../enums/RTCMode';
|
|
3
4
|
/**
|
|
4
5
|
* RTCPing 类,在下发的 ping 超时时间 _offlineKickTime 内,未能 Ping 成功则认为 ping 失败
|
|
5
6
|
*/
|
|
@@ -13,7 +14,7 @@ export default class Pinger {
|
|
|
13
14
|
* 记录最近一次成功的 Ping 时间戳
|
|
14
15
|
*/
|
|
15
16
|
private _latestTimestamp;
|
|
16
|
-
constructor(_roomId: string, _roomMode: RTCMode, _context:
|
|
17
|
+
constructor(_roomId: string, _roomMode: RTCMode, _context: RTCContext, _gap?: number, _offlineKickTime?: number);
|
|
17
18
|
/**
|
|
18
19
|
* Ping 失败回调,当失败次数超出 `MAX_FAILED` 时,该方法将被调用
|
|
19
20
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ErrorCode,
|
|
1
|
+
import { ErrorCode, IReceivedMessage, KVString, IRuntime, EventEmitter } from '@rongcloud/engine';
|
|
2
2
|
import { RCRTCMessageType } from '../enums/inner/RCRTCMessageType';
|
|
3
3
|
import { IPublishAttrs, IRCRTCReportListener, IRoomEventListener, ISubscribeAttr, IRCRTCInitOptions, IAudioLevelChangeHandler, IPubSuccessRes } from '../interfaces';
|
|
4
4
|
import { IPushOtherRooms, IRTCReqHeader, RCMediaService } from '../service';
|
|
@@ -13,6 +13,10 @@ import RCRTCPeerCManager from '../webrtc/RCRTCPeerCManager';
|
|
|
13
13
|
import { Invoker } from '../Invoker';
|
|
14
14
|
import { ReadableStore } from '../Store';
|
|
15
15
|
import { ResourceMsgContent } from '../command/ParseRemoteResCommand';
|
|
16
|
+
import { RTCContext } from '../codec/RTCContext';
|
|
17
|
+
import { RTCMode } from '../enums/RTCMode';
|
|
18
|
+
import { RTCJoinType } from '../enums/RTCJoinType';
|
|
19
|
+
import { IRTCUserData, IJoinRTCRoomData } from '../codec/interface';
|
|
16
20
|
export declare const RCAbstractRoomEvent: {
|
|
17
21
|
LEAVE: string;
|
|
18
22
|
};
|
|
@@ -20,7 +24,7 @@ export declare const RCAbstractRoomEvent: {
|
|
|
20
24
|
* 房间抽象基类
|
|
21
25
|
*/
|
|
22
26
|
export default abstract class RCAbstractRoom extends EventEmitter {
|
|
23
|
-
protected readonly _context:
|
|
27
|
+
protected readonly _context: RTCContext;
|
|
24
28
|
protected readonly _runtime: IRuntime;
|
|
25
29
|
readonly _roomId: string;
|
|
26
30
|
protected readonly _service: RCMediaService;
|
|
@@ -48,7 +52,7 @@ export default abstract class RCAbstractRoom extends EventEmitter {
|
|
|
48
52
|
protected _peerCManager: RCRTCPeerCManager | null;
|
|
49
53
|
protected readonly _invoker: Invoker;
|
|
50
54
|
protected readonly _store: ReadableStore;
|
|
51
|
-
constructor(_context:
|
|
55
|
+
constructor(_context: RTCContext, _runtime: IRuntime, _roomId: string, _roomMode: RTCMode, _service: RCMediaService, _initOptions: IRCRTCInitOptions, isUpgrade?: boolean, isMainRoom?: boolean,
|
|
52
56
|
/**
|
|
53
57
|
* 是否使用多 peerConnection
|
|
54
58
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRuntime } from '@rongcloud/engine';
|
|
2
2
|
import { RCRemoteAudioTrack, RCRemoteTrack, RCRemoteVideoTrack } from '../tracks/RCRemoteTrack';
|
|
3
3
|
import { RCRTCCode } from '../enums/RCRTCCode';
|
|
4
4
|
import { IRCRTCInitOptions, IRCRTCReportListener, IRCRTCTrackEventListener, ISubscribeAttr, IAudioLevelChangeHandler } from '../interfaces';
|
|
@@ -9,6 +9,8 @@ import { RCResolution } from '../enums/RCResolution';
|
|
|
9
9
|
import { RCFrameRate } from '../enums/RCFrameRate';
|
|
10
10
|
import { RCLivingType } from '../enums/RCLivingType';
|
|
11
11
|
import RCRTCPeerConnection from '../webrtc/RCRTCPeerConnection';
|
|
12
|
+
import { RTCContext } from '../codec/RTCContext';
|
|
13
|
+
import { IServerRTCRoomEntry } from '../codec/interface';
|
|
12
14
|
export interface IAudienceRoomEventListener extends IRCRTCTrackEventListener {
|
|
13
15
|
/**
|
|
14
16
|
* 主播加入
|
|
@@ -131,10 +133,13 @@ export default class RCAudienceLivingRoom {
|
|
|
131
133
|
* peerConnection 管理类
|
|
132
134
|
*/
|
|
133
135
|
private _peerCManager;
|
|
134
|
-
|
|
136
|
+
private _isPulling;
|
|
137
|
+
private _pullTime;
|
|
138
|
+
constructor(_context: RTCContext, _runtime: IRuntime, _initOptions: IRCRTCInitOptions, _roomId: string, _joinResData: {
|
|
135
139
|
token: string;
|
|
136
140
|
kvEntries: IServerRTCRoomEntry[];
|
|
137
141
|
}, livingType: RCLivingType, _useMutilPeerC?: boolean | undefined, _clientSessionId?: string);
|
|
142
|
+
private _startPull;
|
|
138
143
|
/**
|
|
139
144
|
* 解析服务端返回的 KV 数据,赋值 room 内数据
|
|
140
145
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ExchangeHooks } from '../command/ExchangeWithPushOtherRoomCommand';
|
|
2
|
-
import { ErrorCode, IReceivedMessage, IRuntime
|
|
2
|
+
import { ErrorCode, IReceivedMessage, IRuntime } from '@rongcloud/engine';
|
|
3
3
|
import { RCRTCCode } from '../enums/RCRTCCode';
|
|
4
4
|
import { IPKInfo, IPKEndInfo, IPKInviteAnswerInfo, IPKInviteInfo, IRCRTCInitOptions, IReqResPKOptions } from '../interfaces';
|
|
5
5
|
import { Invoker } from '../Invoker';
|
|
6
6
|
import RCMediaService from '../service/RCMediaService';
|
|
7
7
|
import { RCRemoteTrack } from '../tracks/RCRemoteTrack';
|
|
8
8
|
import RCLivingRoom from './RCLivingRoom';
|
|
9
|
+
import { RTCContext } from '../codec/RTCContext';
|
|
9
10
|
export declare type IOnRecvPKMsg = (msg: IReceivedMessage) => void;
|
|
10
11
|
export interface IRoomPKEventListener {
|
|
11
12
|
/**
|
|
@@ -53,7 +54,7 @@ export declare class RCLivingPKHandler {
|
|
|
53
54
|
* 跨房间连麦加入的 PK 房间
|
|
54
55
|
*/
|
|
55
56
|
private _joinedPKRooms;
|
|
56
|
-
constructor(_invoker: Invoker, _PKInfo: IPKInfo, _hooks: ExchangeHooks, _context:
|
|
57
|
+
constructor(_invoker: Invoker, _PKInfo: IPKInfo, _hooks: ExchangeHooks, _context: RTCContext, _runtime: IRuntime, _service: RCMediaService, _initOptions: IRCRTCInitOptions,
|
|
57
58
|
/**
|
|
58
59
|
* 主直播房间
|
|
59
60
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRuntime, ErrorCode } from '@rongcloud/engine';
|
|
2
2
|
import { RCRTCCode } from '../enums/RCRTCCode';
|
|
3
3
|
import { IRCRTCInitOptions, IPublishAttrs, IPubSuccessRes } from '../interfaces';
|
|
4
4
|
import { RCMediaService, ICDNUris, IPushOtherRooms } from '../service';
|
|
@@ -10,6 +10,10 @@ import { RCInnerCDNPushMode } from '../enums/RCInnerCDNPushMode';
|
|
|
10
10
|
import { RCLivingPKHandler } from './RCLivingPKHandler';
|
|
11
11
|
import { RCLocalTrack } from '../tracks/RCLocalTrack';
|
|
12
12
|
import { ResourceMsgContent } from '../command/ParseRemoteResCommand';
|
|
13
|
+
import { RTCContext } from '../codec/RTCContext';
|
|
14
|
+
import { RTCMode } from '../enums/RTCMode';
|
|
15
|
+
import { RTCJoinType } from '../enums/RTCJoinType';
|
|
16
|
+
import { IJoinRTCRoomData, IRTCUserData } from '../codec/interface';
|
|
13
17
|
/**
|
|
14
18
|
* 直播房间
|
|
15
19
|
*/
|
|
@@ -20,7 +24,7 @@ export default class RCLivingRoom extends RCAbstractRoom {
|
|
|
20
24
|
* 跨房间连麦管理器
|
|
21
25
|
*/
|
|
22
26
|
private _roomPKHandler;
|
|
23
|
-
constructor(context:
|
|
27
|
+
constructor(context: RTCContext, runtime: IRuntime, roomId: string, service: RCMediaService, initOptions: IRCRTCInitOptions, _livingType: RCLivingType, isUpgrade?: boolean, isMainRoom?: boolean,
|
|
24
28
|
/**
|
|
25
29
|
* 是否使用多 peerConnection
|
|
26
30
|
*/
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRuntime } from '@rongcloud/engine';
|
|
2
2
|
import { IRCRTCInitOptions } from '../interfaces';
|
|
3
3
|
import RCMediaService from '../service/RCMediaService';
|
|
4
4
|
import RCAbstractRoom from './RCAbstractRoom';
|
|
5
|
+
import { RTCContext } from '../codec/RTCContext';
|
|
6
|
+
import { RTCMode } from '../enums/RTCMode';
|
|
5
7
|
/**
|
|
6
8
|
* 普通音视频房间
|
|
7
9
|
*/
|
|
8
10
|
export default class RCRTCRoom extends RCAbstractRoom {
|
|
9
|
-
constructor(context:
|
|
11
|
+
constructor(context: RTCContext, runtime: IRuntime, roomId: string, service: RCMediaService, initOptions: IRCRTCInitOptions, isUpgrade?: boolean, isMainRoom?: boolean,
|
|
10
12
|
/**
|
|
11
13
|
* 是否使用多 peerConnection
|
|
12
14
|
*/
|
|
13
|
-
useMutilPeerC?: boolean, _clientSessionId?: string);
|
|
15
|
+
useMutilPeerC?: boolean, _clientSessionId?: string, roomType?: RTCMode);
|
|
14
16
|
}
|
|
15
17
|
//# sourceMappingURL=RCRTCRoom.d.ts.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IRuntime
|
|
1
|
+
import { IRuntime } from '@rongcloud/engine';
|
|
2
2
|
import { RCRTCCode } from '../enums/RCRTCCode';
|
|
3
3
|
import { IRTCReqHeader, IExchangeReqBody, IExchangeResponse, IMCUReqHeaders, IBroadcastSubReqBody, IBroadcastSubRespBody, ICDNPlayUrlReqHeaders, ICDNPlayUrlResponse } from './interface';
|
|
4
4
|
import { IMCUConfig, ISetEnableCDN } from './mcu-interface';
|
|
5
|
+
import { RTCContext } from '../codec/RTCContext';
|
|
5
6
|
export default class RCMediaService {
|
|
6
7
|
private readonly _runtime;
|
|
7
8
|
private readonly _context;
|
|
@@ -33,7 +34,19 @@ export default class RCMediaService {
|
|
|
33
34
|
* MCU 服务地址
|
|
34
35
|
*/
|
|
35
36
|
private _configUrl;
|
|
36
|
-
|
|
37
|
+
/**
|
|
38
|
+
* 嗅探中获取的媒体服务地址
|
|
39
|
+
*/
|
|
40
|
+
private static isDetector;
|
|
41
|
+
/**
|
|
42
|
+
* 嗅探中获取的媒体服务地址
|
|
43
|
+
*/
|
|
44
|
+
private static msInDetector;
|
|
45
|
+
private static detectorTime;
|
|
46
|
+
private static detectValidMinute;
|
|
47
|
+
private static naviRefetchCount;
|
|
48
|
+
private _msList;
|
|
49
|
+
constructor(_runtime: IRuntime, _context: RTCContext,
|
|
37
50
|
/**
|
|
38
51
|
* 自定义 MediaServer 地址,当有值时,不再使用导航内的地址
|
|
39
52
|
*/
|
|
@@ -42,7 +55,19 @@ export default class RCMediaService {
|
|
|
42
55
|
* 请求超时时长
|
|
43
56
|
*/
|
|
44
57
|
_timeout?: number);
|
|
58
|
+
detectorMediaSever(): void;
|
|
59
|
+
/**
|
|
60
|
+
* 地址探测
|
|
61
|
+
* RTC 初始化时检测是否可以拿到 navi,可以拿到开始嗅探
|
|
62
|
+
* 拿不到等 IM 链接成功后,再回调中调用开始嗅探
|
|
63
|
+
*/
|
|
64
|
+
private _getDetectorUrls;
|
|
45
65
|
getNaviMS(): string[];
|
|
66
|
+
/**
|
|
67
|
+
* _mslist 列表排序:[_clusterId, ping1, 主域名,ping2, ..., pingN, 备用域名list ]
|
|
68
|
+
* ping1 :ping 结果返回最快值
|
|
69
|
+
*/
|
|
70
|
+
private setMediaServiceList;
|
|
46
71
|
/**
|
|
47
72
|
* 发送请求,请求发送若失败,会继续尝试使用后续可用地址直到无地址可用,此时认为请求失败
|
|
48
73
|
* @param path
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import { INaviInfo } from '@rongcloud/engine';
|
|
1
|
+
import { INaviInfo, IRuntime } from '@rongcloud/engine';
|
|
2
2
|
export declare const getUUID: () => string;
|
|
3
|
+
export declare const randomNum: (min: number, max: number) => number;
|
|
3
4
|
/**
|
|
4
5
|
* 解析导航数据获取 RTC Server 地址
|
|
5
6
|
* @param info
|
|
6
7
|
*/
|
|
7
8
|
export declare const parseNaviInfo: (info: INaviInfo | null) => string[];
|
|
9
|
+
/**
|
|
10
|
+
* 根据导航下发探测服务的总域名请求探测地址
|
|
11
|
+
* @param runtime
|
|
12
|
+
*/
|
|
13
|
+
export declare const getDetectorUrls: (runtime: IRuntime, naviInfo: INaviInfo | null) => Promise<{
|
|
14
|
+
fastMediaUrl: string[] | null;
|
|
15
|
+
clientDetectMinute: number;
|
|
16
|
+
status: number;
|
|
17
|
+
}>;
|
|
8
18
|
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RTCMode } from '@rongcloud/engine';
|
|
2
1
|
import { RCRTCCode } from '../enums/RCRTCCode';
|
|
3
2
|
import { RCMediaType } from '../enums/RCMediaType';
|
|
4
3
|
import { RCStreamType } from '../enums/inner/RCStreamType';
|
|
@@ -6,6 +5,7 @@ import { IResource } from '../interfaces';
|
|
|
6
5
|
import { IOfferInfo } from '../webrtc/sdp/ASdpStrategy';
|
|
7
6
|
import { RCInnerCDNPushMode } from '../enums/RCInnerCDNPushMode';
|
|
8
7
|
import { RCInnerCDNBroadcast } from '../enums/RCInnerCDNBroadcast';
|
|
8
|
+
import { RTCMode } from '../enums/RTCMode';
|
|
9
9
|
/**
|
|
10
10
|
* 与 MediaServer 交互所需的 Request Header 信息
|
|
11
11
|
*/
|
|
@@ -202,6 +202,7 @@ export interface ICallEngine4 {
|
|
|
202
202
|
* 到 mediaServer 的请求超时时限,默认 10,有效值 10 - 30。单位:秒
|
|
203
203
|
*/
|
|
204
204
|
timeOut?: number;
|
|
205
|
+
detectorManager?: string;
|
|
205
206
|
}
|
|
206
207
|
export interface IBroadcastSubReqBody {
|
|
207
208
|
/**
|
|
@@ -320,4 +321,8 @@ export interface ICDNUris {
|
|
|
320
321
|
'push_mode': RCInnerCDNPushMode;
|
|
321
322
|
'pull_safe': boolean;
|
|
322
323
|
}
|
|
324
|
+
export interface IDetectoraddrs {
|
|
325
|
+
'detectorAddr': string;
|
|
326
|
+
'clusterId': string;
|
|
327
|
+
}
|
|
323
328
|
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -46,6 +46,11 @@ export default abstract class ASdpBuilder {
|
|
|
46
46
|
* @returns SDP 标头和音频和视频流的字符串。
|
|
47
47
|
*/
|
|
48
48
|
abstract stringify(): string;
|
|
49
|
+
/**
|
|
50
|
+
* 它将 SDP 标头中的 `a=group` 行替换为 `b=AS` 和 `b=TIAS` 行
|
|
51
|
+
* @param {number} maxBitrate - 流的最大比特率。
|
|
52
|
+
*/
|
|
53
|
+
setHeaderBitrate(maxBitrate: number): void;
|
|
49
54
|
/**
|
|
50
55
|
* 它获取音频流并将它们映射到一个新数组,其中每个项目都是调用 setAudioItemBitrate 函数的结果
|
|
51
56
|
* @param {IRCTrackBitrate} bitrate - 以 kbps 为单位的比特率。
|
package/dist/helper.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INaviInfo
|
|
1
|
+
import { INaviInfo } from '@rongcloud/engine';
|
|
2
2
|
import { RCFrameRate } from './core/enums/RCFrameRate';
|
|
3
3
|
import { RCResolution } from './core/enums/RCResolution';
|
|
4
4
|
import { RCRTCMessageType } from './core/enums/inner/RCRTCMessageType';
|
|
@@ -8,6 +8,7 @@ import { RCLocalTrack } from './core/tracks/RCLocalTrack';
|
|
|
8
8
|
import RCRTCPeerConnection from './core/webrtc/RCRTCPeerConnection';
|
|
9
9
|
import { RCRemoteTrack } from './core/tracks/RCRemoteTrack';
|
|
10
10
|
import { RCTrack } from './core/tracks/RCTrack';
|
|
11
|
+
import { IRTCUsers, IServerRTCRoomEntry } from './core/codec/interface';
|
|
11
12
|
/**
|
|
12
13
|
* 构建增量消息内容
|
|
13
14
|
* @param objectname 消息名
|
|
@@ -42,6 +43,10 @@ export declare const isValidLocation: boolean;
|
|
|
42
43
|
* @param track
|
|
43
44
|
*/
|
|
44
45
|
export declare const getVideoTrackInfo: (track: MediaStreamTrack) => {
|
|
46
|
+
/**
|
|
47
|
+
* applyConstraints 方法应用的宽高约束不一定可以立马生效
|
|
48
|
+
* 取值优先 constraints
|
|
49
|
+
*/
|
|
45
50
|
width: number;
|
|
46
51
|
height: number;
|
|
47
52
|
frameRate: number;
|
|
@@ -186,4 +191,5 @@ export declare const parseAudienceRoomData: (roomId: string, kvEntries: IServerR
|
|
|
186
191
|
CDNUris: any;
|
|
187
192
|
};
|
|
188
193
|
export declare const getTrackIdFromAttr: (track: RCTrack | ISubscribeAttr | IPublishAttrs) => string;
|
|
194
|
+
export declare const int64ToTimestamp: (obj: any) => number;
|
|
189
195
|
//# sourceMappingURL=helper.d.ts.map
|