dingrtc 3.9.22-beta.1 → 3.9.22-beta.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.
- package/dist/index.d.ts +5 -4
- package/dist/index.esm.js +18568 -3
- package/dist/index.js +18576 -3
- package/dist/index.umd.js +37997 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2432,8 +2432,9 @@ declare class StreamManager extends EventEmitter<StreamManagerEvent> {
|
|
|
2432
2432
|
private add;
|
|
2433
2433
|
remove(id: string, needNotify?: boolean): void;
|
|
2434
2434
|
getStreamByTrackId(trackId: string): signal_msg.IStream;
|
|
2435
|
-
handleEvent(payload: signal_msg.IStreamNotification,
|
|
2436
|
-
|
|
2435
|
+
handleEvent(payload: signal_msg.IStreamNotification, fromSyncRpc?: boolean): void;
|
|
2436
|
+
private debounceSyncRpc;
|
|
2437
|
+
private doSyncRpc;
|
|
2437
2438
|
handleSyncEvent(payload: ISignal_msg.ISyncNotification): void;
|
|
2438
2439
|
}
|
|
2439
2440
|
|
|
@@ -3846,14 +3847,14 @@ declare class DingRTC extends EventEmitter<IGlobalEvent> {
|
|
|
3846
3847
|
* @param config 自定义视频轨道的配置
|
|
3847
3848
|
* @returns 自定义视频轨道
|
|
3848
3849
|
*/
|
|
3849
|
-
createCustomVideoTrack(config: CustomVideoTrackConfig): Promise<LocalVideoTrack>;
|
|
3850
|
+
createCustomVideoTrack(config: CustomVideoTrackConfig, videoSourceType: 'camera' | 'screen-cast'): Promise<LocalVideoTrack>;
|
|
3850
3851
|
/**
|
|
3851
3852
|
* 创建一个自定义的音频轨道。
|
|
3852
3853
|
* 你可以使用这个方法将自己维护的 MediaStreamTrack 转换成一个可以用于 SDK 的音频轨道。
|
|
3853
3854
|
* @param config 自定义音频的配置
|
|
3854
3855
|
* @returns 自定义音频轨道
|
|
3855
3856
|
*/
|
|
3856
|
-
createCustomAudioTrack(config: CustomAudioTrackConfig): Promise<LocalAudioTrack>;
|
|
3857
|
+
createCustomAudioTrack(config: CustomAudioTrackConfig, audioSourceType: 'mic' | 'screen-cast'): Promise<LocalAudioTrack>;
|
|
3857
3858
|
/**
|
|
3858
3859
|
* 创建用于屏幕共享的视频轨道。
|
|
3859
3860
|
* @param config 屏幕共享的视频配置,包括编码配置、采集配置等。
|