@livedigital/client 3.58.0 → 3.59.0-lk-7102-join-credentials.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/Client.d.ts +2 -10
- package/dist/engine/index.d.ts +2 -3
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type Peer from './engine/Peer';
|
|
|
4
4
|
import type { TransportsWebRTCStats } from './engine/WebRTCStats/types';
|
|
5
5
|
import EnhancedEventEmitter from './EnhancedEventEmitter';
|
|
6
6
|
import type { ClientParams } from './types/client';
|
|
7
|
-
import type { AvailableMediaDevices, CreateCameraVideoTrackOptions, CreateCustomAudioOptions, CreateCustomVideoOptions, CreateMicrophoneAudioTrackOptions, CreateScreenMediaOptions, JoinChannelParams,
|
|
7
|
+
import type { AvailableMediaDevices, CreateCameraVideoTrackOptions, CreateCustomAudioOptions, CreateCustomVideoOptions, CreateMicrophoneAudioTrackOptions, CreateScreenMediaOptions, JoinChannelParams, TransportsStateInfo } from './types/common';
|
|
8
8
|
import type { ClientObserverEvents } from './types/engine';
|
|
9
9
|
import type { AudioTrack, Track, VideoTrack } from './types/media';
|
|
10
10
|
import type { IceTransportPolicy } from './types/network';
|
|
@@ -195,14 +195,6 @@ declare class Client {
|
|
|
195
195
|
* @group Медиа
|
|
196
196
|
*/
|
|
197
197
|
deleteTrack(track: Track): Promise<void>;
|
|
198
|
-
/**
|
|
199
|
-
* @deprecated Используйте `requestChannelStateSync()` вместо этого метода.
|
|
200
|
-
* @group Подключение
|
|
201
|
-
* `loadPeers` не является потокобезопасным и допускает состояние гонки между
|
|
202
|
-
* двумя последовательными вызовами. `requestChannelStateSync()` гарантирует
|
|
203
|
-
* атомарное получение состояния канала через событие `channel-state-synced`.
|
|
204
|
-
*/
|
|
205
|
-
loadPeers(role?: Role): Promise<void>;
|
|
206
198
|
/**
|
|
207
199
|
* Запрашивает синхронизацию состояния канала с сервером.
|
|
208
200
|
*
|
|
@@ -211,7 +203,7 @@ declare class Client {
|
|
|
211
203
|
* содержит актуальный список участников и их медиапотоков.
|
|
212
204
|
* @group Подключение
|
|
213
205
|
*/
|
|
214
|
-
requestChannelStateSync(): void
|
|
206
|
+
requestChannelStateSync(): Promise<void>;
|
|
215
207
|
/**
|
|
216
208
|
* Обновляет пользовательские `appData` текущего участника, чтобы другие клиенты получили новый payload.
|
|
217
209
|
* Максимальный размер `appData` — 1 KB. Заменяет объект целиком, не мерджит с предыдущим.
|
package/dist/engine/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import WebRTCIssueDetector from 'webrtc-issue-detector';
|
|
2
2
|
import { ClientMetaProvider } from '../ClientMetaProvider';
|
|
3
3
|
import EnhancedEventEmitter from '../EnhancedEventEmitter';
|
|
4
|
-
import { CreateCameraVideoTrackOptions, CreateCustomAudioOptions, CreateCustomVideoOptions, CreateMicrophoneAudioTrackOptions, CreateScreenMediaOptions, JoinChannelParams
|
|
4
|
+
import { CreateCameraVideoTrackOptions, CreateCustomAudioOptions, CreateCustomVideoOptions, CreateMicrophoneAudioTrackOptions, CreateScreenMediaOptions, JoinChannelParams } from '../types/common';
|
|
5
5
|
import type { PeerTrackFactory } from '../types/container';
|
|
6
6
|
import { ClientObserverEvents, InternalObserverEvents } from '../types/engine';
|
|
7
7
|
import { AudioTrack, BaseTrack, Track } from '../types/media';
|
|
@@ -67,8 +67,7 @@ declare class Engine {
|
|
|
67
67
|
get myPeerId(): string | undefined;
|
|
68
68
|
confirmActivity(): Promise<void>;
|
|
69
69
|
join({ token, appData, isP2pCall, preferredDC }: JoinChannelParams): Promise<void>;
|
|
70
|
-
|
|
71
|
-
requestChannelStateSync(): void;
|
|
70
|
+
requestChannelStateSync(): Promise<void>;
|
|
72
71
|
updateAppData(appData: Record<string, unknown>): Promise<void>;
|
|
73
72
|
createCameraVideoTrack(options?: CreateCameraVideoTrackOptions): Promise<VideoTrack>;
|
|
74
73
|
createMicrophoneAudioTrack(options?: CreateMicrophoneAudioTrackOptions): Promise<AudioTrack>;
|