@rongcloud/plugin-rtc 5.4.2 → 5.4.3

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.
Files changed (95) hide show
  1. package/dist/async-task-queue.d.ts +9 -0
  2. package/dist/core/Invoker.d.ts +46 -0
  3. package/dist/core/PolarisReporter.d.ts +35 -0
  4. package/dist/core/RCAudienceClient.d.ts +89 -0
  5. package/dist/core/RCMediaStreamCapture.d.ts +124 -0
  6. package/dist/core/RCRTCClient.d.ts +126 -0
  7. package/dist/core/Store.d.ts +80 -0
  8. package/dist/core/command/BaseCommand.d.ts +22 -0
  9. package/dist/core/command/EnabelInnerCDNCommand.d.ts +16 -0
  10. package/dist/core/command/ExchangeCommand.d.ts +18 -0
  11. package/dist/core/command/ExchangeWithPushOtherRoomCommand.d.ts +22 -0
  12. package/dist/core/command/JoinRoomCommand.d.ts +26 -0
  13. package/dist/core/command/LeaveOtherRoomCommand.d.ts +30 -0
  14. package/dist/core/command/LocalTrackMuteCommand.d.ts +10 -0
  15. package/dist/core/command/MCUConfigFlushCommand.d.ts +18 -0
  16. package/dist/core/command/OnRemoteUserUnpubCommand.d.ts +13 -0
  17. package/dist/core/command/OnSignalReconnectedCommand.d.ts +38 -0
  18. package/dist/core/command/ParseRemoteResCommand.d.ts +38 -0
  19. package/dist/core/command/ParseUserStateCommand.d.ts +57 -0
  20. package/dist/core/command/PubCommand.d.ts +34 -0
  21. package/dist/core/command/RTCIdentityChangeCommand.d.ts +17 -0
  22. package/dist/core/command/RetryExchangeCommand.d.ts +18 -0
  23. package/dist/core/command/SubCommand.d.ts +21 -0
  24. package/dist/core/command/UnpubCommand.d.ts +20 -0
  25. package/dist/core/command/UnpubPrevCommand.d.ts +6 -0
  26. package/dist/core/command/UnsubCommand.d.ts +20 -0
  27. package/dist/core/command/UpdateSubListCommand.d.ts +28 -0
  28. package/dist/core/command/helper.d.ts +20 -0
  29. package/dist/core/constants.d.ts +2 -0
  30. package/dist/core/enums/BackgroundPictureFillMode.d.ts +14 -0
  31. package/dist/core/enums/MixLayoutMode.d.ts +18 -0
  32. package/dist/core/enums/MixVideoRenderMode.d.ts +14 -0
  33. package/dist/core/enums/RCBitrate.d.ts +48 -0
  34. package/dist/core/enums/RCFrameRate.d.ts +7 -0
  35. package/dist/core/enums/RCInnerCDNBroadcast.d.ts +5 -0
  36. package/dist/core/enums/RCInnerCDNModel.d.ts +5 -0
  37. package/dist/core/enums/RCInnerCDNPullIsHttps.d.ts +5 -0
  38. package/dist/core/enums/RCInnerCDNPullKind.d.ts +6 -0
  39. package/dist/core/enums/RCInnerCDNPushMode.d.ts +5 -0
  40. package/dist/core/enums/RCKickType.d.ts +11 -0
  41. package/dist/core/enums/RCLivingType.d.ts +14 -0
  42. package/dist/core/enums/RCLoggerTag.d.ts +629 -0
  43. package/dist/core/enums/RCMediaType.d.ts +18 -0
  44. package/dist/core/enums/RCMixInputFilterMode.d.ts +35 -0
  45. package/dist/core/enums/RCRTCCode.d.ts +86 -0
  46. package/dist/core/enums/RCRTCLiveRole.d.ts +14 -0
  47. package/dist/core/enums/RCRTCPingResult.d.ts +5 -0
  48. package/dist/core/enums/RCRTCResolution.d.ts +102 -0
  49. package/dist/core/enums/RCResolution.d.ts +16 -0
  50. package/dist/core/enums/inner/PolarisRole.d.ts +14 -0
  51. package/dist/core/enums/inner/R2Action.d.ts +14 -0
  52. package/dist/core/enums/inner/R2Status.d.ts +11 -0
  53. package/dist/core/enums/inner/RCRTCMessageType.d.ts +66 -0
  54. package/dist/core/enums/inner/RCStreamType.d.ts +14 -0
  55. package/dist/core/enums/inner/TrackState.d.ts +14 -0
  56. package/dist/core/interfaces.d.ts +912 -0
  57. package/dist/core/room/Pinger.d.ts +35 -0
  58. package/dist/core/room/RCAbstractRoom.d.ts +327 -0
  59. package/dist/core/room/RCAudienceLivingRoom.d.ts +321 -0
  60. package/dist/core/room/RCAudioLevelReport.d.ts +16 -0
  61. package/dist/core/room/RCLivingPKHandler.d.ts +164 -0
  62. package/dist/core/room/RCLivingRoom.d.ts +108 -0
  63. package/dist/core/room/RCLocalMediaStream.d.ts +8 -0
  64. package/dist/core/room/RCMCUConfigBuilder.d.ts +211 -0
  65. package/dist/core/room/RCRTCRoom.d.ts +15 -0
  66. package/dist/core/service/RCMediaService.d.ts +96 -0
  67. package/dist/core/service/helper.d.ts +8 -0
  68. package/dist/core/service/index.d.ts +6 -0
  69. package/dist/core/service/interface.d.ts +323 -0
  70. package/dist/core/service/mcu-interface.d.ts +293 -0
  71. package/dist/core/tracks/RCLocalTrack.d.ts +121 -0
  72. package/dist/core/tracks/RCRemoteTrack.d.ts +23 -0
  73. package/dist/core/tracks/RCTrack.d.ts +91 -0
  74. package/dist/core/webrtc/RCRTCPeerCManager.d.ts +159 -0
  75. package/dist/core/webrtc/RCRTCPeerConnection.d.ts +110 -0
  76. package/dist/core/webrtc/helper.d.ts +26 -0
  77. package/dist/core/webrtc/sdp/ASdpBuilder.d.ts +98 -0
  78. package/dist/core/webrtc/sdp/ASdpStrategy.d.ts +48 -0
  79. package/dist/core/webrtc/sdp/PlanBSdpBuilder.d.ts +20 -0
  80. package/dist/core/webrtc/sdp/PlanBStrategy.d.ts +26 -0
  81. package/dist/core/webrtc/sdp/UnifiedPlanSdpBuilder.d.ts +11 -0
  82. package/dist/core/webrtc/sdp/UnifiedPlanStrategy.d.ts +21 -0
  83. package/dist/core/webrtc/stat-parser/AbstractStatParser.d.ts +117 -0
  84. package/dist/core/webrtc/stat-parser/ChromeStatParser.d.ts +14 -0
  85. package/dist/core/webrtc/stat-parser/FirefoxStatParser.d.ts +14 -0
  86. package/dist/core/webrtc/stat-parser/IStatParser.d.ts +24 -0
  87. package/dist/core/webrtc/stat-parser/SafariStatParser.d.ts +14 -0
  88. package/dist/device.d.ts +6 -0
  89. package/dist/helper.d.ts +189 -0
  90. package/dist/index.d.ts +193 -155
  91. package/dist/index.esm.js +2 -2
  92. package/dist/index.js +1 -1
  93. package/dist/index.umd.js +1 -1
  94. package/dist/logger.d.ts +4 -0
  95. package/package.json +3 -3
