dingrtc 3.9.5 → 3.9.6
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 +8 -15
- package/dist/index.esm.js +17608 -3
- package/dist/index.js +17616 -3
- package/dist/index.umd.js +36513 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2236,7 +2236,7 @@ declare class DingRTCClient extends EventEmitter<IClientEvents> {
|
|
|
2236
2236
|
* @param {SubscribeParam[]} batchSubscribeParam
|
|
2237
2237
|
* @returns void
|
|
2238
2238
|
*/
|
|
2239
|
-
batchSubscribe(batchSubscribeParam: SubscribeParam[]): Promise<SubscribeResult[]>;
|
|
2239
|
+
batchSubscribe(batchSubscribeParam: SubscribeParam$1[]): Promise<SubscribeResult[]>;
|
|
2240
2240
|
/**
|
|
2241
2241
|
* 取消订阅远端用户的音视频轨道。
|
|
2242
2242
|
* @param uid 远端用户id。
|
|
@@ -2442,8 +2442,9 @@ declare class ServiceManager extends EventEmitter<ChannelEvens> {
|
|
|
2442
2442
|
handleStreamEvent(action: StreamEventAction, payload: StreamEventPlayload): void;
|
|
2443
2443
|
handleGroupEvent(action: GroupEventAction, group: Group | string, extraPayload?: GroupUser | signal_msg.IGroupProperty | string | signal_msg.IGroupAudioInfo): void;
|
|
2444
2444
|
handleUserEvent(action: UserEventAction, payload: User): void;
|
|
2445
|
-
getStream(param:
|
|
2445
|
+
getStream(param: SubscribeParam): signal_msg.IStream;
|
|
2446
2446
|
private handleSubscribeParam;
|
|
2447
|
+
private checkUnsubParam;
|
|
2447
2448
|
join(joinInfo: JoinParam): Promise<ISignal_msg.IJoinResponse>;
|
|
2448
2449
|
private handleJoinResponse;
|
|
2449
2450
|
private setIceConfig;
|
|
@@ -2456,8 +2457,8 @@ declare class ServiceManager extends EventEmitter<ChannelEvens> {
|
|
|
2456
2457
|
publish(tracks: LocalTrack[]): Promise<void>;
|
|
2457
2458
|
unpublish(tracks: LocalTrack[]): Promise<void>;
|
|
2458
2459
|
private getRemoteTrack;
|
|
2459
|
-
batchSubscribe(batchSubscribeParams:
|
|
2460
|
-
batchUnsubscribe(batchUnsubscribeParam:
|
|
2460
|
+
batchSubscribe(batchSubscribeParams: SubscribeParam[]): Promise<SubscribeResult[]>;
|
|
2461
|
+
batchUnsubscribe(batchUnsubscribeParam: SubscribeParam[]): Promise<void> | Promise<IBatchSubscribeResult[]>;
|
|
2461
2462
|
private updateSubscribedAudioStream;
|
|
2462
2463
|
subscribeGroup(groupId: string): Promise<RemoteAudioTrack>;
|
|
2463
2464
|
unsubscribeGroup(groupId: string): Promise<void>;
|
|
@@ -2999,7 +3000,7 @@ type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'none';
|
|
|
2999
3000
|
* @required mediaType 订阅的轨道媒体类型
|
|
3000
3001
|
* @optional auxiliary 如果订阅视频轨道,是否订阅共享视频流
|
|
3001
3002
|
*/
|
|
3002
|
-
interface SubscribeParam {
|
|
3003
|
+
interface SubscribeParam$1 {
|
|
3003
3004
|
uid: string;
|
|
3004
3005
|
mediaType: TrackMediaType;
|
|
3005
3006
|
auxiliary?: boolean;
|
|
@@ -3440,19 +3441,11 @@ interface SenderEncoding {
|
|
|
3440
3441
|
targetHeight?: number;
|
|
3441
3442
|
priority?: string;
|
|
3442
3443
|
}
|
|
3443
|
-
interface
|
|
3444
|
-
uid?: string;
|
|
3445
|
-
groupId?: string;
|
|
3446
|
-
auxiliary?: boolean;
|
|
3447
|
-
mediaType?: TrackMediaType;
|
|
3448
|
-
action?: 'subscribe' | 'unsubscribe';
|
|
3449
|
-
}
|
|
3450
|
-
interface SubscribeActionParam {
|
|
3444
|
+
interface SubscribeParam {
|
|
3451
3445
|
uid?: string;
|
|
3452
3446
|
groupId?: string;
|
|
3453
3447
|
auxiliary?: boolean;
|
|
3454
3448
|
mediaType?: TrackMediaType;
|
|
3455
|
-
action?: 'subscribe' | 'unsubscribe';
|
|
3456
3449
|
}
|
|
3457
3450
|
type TRACK_EVENT_ACTION = 'replace' | 'mute' | 'unmute' | 'stop' | 'republish' | 'optimizationMode' | 'mirror';
|
|
3458
3451
|
interface InnerPlayConfig {
|
|
@@ -3850,4 +3843,4 @@ declare class DingRTC extends EventEmitter<IGlobalEvent> {
|
|
|
3850
3843
|
declare const _default: DingRTC;
|
|
3851
3844
|
|
|
3852
3845
|
export { AudioSourceInfo, AudioSourceState, CameraVideoTrack, DingRTCClient, FALLBACK_SUB_VIDEO_PROFILE, LocalAudioTrack, LocalTrack, LocalVideoTrack, MicrophoneAudioTrack, RemoteAudioTrack, RemoteTrack, User as RemoteUser, RemoteVideoTrack, Track, VideoSourceInfo, _default as default };
|
|
3853
|
-
export type { BufferSourceAudioTrackConfig, CameraVideoTrackConfig, ChannelEvens, ConnectionState, CustomAudioTrackConfig, CustomVideoTrackConfig, DeviceInfo, DisconnectedReason, GlobalClientConfigInfo, Group, GroupAudioRoute, GroupPropertyUpdateTypes, GroupUser, IClientEvents, ICommonExceptionEvent, IGlobalEvent, ISharedChannelInstance, JoinGroupConfig, JoinParam, LeaveGroupConfig, LocalAudioStates, LocalVideoStates, LocalVideoStatesMap, LogLevel, MicrophoneAudioTrackConfig, NetworkQuality, OptimizationMode, RemoteAudioStates, RemoteStreamType, RemoteVideoStates, RemoteVideoStatesMap, ScreenVideoTrackConfig, SubscribeParam, SubscribeResult, TrackMediaType, UnsubscribeParam, VideoDimension, VideoEncoderConfiguration, VideoPlayerConfig };
|
|
3846
|
+
export type { BufferSourceAudioTrackConfig, CameraVideoTrackConfig, ChannelEvens, ConnectionState, CustomAudioTrackConfig, CustomVideoTrackConfig, DeviceInfo, DisconnectedReason, GlobalClientConfigInfo, Group, GroupAudioRoute, GroupPropertyUpdateTypes, GroupUser, IClientEvents, ICommonExceptionEvent, IGlobalEvent, ISharedChannelInstance, JoinGroupConfig, JoinParam, LeaveGroupConfig, LocalAudioStates, LocalVideoStates, LocalVideoStatesMap, LogLevel, MicrophoneAudioTrackConfig, NetworkQuality, OptimizationMode, RemoteAudioStates, RemoteStreamType, RemoteVideoStates, RemoteVideoStatesMap, ScreenVideoTrackConfig, SubscribeParam$1 as SubscribeParam, SubscribeResult, TrackMediaType, UnsubscribeParam, VideoDimension, VideoEncoderConfiguration, VideoPlayerConfig };
|