@rongcloud/plugin-rtc 5.5.1 → 5.5.2-alpha.2

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 (114) hide show
  1. package/dist/index.d.ts +19 -8
  2. package/dist/index.esm.js +21612 -15
  3. package/dist/index.js +21641 -15
  4. package/dist/index.umd.js +21645 -15
  5. package/package.json +2 -5
  6. package/dist/async-task-queue.d.ts +0 -9
  7. package/dist/core/Invoker.d.ts +0 -55
  8. package/dist/core/PolarisReporter.d.ts +0 -36
  9. package/dist/core/RCAudienceClient.d.ts +0 -90
  10. package/dist/core/RCMediaStreamCapture.d.ts +0 -124
  11. package/dist/core/RCRTCClient.d.ts +0 -148
  12. package/dist/core/Store.d.ts +0 -86
  13. package/dist/core/codec/RTCContext.d.ts +0 -76
  14. package/dist/core/codec/interface.d.ts +0 -168
  15. package/dist/core/codec/proto.d.ts +0 -94
  16. package/dist/core/codec/rtc-helper.d.ts +0 -17
  17. package/dist/core/command/AsyncCommand.d.ts +0 -55
  18. package/dist/core/command/AsyncSubscribeCommand.d.ts +0 -28
  19. package/dist/core/command/AsyncUnsubscribeCommand.d.ts +0 -28
  20. package/dist/core/command/AsyncUpdateSubscribeListCommand.d.ts +0 -25
  21. package/dist/core/command/BaseCommand.d.ts +0 -31
  22. package/dist/core/command/EnabelInnerCDNCommand.d.ts +0 -16
  23. package/dist/core/command/ExchangeCommand.d.ts +0 -18
  24. package/dist/core/command/ExchangeWithPushOtherRoomCommand.d.ts +0 -22
  25. package/dist/core/command/JoinRoomCommand.d.ts +0 -31
  26. package/dist/core/command/LeaveOtherRoomCommand.d.ts +0 -32
  27. package/dist/core/command/LocalTrackMuteCommand.d.ts +0 -18
  28. package/dist/core/command/MCUConfigFlushCommand.d.ts +0 -18
  29. package/dist/core/command/OnRemoteUserUnpubCommand.d.ts +0 -13
  30. package/dist/core/command/OnSignalReconnectedCommand.d.ts +0 -38
  31. package/dist/core/command/ParseRemoteResCommand.d.ts +0 -38
  32. package/dist/core/command/ParseUserStateCommand.d.ts +0 -57
  33. package/dist/core/command/PubCommand.d.ts +0 -34
  34. package/dist/core/command/PublishCommand.d.ts +0 -36
  35. package/dist/core/command/RTCIdentityChangeCommand.d.ts +0 -18
  36. package/dist/core/command/RetryExchangeCommand.d.ts +0 -18
  37. package/dist/core/command/SubscribeCommand.d.ts +0 -21
  38. package/dist/core/command/UnpublishCommand.d.ts +0 -22
  39. package/dist/core/command/UnpublishPrevCommand.d.ts +0 -11
  40. package/dist/core/command/UnsubscribeCommand.d.ts +0 -20
  41. package/dist/core/command/UpdateSubscribeListCommand.d.ts +0 -28
  42. package/dist/core/command/helper.d.ts +0 -20
  43. package/dist/core/constants.d.ts +0 -4
  44. package/dist/core/enums/BackgroundPictureFillMode.d.ts +0 -14
  45. package/dist/core/enums/MixLayoutMode.d.ts +0 -18
  46. package/dist/core/enums/MixVideoRenderMode.d.ts +0 -14
  47. package/dist/core/enums/RCBitrate.d.ts +0 -48
  48. package/dist/core/enums/RCCommandKind.d.ts +0 -12
  49. package/dist/core/enums/RCFrameRate.d.ts +0 -7
  50. package/dist/core/enums/RCInnerCDNBroadcast.d.ts +0 -5
  51. package/dist/core/enums/RCInnerCDNModel.d.ts +0 -5
  52. package/dist/core/enums/RCInnerCDNPullIsHttps.d.ts +0 -5
  53. package/dist/core/enums/RCInnerCDNPullKind.d.ts +0 -6
  54. package/dist/core/enums/RCInnerCDNPushMode.d.ts +0 -5
  55. package/dist/core/enums/RCKickType.d.ts +0 -11
  56. package/dist/core/enums/RCLinkedListPoint.d.ts +0 -6
  57. package/dist/core/enums/RCLivingType.d.ts +0 -14
  58. package/dist/core/enums/RCLoggerTag.d.ts +0 -649
  59. package/dist/core/enums/RCMediaType.d.ts +0 -18
  60. package/dist/core/enums/RCMixInputFilterMode.d.ts +0 -35
  61. package/dist/core/enums/RCRTCCode.d.ts +0 -93
  62. package/dist/core/enums/RCRTCLiveRole.d.ts +0 -14
  63. package/dist/core/enums/RCRTCPingResult.d.ts +0 -5
  64. package/dist/core/enums/RCRTCResolution.d.ts +0 -132
  65. package/dist/core/enums/RCResolution.d.ts +0 -21
  66. package/dist/core/enums/RTCJoinType.d.ts +0 -18
  67. package/dist/core/enums/RTCMode.d.ts +0 -22
  68. package/dist/core/enums/inner/LiveRole.d.ts +0 -11
  69. package/dist/core/enums/inner/LiveType.d.ts +0 -14
  70. package/dist/core/enums/inner/PolarisRole.d.ts +0 -14
  71. package/dist/core/enums/inner/R2Action.d.ts +0 -14
  72. package/dist/core/enums/inner/R2Status.d.ts +0 -11
  73. package/dist/core/enums/inner/RCRTCMessageType.d.ts +0 -70
  74. package/dist/core/enums/inner/RCStreamType.d.ts +0 -14
  75. package/dist/core/enums/inner/RTCApiType.d.ts +0 -5
  76. package/dist/core/enums/inner/RTCIdentityChangeType.d.ts +0 -5
  77. package/dist/core/enums/inner/TrackState.d.ts +0 -14
  78. package/dist/core/interfaces.d.ts +0 -942
  79. package/dist/core/room/Pinger.d.ts +0 -36
  80. package/dist/core/room/RCAbstractRoom.d.ts +0 -354
  81. package/dist/core/room/RCAudienceLivingRoom.d.ts +0 -334
  82. package/dist/core/room/RCAudioLevelReport.d.ts +0 -16
  83. package/dist/core/room/RCLivingPKHandler.d.ts +0 -165
  84. package/dist/core/room/RCLivingRoom.d.ts +0 -112
  85. package/dist/core/room/RCLocalMediaStream.d.ts +0 -8
  86. package/dist/core/room/RCMCUConfigBuilder.d.ts +0 -211
  87. package/dist/core/room/RCRTCRoom.d.ts +0 -17
  88. package/dist/core/service/RCMediaService.d.ts +0 -121
  89. package/dist/core/service/helper.d.ts +0 -18
  90. package/dist/core/service/index.d.ts +0 -6
  91. package/dist/core/service/interface.d.ts +0 -328
  92. package/dist/core/service/mcu-interface.d.ts +0 -293
  93. package/dist/core/tracks/RC3AnoiseTrack.d.ts +0 -27
  94. package/dist/core/tracks/RCLocalTrack.d.ts +0 -143
  95. package/dist/core/tracks/RCRemoteTrack.d.ts +0 -29
  96. package/dist/core/tracks/RCTrack.d.ts +0 -95
  97. package/dist/core/webrtc/RCRTCPeerCManager.d.ts +0 -161
  98. package/dist/core/webrtc/RCRTCPeerConnection.d.ts +0 -112
  99. package/dist/core/webrtc/helper.d.ts +0 -26
  100. package/dist/core/webrtc/sdp/ASdpBuilder.d.ts +0 -120
  101. package/dist/core/webrtc/sdp/ASdpStrategy.d.ts +0 -53
  102. package/dist/core/webrtc/sdp/PlanBSdpBuilder.d.ts +0 -20
  103. package/dist/core/webrtc/sdp/PlanBStrategy.d.ts +0 -26
  104. package/dist/core/webrtc/sdp/SDPUtils.d.ts +0 -60
  105. package/dist/core/webrtc/sdp/UnifiedPlanSdpBuilder.d.ts +0 -11
  106. package/dist/core/webrtc/sdp/UnifiedPlanStrategy.d.ts +0 -25
  107. package/dist/core/webrtc/stat-parser/AbstractStatParser.d.ts +0 -117
  108. package/dist/core/webrtc/stat-parser/ChromeStatParser.d.ts +0 -14
  109. package/dist/core/webrtc/stat-parser/FirefoxStatParser.d.ts +0 -14
  110. package/dist/core/webrtc/stat-parser/IStatParser.d.ts +0 -24
  111. package/dist/core/webrtc/stat-parser/SafariStatParser.d.ts +0 -14
  112. package/dist/device.d.ts +0 -6
  113. package/dist/helper.d.ts +0 -195
  114. package/dist/logger.d.ts +0 -4