@@ -0,0 +1,18 @@
1
+ import { RCRTCCode } from '../enums/RCRTCCode';
2
+ import { Invoker } from '../Invoker';
3
+ import { IMCUConfig, ISetEnableCDN } from '../service';
4
+ import { Store } from '../Store';
5
+ import { BaseCommand } from './BaseCommand';
6
+ export declare class MCUConfigFlushCommand extends BaseCommand<{
7
+ code: RCRTCCode;
8
+ res?: any;
9
+ }> {
10
+ private data;
11
+ private cdnValues;
12
+ constructor(data: IMCUConfig | ISetEnableCDN, cdnValues: IMCUConfig);
13
+ execute(store: Store, invoker: Invoker): Promise<{
14
+ code: RCRTCCode;
15
+ res?: any;
16
+ }>;
17
+ }
18
+ //# sourceMappingURL=MCUConfigFlushCommand.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { Invoker } from '../Invoker';
2
+ import { Store } from '../Store';
3
+ import { RCRemoteTrack } from '../tracks/RCRemoteTrack';
4
+ import { BaseCommand } from './BaseCommand';
5
+ import { Subhook } from './UpdateSubListCommand';
6
+ export declare class OnRemoteUserUnpubCommand extends BaseCommand<void> {
7
+ private subhook;
8
+ private tracks;
9
+ private onTrackUnpublish;
10
+ constructor(subhook: Subhook, tracks: RCRemoteTrack[], onTrackUnpublish: (tracks: RCRemoteTrack[]) => void);
11
+ execute(store: Store, invoker: Invoker): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=OnRemoteUserUnpubCommand.d.ts.map
@@ -0,0 +1,38 @@
1
+ import { IJoinRTCRoomData } from '@rongcloud/engine';
2
+ import { RCLivingType } from '../enums/RCLivingType';
3
+ import { Invoker } from '../Invoker';
4
+ import { Store } from '../Store';
5
+ import { RCRemoteAudioTrack, RCRemoteTrack, RCRemoteVideoTrack } from '../tracks/RCRemoteTrack';
6
+ import { BaseCommand, CommandPriority } from './BaseCommand';
7
+ import { Subhook } from './UpdateSubListCommand';
8
+ export declare type ReconnectedCommandCallback = {
9
+ onPeerClosed: () => void;
10
+ onUserJoin: (userIds: string[]) => void;
11
+ onUserLeave: (userIds: string[]) => void;
12
+ onTrackPublish: (tracks: RCRemoteTrack[]) => void;
13
+ onTrackUnpublish: (tracks: RCRemoteTrack[]) => void;
14
+ onAudioMuteChange: (track: RCRemoteAudioTrack) => void;
15
+ onVideoMuteChange: (track: RCRemoteVideoTrack) => void;
16
+ onCDNEnableChange: (bool: boolean) => void;
17
+ };
18
+ export declare class OnSignalReconnectedCommand extends BaseCommand<{
19
+ data: IJoinRTCRoomData | undefined;
20
+ } | void> {
21
+ private subhook;
22
+ private callbacks;
23
+ private livingType?;
24
+ constructor(subhook: Subhook, callbacks: ReconnectedCommandCallback, livingType?: RCLivingType | undefined);
25
+ /**
26
+ * @override
27
+ */
28
+ get priority(): CommandPriority;
29
+ execute(store: Store, invoker: Invoker): Promise<{
30
+ data: IJoinRTCRoomData | undefined;
31
+ } | void>;
32
+ /**
33
+ * 主播端断线重连后,需更新内存中的 CDN 数据
34
+ * 判断房间内 CDN 状态是否和内存数据一致,不一致时需通知到客户端
35
+ */
36
+ private executeInLivingRoom;
37
+ }
38
+ //# sourceMappingURL=OnSignalReconnectedCommand.d.ts.map
@@ -0,0 +1,38 @@
1
+ import { RCRTCMessageType } from '../enums/inner/RCRTCMessageType';
2
+ import { IPublishedResource } from '../interfaces';
3
+ import { Invoker } from '../Invoker';
4
+ import { ICDNUris } from '../service';
5
+ import { Store } from '../Store';
6
+ import { RCRemoteTrack } from '../tracks/RCRemoteTrack';
7
+ import { BaseCommand, CommandPriority } from './BaseCommand';
8
+ import { Subhook } from './UpdateSubListCommand';
9
+ export declare type ResourceMsgContent = {
10
+ /**
11
+ * 旧版本兼容参数,当收到非 `RTCMessageName.TOTAL_CONTENT_RESOURCE` 时:
12
+ * * ignore 值为 `true` 表示该消息由 signal server 向旧版本 RTCLib 提供的兼容消息,无需处理
13
+ * * 否则认为该消息是由旧版本 RTCLib 主动发出的增量变更消息,需要处理
14
+ */
15
+ ignore?: boolean;
16
+ /**
17
+ * 发布到房间内的资源列表,`RTCMessageName.TOTAL_CONTENT_RESOURCE` 消息携带全量数据,否则为增量数据
18
+ */
19
+ uris: IPublishedResource[];
20
+ cdn_uris?: ICDNUris[];
21
+ };
22
+ export declare class ParseRemoteResCommand extends BaseCommand<void> {
23
+ private msgContent;
24
+ private messageType;
25
+ private senderId;
26
+ private subhook;
27
+ private callback;
28
+ constructor(msgContent: ResourceMsgContent, messageType: RCRTCMessageType.PUBLISH | RCRTCMessageType.UNPUBLISH | RCRTCMessageType.MODIFY | RCRTCMessageType.TOTAL_CONTENT_RESOURCE, senderId: string, subhook: Subhook, callback: {
29
+ onTrackPublish: (tracks: RCRemoteTrack[]) => void;
30
+ onTrackUnublish: (tracks: RCRemoteTrack[]) => void;
31
+ onAudioMute: (track: RCRemoteTrack) => void;
32
+ onVideoMute: (track: RCRemoteTrack) => void;
33
+ onCDNEnableChange: (bool: boolean) => void;
34
+ });
35
+ get priority(): CommandPriority;
36
+ execute(store: Store, invoker: Invoker): Promise<void>;
37
+ }
38
+ //# sourceMappingURL=ParseRemoteResCommand.d.ts.map
@@ -0,0 +1,57 @@
1
+ import { RCRTCLiveRole } from '../enums/RCRTCLiveRole';
2
+ import { Invoker } from '../Invoker';
3
+ import { Store } from '../Store';
4
+ import { BaseCommand, CommandPriority } from './BaseCommand';
5
+ import { Subhook } from './UpdateSubListCommand';
6
+ declare type StateMsgContent = {
7
+ users: {
8
+ userId: string;
9
+ /**
10
+ * 状态值,其中
11
+ * * `0`: 进入房间
12
+ * * `1`: 退出房间
13
+ * * `2`: 用户离线,当作离开房间处理
14
+ */
15
+ state: '0' | '1' | '2';
16
+ /**
17
+ * 角色切换类型,0 代表非切换身份发生的加入、退出房间行为
18
+ */
19
+ switchRoleType: RCRTCLiveRole | 0;
20
+ /**
21
+ * 加房间的身份标识,保存主房间 roomId
22
+ */
23
+ extra?: {
24
+ [key: string]: string;
25
+ };
26
+ }[];
27
+ };
28
+ /**
29
+ * RCRTC:State 消息解析结果
30
+ */
31
+ export interface IParseUserStateRes {
32
+ /**
33
+ * 新加入人员 ID 列表
34
+ */
35
+ joined: string[];
36
+ /**
37
+ * 退出人员 ID 列表
38
+ */
39
+ left: string[];
40
+ /**
41
+ * 通过观众升级成为主播的主播 ID 列表
42
+ */
43
+ upgrade: string[];
44
+ /**
45
+ * 由主播降级为观众的人员 ID 列表
46
+ */
47
+ downgrade: string[];
48
+ }
49
+ export declare class ParseUserStateCommand extends BaseCommand<IParseUserStateRes> {
50
+ private msgContent;
51
+ private subhook;
52
+ constructor(msgContent: StateMsgContent, subhook: Subhook);
53
+ get priority(): CommandPriority;
54
+ execute(store: Store, invoker: Invoker): Promise<IParseUserStateRes>;
55
+ }
56
+ export {};
57
+ //# sourceMappingURL=ParseUserStateCommand.d.ts.map
@@ -0,0 +1,34 @@
1
+ import { BaseCommand } from './BaseCommand';
2
+ import { IMutilPeerC, IPublishAttrs, IPubSuccessRes } from '../interfaces';
3
+ import { Store } from '../Store';
4
+ import { RCLocalTrack } from '../tracks/RCLocalTrack';
5
+ import { IPushOtherRooms, IRTCReqHeader } from '../service';
6
+ import { Invoker } from '../Invoker';
7
+ export declare type PubhookPeerItem = IMutilPeerC & {
8
+ headers: IRTCReqHeader;
9
+ };
10
+ export declare type PubhookRes = {
11
+ plist: PubhookPeerItem[];
12
+ pushOtherRooms: IPushOtherRooms[];
13
+ };
14
+ export declare type Pubhook = (tracks: (RCLocalTrack | IPublishAttrs)[]) => PubhookRes;
15
+ /**
16
+ * 资源发布命令
17
+ */
18
+ export declare class PubCommand extends BaseCommand<IPubSuccessRes> {
19
+ private tracks;
20
+ private pubhook;
21
+ constructor(tracks: (RCLocalTrack | IPublishAttrs)[], pubhook: Pubhook);
22
+ /**
23
+ * 从 pc 移除当次发布失败的资源
24
+ */
25
+ private _removePubFailedTracks;
26
+ private __publish;
27
+ /**
28
+ * 处理批量 /exhcange 的返回数据,作为一次 publish 接口返回
29
+ * @param pubResList 每一个 tag 的发布结果[]
30
+ */
31
+ private _mergePublishRes;
32
+ execute(store: Store, invoker: Invoker): Promise<IPubSuccessRes>;
33
+ }
34
+ //# sourceMappingURL=PubCommand.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { ErrorCode, IJoinRTCRoomData } from '@rongcloud/engine';
2
+ import { RCLivingType } from '../enums/RCLivingType';
3
+ import { BaseInvoker } from '../Invoker';
4
+ import { Store } from '../Store';
5
+ import { BaseCommand } from './BaseCommand';
6
+ export declare class RTCIdentityChangeCommand extends BaseCommand<{
7
+ code: ErrorCode;
8
+ data?: IJoinRTCRoomData;
9
+ }> {
10
+ private livingType;
11
+ constructor(livingType: RCLivingType);
12
+ execute(store: Store, invoker: BaseInvoker<Store>): Promise<{
13
+ code: ErrorCode;
14
+ data?: IJoinRTCRoomData;
15
+ }>;
16
+ }
17
+ //# sourceMappingURL=RTCIdentityChangeCommand.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { Invoker } from '../Invoker';
2
+ import { IPushOtherRooms, IRTCReqHeader } from '../service';
3
+ import { Store } from '../Store';
4
+ import { BaseCommand, CommandPriority } from './BaseCommand';
5
+ export declare type RetryHookRes = {
6
+ pushOtherRooms: IPushOtherRooms[];
7
+ headers: IRTCReqHeader;
8
+ };
9
+ export declare type RetryHook = (pcName: string) => RetryHookRes;
10
+ export declare class RetryExchangeCommand extends BaseCommand<void> {
11
+ private pcName;
12
+ private isPub;
13
+ private retryHook;
14
+ constructor(pcName: string, isPub: boolean, retryHook: RetryHook);
15
+ get priority(): CommandPriority;
16
+ execute(store: Store, invoker: Invoker): Promise<void>;
17
+ }
18
+ //# sourceMappingURL=RetryExchangeCommand.d.ts.map
@@ -0,0 +1,21 @@
1
+ import { RCRTCCode } from '../enums/RCRTCCode';
2
+ import { ISubscribeAttr } from '../interfaces';
3
+ import { Invoker } from '../Invoker';
4
+ import { Store } from '../Store';
5
+ import { RCRemoteTrack } from '../tracks/RCRemoteTrack';
6
+ import { BaseCommand } from './BaseCommand';
7
+ import { Subhook } from './UpdateSubListCommand';
8
+ export declare class SubCommand extends BaseCommand<{
9
+ code: RCRTCCode;
10
+ failedList?: ISubscribeAttr[];
11
+ }> {
12
+ private readonly tracks;
13
+ private subhook;
14
+ private readonly forceReq?;
15
+ constructor(tracks: (RCRemoteTrack | ISubscribeAttr)[], subhook: Subhook, forceReq?: boolean | undefined);
16
+ execute(store: Store, invoker: Invoker): Promise<{
17
+ code: RCRTCCode;
18
+ failedList?: ISubscribeAttr[];
19
+ }>;
20
+ }
21
+ //# sourceMappingURL=SubCommand.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { IPublishAttrs, IPubSuccessRes } from '../interfaces';
2
+ import { Invoker } from '../Invoker';
3
+ import { IPushOtherRooms, IRTCReqHeader } from '../service/interface';
4
+ import { Store } from '../Store';
5
+ import { RCLocalTrack } from '../tracks/RCLocalTrack';
6
+ import { BaseCommand } from './BaseCommand';
7
+ export declare type UnpubhookRes = {
8
+ pushOtherRooms: IPushOtherRooms[];
9
+ headers: IRTCReqHeader;
10
+ };
11
+ export declare type Unpubhook = (tracks: (RCLocalTrack | IPublishAttrs)[], pcName: string) => UnpubhookRes;
12
+ export declare class UnpubCommand extends BaseCommand<IPubSuccessRes> {
13
+ private tracks;
14
+ private unpubhook;
15
+ constructor(tracks: RCLocalTrack[], unpubhook: Unpubhook);
16
+ private __unpublish;
17
+ private _mergeUnpublishRes;
18
+ execute(store: Store, invoker: Invoker): Promise<IPubSuccessRes>;
19
+ }
20
+ //# sourceMappingURL=UnpubCommand.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { Store } from '../Store';
2
+ import { BaseCommand } from './BaseCommand';
3
+ export declare class UnpubPrevCommand extends BaseCommand<void> {
4
+ execute(store: Store): Promise<void>;
5
+ }
6
+ //# sourceMappingURL=UnpubPrevCommand.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { RCRTCCode } from '../enums/RCRTCCode';
2
+ import { ISubscribeAttr } from '../interfaces';
3
+ import { Invoker } from '../Invoker';
4
+ import { Store } from '../Store';
5
+ import { RCRemoteTrack } from '../tracks/RCRemoteTrack';
6
+ import { BaseCommand } from './BaseCommand';
7
+ import { Subhook } from './UpdateSubListCommand';
8
+ export declare class UnsubCommand extends BaseCommand<{
9
+ code: RCRTCCode;
10
+ failedList?: ISubscribeAttr[];
11
+ }> {
12
+ private tracks;
13
+ private subhook;
14
+ constructor(tracks: RCRemoteTrack[], subhook: Subhook);
15
+ execute(store: Store, invoker: Invoker): Promise<{
16
+ code: RCRTCCode;
17
+ failedList?: ISubscribeAttr[];
18
+ }>;
19
+ }
20
+ //# sourceMappingURL=UnsubCommand.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { RCRTCCode } from '../enums/RCRTCCode';
2
+ import { ISubscribeAttr } from '../interfaces';
3
+ import { Invoker } from '../Invoker';
4
+ import { IPushOtherRooms, IRTCReqHeader } from '../service';
5
+ import { Store } from '../Store';
6
+ import { RCRemoteTrack } from '../tracks/RCRemoteTrack';
7
+ import RCRTCPeerConnection from '../webrtc/RCRTCPeerConnection';
8
+ import { BaseCommand } from './BaseCommand';
9
+ export declare type SubhookRes = {
10
+ pc: RCRTCPeerConnection;
11
+ pushOtherRooms: IPushOtherRooms[];
12
+ headers: IRTCReqHeader;
13
+ };
14
+ export declare type Subhook = (tracks: (RCRemoteTrack | ISubscribeAttr)[]) => SubhookRes;
15
+ export declare class UpdateSubListCommand extends BaseCommand<{
16
+ code: RCRTCCode;
17
+ failedList?: ISubscribeAttr[];
18
+ }> {
19
+ private readonly tracks;
20
+ private subhook;
21
+ private readonly forceReq?;
22
+ constructor(tracks: (RCRemoteTrack | ISubscribeAttr)[], subhook: Subhook, forceReq?: boolean | undefined);
23
+ execute(store: Store, invoker: Invoker): Promise<{
24
+ code: RCRTCCode;
25
+ failedList?: ISubscribeAttr[];
26
+ }>;
27
+ }
28
+ //# sourceMappingURL=UpdateSubListCommand.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { RCRTCCode } from '../enums/RCRTCCode';
2
+ import { ISubscribeAttr } from '../interfaces';
3
+ import { IExchangeReqBody } from '../service';
4
+ import { ReadableStore } from '../Store';
5
+ import RCRTCPeerConnection from '../webrtc/RCRTCPeerConnection';
6
+ /**
7
+ * 获取 exchange 接口的请求体数据
8
+ * @param subscribeList 订阅清单
9
+ * @param iceRestart
10
+ * @param pc RCRTCPeerConnection 实例
11
+ * @param store: Store
12
+ */
13
+ export declare function createExchangeParams(subscribeList: ISubscribeAttr[], iceRestart: boolean, pc: RCRTCPeerConnection, store: ReadableStore): Promise<IExchangeReqBody>;
14
+ /**
15
+ * 开启、停用 CDN 推资源后发信令
16
+ */
17
+ export declare function sendCDNInfoSignal(store: ReadableStore): Promise<{
18
+ code: RCRTCCode;
19
+ }>;
20
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const STAT_NONE = -1;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 自定义合流布局时,背景图片填充方式
3
+ */
4
+ export declare enum BackgroundPictureFillMode {
5
+ /**
6
+ * 裁剪(默认)
7
+ */
8
+ CROP = 1,
9
+ /**
10
+ * 不裁剪
11
+ */
12
+ WHOLE = 2
13
+ }
14
+ //# sourceMappingURL=BackgroundPictureFillMode.d.ts.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * 直播布局模式定义
3
+ */
4
+ export declare enum MixLayoutMode {
5
+ /**
6
+ * 自定义布局
7
+ */
8
+ CUSTOMIZE = 1,
9
+ /**
10
+ * 悬浮布局(默认)
11
+ */
12
+ SUSPENSION = 2,
13
+ /**
14
+ * 自适应布局
15
+ */
16
+ ADAPTATION = 3
17
+ }
18
+ //# sourceMappingURL=MixLayoutMode.d.ts.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 合流布局对视频的填充模式
3
+ */
4
+ export declare enum MixVideoRenderMode {
5
+ /**
6
+ * 裁剪(默认)
7
+ */
8
+ CROP = 1,
9
+ /**
10
+ * 不裁剪
11
+ */
12
+ WHOLE = 2
13
+ }
14
+ //# sourceMappingURL=MixVideoRenderMode.d.ts.map
@@ -0,0 +1,48 @@
1
+ import { IRCTrackBitrate } from '../interfaces';
2
+ export declare enum RCAudioBitrate {
3
+ /**
4
+ * 标清音质
5
+ */
6
+ Speech = "Speech",
7
+ /**
8
+ * 音乐音质
9
+ */
10
+ Music = "Music",
11
+ /**
12
+ * 音乐高清音质
13
+ */
14
+ MusicHigh = "MusicHigh"
15
+ }
16
+ export declare const getAudioBitrate: {
17
+ [key in RCAudioBitrate]: IRCTrackBitrate;
18
+ };
19
+ export declare enum RCVideoBitrate {
20
+ /**
21
+ * Bitrate { max: 150, min: 80 }
22
+ */
23
+ LEVEL0 = "LEVEL0",
24
+ /**
25
+ * Bitrate { max: 280, min: 120 }
26
+ */
27
+ LEVEL1 = "LEVEL1",
28
+ /**
29
+ * Bitrate { max: 650, min: 150 }
30
+ */
31
+ LEVEL2 = "LEVEL2",
32
+ /**
33
+ * Bitrate { max: 1000, min: 200 }
34
+ */
35
+ LEVEL3 = "LEVEL3",
36
+ /**
37
+ * Bitrate { max: 2200, min: 250 }
38
+ */
39
+ LEVEL4 = "LEVEL4",
40
+ /**
41
+ * Bitrate { max: 4000, min: 400 }
42
+ */
43
+ LEVEL5 = "LEVEL5"
44
+ }
45
+ export declare const getVideoBitrate: {
46
+ [key in RCVideoBitrate]: IRCTrackBitrate;
47
+ };
48
+ //# sourceMappingURL=RCBitrate.d.ts.map
@@ -0,0 +1,7 @@
1
+ export declare enum RCFrameRate {
2
+ FPS_10 = "FPS_10",
3
+ FPS_15 = "FPS_15",
4
+ FPS_24 = "FPS_24",
5
+ FPS_30 = "FPS_30"
6
+ }
7
+ //# sourceMappingURL=RCFrameRate.d.ts.map
@@ -0,0 +1,5 @@
1
+ export declare enum RCInnerCDNBroadcast {
2
+ SPREAD = 0,
3
+ NO_SPREAD = -1
4
+ }
5
+ //# sourceMappingURL=RCInnerCDNBroadcast.d.ts.map
@@ -0,0 +1,5 @@
1
+ export declare enum RCInnerCDNModel {
2
+ OPEN = 1,
3
+ STOP = 2
4
+ }
5
+ //# sourceMappingURL=RCInnerCDNModel.d.ts.map
@@ -0,0 +1,5 @@
1
+ export declare enum RCInnerCDNPullIsHttps {
2
+ NOT_HTTPS = 0,
3
+ HTTPS = 1
4
+ }
5
+ //# sourceMappingURL=RCInnerCDNPullIsHttps.d.ts.map
@@ -0,0 +1,6 @@
1
+ export declare enum RCInnerCDNPullKind {
2
+ RTMP = "rtmp",
3
+ FLV = "flv",
4
+ HLS = "hls"
5
+ }
6
+ //# sourceMappingURL=RCInnerCDNPullKind.d.ts.map
@@ -0,0 +1,5 @@
1
+ export declare enum RCInnerCDNPushMode {
2
+ AUTOMATIC = 0,
3
+ MANUAL = 1
4
+ }
5
+ //# sourceMappingURL=RCInnerCDNPushMode.d.ts.map
@@ -0,0 +1,11 @@
1
+ export declare enum RCKickReason {
2
+ /**
3
+ * Server 主动踢(掉 Server API 踢出)
4
+ */
5
+ SERVER_KICK = 1,
6
+ /**
7
+ * 其他设备登陆后,本端被踢
8
+ */
9
+ OTHER_KICK = 2
10
+ }
11
+ //# sourceMappingURL=RCKickType.d.ts.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 直播间类型
3
+ */
4
+ export declare enum RCLivingType {
5
+ /**
6
+ * 音视频直播
7
+ */
8
+ VIDEO = 0,
9
+ /**
10
+ * 音频直播
11
+ */
12
+ AUDIO = 1
13
+ }
14
+ //# sourceMappingURL=RCLivingType.d.ts.map