@rongcloud/plugin-call-plus 2.1.8 → 2.1.10-alpha.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/index.d.ts +8 -24
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/wrapper/index.esm.js +1 -1
- package/wrapper/index.js +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RCConnectionStatus, EventEmitter, BasicLogger,
|
|
2
|
-
import {
|
|
1
|
+
import { RCConnectionStatus, EventEmitter, BasicLogger, PluginContext, IRuntime, EnableLogL, IReceivedMessage, IPluginGenerator } from '@rongcloud/engine';
|
|
2
|
+
import { RCRemoteTrack, RCTrack, ISubscribeAttr, RCRTCCode, RCLocalAudioTrack, RCRemoteAudioTrack, RCRTCClient, RCFrameRate, RCResolution } from '@rongcloud/plugin-rtc';
|
|
3
3
|
export { RCFrameRate as RCCallPlusFrameRate, RCResolution as RCCallPlusResolution } from '@rongcloud/plugin-rtc';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1674,26 +1674,6 @@ declare class RCCallInnerSession extends EventEmitter {
|
|
|
1674
1674
|
getIsLocalClientHangup(): boolean;
|
|
1675
1675
|
}
|
|
1676
1676
|
|
|
1677
|
-
interface IRCCallInitOptions {
|
|
1678
|
-
/**
|
|
1679
|
-
* RTC 实例
|
|
1680
|
-
*/
|
|
1681
|
-
rtcClient: RCRTCClient;
|
|
1682
|
-
/**
|
|
1683
|
-
* RTC 房间加入类型
|
|
1684
|
-
*/
|
|
1685
|
-
joinType?: RTCJoinType;
|
|
1686
|
-
/**
|
|
1687
|
-
* 控制台日志输出等级
|
|
1688
|
-
*/
|
|
1689
|
-
outputLogLevel?: EnableLogL;
|
|
1690
|
-
/**
|
|
1691
|
-
* 修改默认的 log 输出函数
|
|
1692
|
-
* @deprecated
|
|
1693
|
-
*/
|
|
1694
|
-
logStdout?: (logLevel: EnableLogL, content: string) => void;
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
1677
|
declare enum CallServerAction {
|
|
1698
1678
|
/**
|
|
1699
1679
|
* 开始单人呼叫
|
|
@@ -2002,7 +1982,7 @@ declare class SignalTransporter extends EventEmitter {
|
|
|
2002
1982
|
/**
|
|
2003
1983
|
* constructor
|
|
2004
1984
|
*/
|
|
2005
|
-
constructor(_context: PluginContext, _runtime: IRuntime, _initOpts:
|
|
1985
|
+
constructor(_context: PluginContext, _runtime: IRuntime, _initOpts: ICallPlusInitOpts, _timeCorrectioner: TimeCorrectioner, _logger: BasicLogger, _reportAppEventModule: RCCallPlusReportModule);
|
|
2006
1986
|
private _onMessage;
|
|
2007
1987
|
getSessionId(): string;
|
|
2008
1988
|
getDeviceId(): string;
|
|
@@ -2209,7 +2189,7 @@ declare class RCCallEngine extends EventEmitter {
|
|
|
2209
2189
|
/**
|
|
2210
2190
|
* 构造器
|
|
2211
2191
|
*/
|
|
2212
|
-
constructor(_context: PluginContext, _runtime: IRuntime, _initOpts:
|
|
2192
|
+
constructor(_context: PluginContext, _runtime: IRuntime, _initOpts: ICallPlusInitOpts, _logger: BasicLogger, _reportAppEventModule: RCCallPlusReportModule);
|
|
2213
2193
|
/**
|
|
2214
2194
|
* 发起呼叫
|
|
2215
2195
|
*/
|
|
@@ -2623,6 +2603,10 @@ interface ICallPlusInitOpts {
|
|
|
2623
2603
|
* 是否发布小流
|
|
2624
2604
|
*/
|
|
2625
2605
|
isPubTiny?: boolean;
|
|
2606
|
+
/**
|
|
2607
|
+
* ring 状态下是否允许立即开始新通话,默认为 true
|
|
2608
|
+
*/
|
|
2609
|
+
isAllowNewCallWhenRinging?: boolean;
|
|
2626
2610
|
}
|
|
2627
2611
|
/**
|
|
2628
2612
|
* 通话记录的消息 content 字段
|