@@ -1,38 +0,0 @@
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 { RCRemoteAudioTrack, RCRemoteTrack, RCRemoteVideoTrack } from '../tracks/RCRemoteTrack';
7
- import { BaseCommand, CommandPriority } from './BaseCommand';
8
- import { Subscribehook } from './UpdateSubscribeListCommand';
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: Subscribehook, callback: {
29
- onTrackPublish: (tracks: RCRemoteTrack[]) => void;
30
- onTrackUnublish: (tracks: RCRemoteTrack[]) => void;
31
- onAudioMute: (track: RCRemoteAudioTrack) => void;
32
- onVideoMute: (track: RCRemoteVideoTrack) => 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
@@ -1,57 +0,0 @@
1
- import { RCRTCLiveRole } from '../enums/RCRTCLiveRole';
2
- import { Invoker } from '../Invoker';
3
- import { Store } from '../Store';
4
- import { BaseCommand, CommandPriority } from './BaseCommand';
5
- import { Subscribehook } from './UpdateSubscribeListCommand';
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: Subscribehook);
53
- get priority(): CommandPriority;
54
- execute(store: Store, invoker: Invoker): Promise<IParseUserStateRes>;
55
- }
56
- export {};
57
- //# sourceMappingURL=ParseUserStateCommand.d.ts.map
@@ -1,34 +0,0 @@
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
@@ -1,36 +0,0 @@
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
- import { RCCommandKind } from '../enums/RCCommandKind';
8
- export declare type PubhookPeerItem = IMutilPeerC & {
9
- headers: IRTCReqHeader;
10
- };
11
- export declare type PubhookRes = {
12
- plist: PubhookPeerItem[];
13
- pushOtherRooms: IPushOtherRooms[];
14
- };
15
- export declare type Pubhook = (tracks: (RCLocalTrack | IPublishAttrs)[]) => PubhookRes;
16
- /**
17
- * 资源发布命令
18
- */
19
- export declare class PublishCommand extends BaseCommand<IPubSuccessRes> {
20
- private tracks;
21
- private pubhook;
22
- constructor(tracks: (RCLocalTrack | IPublishAttrs)[], pubhook: Pubhook);
23
- get kind(): RCCommandKind;
24
- /**
25
- * 从 pc 移除当次发布失败的资源
26
- */
27
- private _removePubFailedTracks;
28
- private __publish;
29
- /**
30
- * 处理批量 /exhcange 的返回数据,作为一次 publish 接口返回
31
- * @param pubResList 每一个 tag 的发布结果[]
32
- */
33
- private _mergePublishRes;
34
- execute(store: Store, invoker: Invoker): Promise<IPubSuccessRes>;
35
- }
36
- //# sourceMappingURL=PublishCommand.d.ts.map
@@ -1,18 +0,0 @@
1
- import { ErrorCode } 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
- import { IJoinRTCRoomData } from '../codec/interface';
7
- export declare class RTCIdentityChangeCommand extends BaseCommand<{
8
- code: ErrorCode;
9
- data?: IJoinRTCRoomData;
10
- }> {
11
- private livingType;
12
- constructor(livingType: RCLivingType);
13
- execute(store: Store, invoker: BaseInvoker<Store>): Promise<{
14
- code: ErrorCode;
15
- data?: IJoinRTCRoomData;
16
- }>;
17
- }
18
- //# sourceMappingURL=RTCIdentityChangeCommand.d.ts.map
@@ -1,18 +0,0 @@
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
@@ -1,21 +0,0 @@
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 { Subscribehook } from './UpdateSubscribeListCommand';
8
- export declare class SubscribeCommand 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: Subscribehook, forceReq?: boolean | undefined);
16
- execute(store: Store, invoker: Invoker): Promise<{
17
- code: RCRTCCode;
18
- failedList?: ISubscribeAttr[];
19
- }>;
20
- }
21
- //# sourceMappingURL=SubscribeCommand.d.ts.map
@@ -1,22 +0,0 @@
1
- import { RCCommandKind } from '../enums/RCCommandKind';
2
- import { IPublishAttrs, IPubSuccessRes } from '../interfaces';
3
- import { Invoker } from '../Invoker';
4
- import { IPushOtherRooms, IRTCReqHeader } from '../service/interface';
5
- import { Store } from '../Store';
6
- import { RCLocalTrack } from '../tracks/RCLocalTrack';
7
- import { BaseCommand } from './BaseCommand';
8
- export declare type UnpubhookRes = {
9
- pushOtherRooms: IPushOtherRooms[];
10
- headers: IRTCReqHeader;
11
- };
12
- export declare type Unpubhook = (tracks: (RCLocalTrack | IPublishAttrs)[], pcName: string) => UnpubhookRes;
13
- export declare class UnpublishCommand extends BaseCommand<IPubSuccessRes> {
14
- private tracks;
15
- private unpubhook;
16
- constructor(tracks: RCLocalTrack[], unpubhook: Unpubhook);
17
- get kind(): RCCommandKind;
18
- private __unpublish;
19
- private _mergeUnpublishRes;
20
- execute(store: Store, invoker: Invoker): Promise<IPubSuccessRes>;
21
- }
22
- //# sourceMappingURL=UnpublishCommand.d.ts.map
@@ -1,11 +0,0 @@
1
- import { Store } from '../Store';
2
- import { BaseCommand } from './BaseCommand';
3
- /**
4
- * 加入房间后,若房间中已存在己方发布的资源,表示之前未能完成正常退出流程
5
- * 需先清除房间内的己方资源,通知房间内其他人己方已取消当前资源的发布
6
- * 该步骤没有必要与 MediaServer 的交互,因后续资源变更交互为全量交互
7
- */
8
- export declare class UnpublishPrevCommand extends BaseCommand<void> {
9
- execute(store: Store): Promise<void>;
10
- }
11
- //# sourceMappingURL=UnpublishPrevCommand.d.ts.map
@@ -1,20 +0,0 @@
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 { Subscribehook } from './UpdateSubscribeListCommand';
8
- export declare class UnsubscribeCommand extends BaseCommand<{
9
- code: RCRTCCode;
10
- failedList?: ISubscribeAttr[];
11
- }> {
12
- private tracks;
13
- private subhook;
14
- constructor(tracks: RCRemoteTrack[], subhook: Subscribehook);
15
- execute(store: Store, invoker: Invoker): Promise<{
16
- code: RCRTCCode;
17
- failedList?: ISubscribeAttr[];
18
- }>;
19
- }
20
- //# sourceMappingURL=UnsubscribeCommand.d.ts.map
@@ -1,28 +0,0 @@
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 SubscribehookRes = {
10
- pc: RCRTCPeerConnection;
11
- pushOtherRooms: IPushOtherRooms[];
12
- headers: IRTCReqHeader;
13
- };
14
- export declare type Subscribehook = (tracks: (RCRemoteTrack | ISubscribeAttr)[]) => SubscribehookRes;
15
- export declare class UpdateSubscribeListCommand 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: Subscribehook, forceReq?: boolean | undefined);
23
- execute(store: Store, invoker: Invoker): Promise<{
24
- code: RCRTCCode;
25
- failedList?: ISubscribeAttr[];
26
- }>;
27
- }
28
- //# sourceMappingURL=UpdateSubscribeListCommand.d.ts.map
@@ -1,20 +0,0 @@
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
@@ -1,4 +0,0 @@
1
- export declare const STAT_NONE = -1;
2
- export declare const DETECT_MINUTE = 120;
3
- export declare const NAVI_REFETCH_COUNT = 5;
4
- //# sourceMappingURL=constants.d.ts.map
@@ -1,14 +0,0 @@
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
@@ -1,18 +0,0 @@
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
@@ -1,14 +0,0 @@
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
@@ -1,48 +0,0 @@
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
@@ -1,12 +0,0 @@
1
- export declare enum RCCommandKind {
2
- Unknow = 0,
3
- Publish = 1,
4
- UnPublish = 2,
5
- JoinRoom = 3,
6
- LeaveRoom = 4,
7
- UpdateSubscribeTask = 5,
8
- SubscribedTask = 6,
9
- UnSubscribedTask = 7,
10
- AsyncCommand = "AsyncCommand"
11
- }
12
- //# sourceMappingURL=RCCommandKind.d.ts.map
@@ -1,7 +0,0 @@
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
@@ -1,5 +0,0 @@
1
- export declare enum RCInnerCDNBroadcast {
2
- SPREAD = 0,
3
- NO_SPREAD = -1
4
- }
5
- //# sourceMappingURL=RCInnerCDNBroadcast.d.ts.map
@@ -1,5 +0,0 @@
1
- export declare enum RCInnerCDNModel {
2
- OPEN = 1,
3
- STOP = 2
4
- }
5
- //# sourceMappingURL=RCInnerCDNModel.d.ts.map
@@ -1,5 +0,0 @@
1
- export declare enum RCInnerCDNPullIsHttps {
2
- NOT_HTTPS = 0,
3
- HTTPS = 1
4
- }
5
- //# sourceMappingURL=RCInnerCDNPullIsHttps.d.ts.map
@@ -1,6 +0,0 @@
1
- export declare enum RCInnerCDNPullKind {
2
- RTMP = "rtmp",
3
- FLV = "flv",
4
- HLS = "hls"
5
- }
6
- //# sourceMappingURL=RCInnerCDNPullKind.d.ts.map
@@ -1,5 +0,0 @@
1
- export declare enum RCInnerCDNPushMode {
2
- AUTOMATIC = 0,
3
- MANUAL = 1
4
- }
5
- //# sourceMappingURL=RCInnerCDNPushMode.d.ts.map
@@ -1,11 +0,0 @@
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
@@ -1,6 +0,0 @@
1
- export declare enum RCLinkedListPoint {
2
- NORMAL = "normal",
3
- MIDDLE = "middle",
4
- TAIL = "tail"
5
- }
6
- //# sourceMappingURL=RCLinkedListPoint.d.ts.map
@@ -1,14 +0,0 @@
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