@rongcloud/plugin-rtc 5.6.3-alpha.2 → 5.6.3-alpha.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.
- package/dist/index.d.ts +84 -14
- package/dist/index.esm.js +259 -60
- package/dist/index.js +259 -60
- package/dist/index.umd.js +259 -60
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.6.3-alpha.
|
|
3
|
-
* CommitId -
|
|
4
|
-
* Sun Nov 13 2022
|
|
2
|
+
* RCRTC - v5.6.3-alpha.3
|
|
3
|
+
* CommitId - db726c933e72872baf32689bc9690c7a34f2bab2
|
|
4
|
+
* Sun Nov 13 2022 23:10:47 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';
|
|
@@ -1859,15 +1859,83 @@ declare enum RCLivingType {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
|
|
1861
1861
|
declare enum RCCommandKind {
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1862
|
+
/**
|
|
1863
|
+
* 发信令取消加入房间之前的资源
|
|
1864
|
+
*/
|
|
1865
|
+
UNPUBLISH_PREV = "UnpublishPrevCommand",
|
|
1866
|
+
/**
|
|
1867
|
+
* 拉取房间内数据
|
|
1868
|
+
*/
|
|
1869
|
+
PULL_RTCROOM_STATUS = "PullRTCRoomStatusCommand",
|
|
1870
|
+
/**
|
|
1871
|
+
* 加入房间
|
|
1872
|
+
*/
|
|
1873
|
+
JOINROOM = "JoinRoomCommand",
|
|
1874
|
+
/**
|
|
1875
|
+
* 解析远端资源数据
|
|
1876
|
+
*/
|
|
1877
|
+
PARSE_REMOTERES = "ParseRemoteResCommand",
|
|
1878
|
+
/**
|
|
1879
|
+
* 解析远端人员数据
|
|
1880
|
+
*/
|
|
1881
|
+
PARSE_USERSTATE = "ParseUserStateCommand",
|
|
1882
|
+
/**
|
|
1883
|
+
* 本端 track 禁用/启用
|
|
1884
|
+
*/
|
|
1885
|
+
LOCAL_TRACK_MUTE = "LocalTrackMuteCommand",
|
|
1886
|
+
/**
|
|
1887
|
+
* 发布资源
|
|
1888
|
+
*/
|
|
1889
|
+
PUBLISH = "PublishCommand",
|
|
1890
|
+
/**
|
|
1891
|
+
* 恢复 ice 连接
|
|
1892
|
+
*/
|
|
1893
|
+
RETRY_EXCHANGE = "RetryExchangeCommand",
|
|
1894
|
+
/**
|
|
1895
|
+
* 取消发布
|
|
1896
|
+
*/
|
|
1897
|
+
UNPUBLISH = "UnpublishCommand",
|
|
1898
|
+
/**
|
|
1899
|
+
* 订阅
|
|
1900
|
+
*/
|
|
1901
|
+
SUBSCRIBE = "SubscribeCommand",
|
|
1902
|
+
/**
|
|
1903
|
+
* 异步订阅、取消订阅、全量订阅
|
|
1904
|
+
*/
|
|
1905
|
+
ASYNC_COMMAND = "AsyncCommand",
|
|
1906
|
+
/**
|
|
1907
|
+
* 取消订阅
|
|
1908
|
+
*/
|
|
1909
|
+
UNSUBSCRIBE = "UnsubscribeCommand",
|
|
1910
|
+
/**
|
|
1911
|
+
* 全量订阅
|
|
1912
|
+
*/
|
|
1913
|
+
UPDATE_SUBSCRIBE_LIST = "UpdateSubscribeListCommand",
|
|
1914
|
+
/**
|
|
1915
|
+
* im 重连房间内人员、资源处理
|
|
1916
|
+
*/
|
|
1917
|
+
ON_SIGNAL_RECONNECTED = "OnSignalReconnectedCommand",
|
|
1918
|
+
/**
|
|
1919
|
+
* 退出副房间
|
|
1920
|
+
*/
|
|
1921
|
+
LEAVE_OTHER_ROOM = "LeaveOtherRoomCommand",
|
|
1922
|
+
/**
|
|
1923
|
+
* 主播、观众切换身份
|
|
1924
|
+
*/
|
|
1925
|
+
RTC_IDENTITY_CHANGE = "RTCIdentityChangeCommand",
|
|
1926
|
+
/**
|
|
1927
|
+
* 开/关 CDN
|
|
1928
|
+
*/
|
|
1929
|
+
ENABLE_INNER_CDN = "EnableInnerCDNCommand",
|
|
1930
|
+
/**
|
|
1931
|
+
* 携带副房间信息重新发 /exchange 请求
|
|
1932
|
+
*/
|
|
1933
|
+
EXCHANGE_WITH_PUSH_OTHER_ROOM = "ExchangeWithPushOtherRoomCommand",
|
|
1934
|
+
/**
|
|
1935
|
+
* 发送 MCU 请求
|
|
1936
|
+
*/
|
|
1937
|
+
MCUCONFIG_FLUSH = "MCUConfigFlushCommand",
|
|
1938
|
+
UNKNOWN = "Unknown"
|
|
1871
1939
|
}
|
|
1872
1940
|
|
|
1873
1941
|
declare enum CommandPriority {
|
|
@@ -2076,6 +2144,7 @@ declare class RCRTCPeerCManager {
|
|
|
2076
2144
|
}
|
|
2077
2145
|
|
|
2078
2146
|
declare class BaseInvoker<STORE> {
|
|
2147
|
+
private context;
|
|
2079
2148
|
/**
|
|
2080
2149
|
* 内存数据管理实例
|
|
2081
2150
|
*/
|
|
@@ -2084,7 +2153,7 @@ declare class BaseInvoker<STORE> {
|
|
|
2084
2153
|
* 命令终止时返回的错误码定义
|
|
2085
2154
|
*/
|
|
2086
2155
|
private abortCode;
|
|
2087
|
-
constructor(
|
|
2156
|
+
constructor(context: RTCContext,
|
|
2088
2157
|
/**
|
|
2089
2158
|
* 内存数据管理实例
|
|
2090
2159
|
*/
|
|
@@ -2100,7 +2169,7 @@ declare class BaseInvoker<STORE> {
|
|
|
2100
2169
|
push<R>(command: BaseCommand<R, STORE>): Promise<R>;
|
|
2101
2170
|
private _isDestroyed;
|
|
2102
2171
|
/**
|
|
2103
|
-
* 查找出 RCCommandKind.
|
|
2172
|
+
* 查找出 RCCommandKind.ASYNC_COMMAND 类型的 Command,并将其从队列中删除
|
|
2104
2173
|
* 并使用最新的一次 Command 接管它的 resolve & reject
|
|
2105
2174
|
* @param resolve
|
|
2106
2175
|
* @param reject
|
|
@@ -2350,6 +2419,7 @@ declare abstract class RCAbstractRoom extends EventEmitter {
|
|
|
2350
2419
|
* 是否使用多 peerConnection
|
|
2351
2420
|
*/
|
|
2352
2421
|
_useMutilPeerC?: boolean | undefined, _clientSessionId?: string, signalRetryTime?: number);
|
|
2422
|
+
private _pullRTCRoomStatus;
|
|
2353
2423
|
/**
|
|
2354
2424
|
* 拉取房间数据
|
|
2355
2425
|
* @param roomId 房间 id
|