aliyun-rtc-sdk 6.12.1-beta.0 → 6.12.1-beta.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/aliyun-rtc-sdk.js +14 -14
- package/dist/types/index.d.ts +24 -6
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -227,8 +227,6 @@ export declare class AliRtcEngine extends default_2<AliRtcEngineEventListener> {
|
|
|
227
227
|
protected slsReporter: SLSReporter;
|
|
228
228
|
protected connectState: AliRtcConnectionStatus;
|
|
229
229
|
protected networkError: boolean;
|
|
230
|
-
private audioMixerPlugin;
|
|
231
|
-
private dualVideoPlugin;
|
|
232
230
|
private _audioOnlyMode;
|
|
233
231
|
private _authInfoWillExpireTimer;
|
|
234
232
|
private _authInfoExpiredTimer;
|
|
@@ -295,6 +293,12 @@ export declare class AliRtcEngine extends default_2<AliRtcEngineEventListener> {
|
|
|
295
293
|
*/
|
|
296
294
|
protected onNetworkRecovery(users?: JoinInfo[]): Promise<void>;
|
|
297
295
|
private resumeSubList;
|
|
296
|
+
/**
|
|
297
|
+
* 重新订阅远端用户
|
|
298
|
+
* @param {string} userId
|
|
299
|
+
* @returns {Promise<void>}
|
|
300
|
+
*/
|
|
301
|
+
retrySubscribe(userId: string): Promise<void>;
|
|
298
302
|
/**
|
|
299
303
|
* 处理网络异常
|
|
300
304
|
* @param {AliRtcError} err
|
|
@@ -328,6 +332,7 @@ export declare class AliRtcEngine extends default_2<AliRtcEngineEventListener> {
|
|
|
328
332
|
* @note 该接口只可以在加入频道之前调用,会议中不可以重新设置,离开频道后可以重新设置
|
|
329
333
|
*/
|
|
330
334
|
setChannelProfile(channelProfile: AliRtcSdkChannelProfile): void;
|
|
335
|
+
private startAndPublishDefaultDevices;
|
|
331
336
|
/**
|
|
332
337
|
* 设置用户角色
|
|
333
338
|
* @param {AliRtcSdkClientRole} clientRole 用户角色类型,默认值为 {@link AliRtcSdkClientRole.AliRtcSdkLive}(观众角色)
|
|
@@ -2129,6 +2134,11 @@ declare interface AudioLevelMonitorListener {
|
|
|
2129
2134
|
audioLevel: (level: number) => void;
|
|
2130
2135
|
}
|
|
2131
2136
|
|
|
2137
|
+
declare interface AudioMixerPluginOptions {
|
|
2138
|
+
audio?: number;
|
|
2139
|
+
screen?: number;
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2132
2142
|
/**
|
|
2133
2143
|
* ------------------ 模式 ----- 采样率 ----- 声道 ----- 码率(kbps) -----
|
|
2134
2144
|
*
|
|
@@ -2161,6 +2171,8 @@ declare class BizControl extends default_2<BizControlListener> {
|
|
|
2161
2171
|
protected authInfo?: AliRtcAuthInfo;
|
|
2162
2172
|
protected signalingManager: SignalingManager;
|
|
2163
2173
|
pluginManager: PluginManager;
|
|
2174
|
+
private audioMixerPlugin?;
|
|
2175
|
+
private dualVideoPlugin?;
|
|
2164
2176
|
protected slsReporter: SLSReporter;
|
|
2165
2177
|
private statsMonitorId?;
|
|
2166
2178
|
private autoSubAudio;
|
|
@@ -2288,6 +2300,8 @@ declare class BizControl extends default_2<BizControlListener> {
|
|
|
2288
2300
|
updateScreenWant(uid: string, sub: boolean): void;
|
|
2289
2301
|
private stopIndication;
|
|
2290
2302
|
private startIndication;
|
|
2303
|
+
setEnableDualVideoStream(enabled: boolean, options?: AliRtcDualVideoPluginOptions): void;
|
|
2304
|
+
setAudioVolume(options: AudioMixerPluginOptions): void;
|
|
2291
2305
|
enableAudioVolumeIndication(interval: number): void;
|
|
2292
2306
|
setPlayoutVolume(volume: number): void;
|
|
2293
2307
|
refreshAuthInfo(authInfo: AliRtcRefreshAuthInfo): void;
|
|
@@ -2630,7 +2644,8 @@ declare class LocalUser extends User {
|
|
|
2630
2644
|
clear(): Promise<void>;
|
|
2631
2645
|
resetElement(element: HTMLVideoElement): void;
|
|
2632
2646
|
setPreviewElement(previewParams: PreviewConfig): void;
|
|
2633
|
-
|
|
2647
|
+
startDefaultCamera(audioOnly: boolean): Promise<void>;
|
|
2648
|
+
startDefaultAudio(): Promise<void>;
|
|
2634
2649
|
/**
|
|
2635
2650
|
* 为本地预览设置渲染元素和视频流
|
|
2636
2651
|
* @param {AliRtcLocalView} view 渲染元素,null 则为停止显示
|
|
@@ -2865,8 +2880,9 @@ declare interface OSSToken {
|
|
|
2865
2880
|
|
|
2866
2881
|
declare class PluginManager extends default_2<PluginManagerListener> {
|
|
2867
2882
|
private plugins;
|
|
2868
|
-
add(plugin: AliRtcPlugin, options
|
|
2883
|
+
add(plugin: AliRtcPlugin, options?: any): void;
|
|
2869
2884
|
remove(name: string): void;
|
|
2885
|
+
removeAll(): void;
|
|
2870
2886
|
get(name: string): AliRtcPlugin | undefined;
|
|
2871
2887
|
has(name: string): boolean;
|
|
2872
2888
|
getAll(): AliRtcPlugin[];
|
|
@@ -2919,7 +2935,8 @@ declare type PublishOptions = StreamOptions & {
|
|
|
2919
2935
|
|
|
2920
2936
|
declare enum PublishReason {
|
|
2921
2937
|
MANUAL = 0,
|
|
2922
|
-
|
|
2938
|
+
JOIN_CHANNEL = 1,
|
|
2939
|
+
ROLE_CHANGE = 2
|
|
2923
2940
|
}
|
|
2924
2941
|
|
|
2925
2942
|
declare interface PublishStreamInfo {
|
|
@@ -3788,7 +3805,8 @@ declare enum SubscribeReason {
|
|
|
3788
3805
|
Join = "join",
|
|
3789
3806
|
Publish = "publish",
|
|
3790
3807
|
User = "user",
|
|
3791
|
-
Resume = "resume"
|
|
3808
|
+
Resume = "resume",
|
|
3809
|
+
Retry = "retry"
|
|
3792
3810
|
}
|
|
3793
3811
|
|
|
3794
3812
|
declare interface TimeRecorder {
|