@livedigital/client 3.59.1 → 3.60.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';
|
|
@@ -196,14 +196,6 @@ declare class Client {
|
|
|
196
196
|
* @group Медиа
|
|
197
197
|
*/
|
|
198
198
|
deleteTrack(track: Track): Promise<void>;
|
|
199
|
-
/**
|
|
200
|
-
* @deprecated Используйте `requestChannelStateSync()` вместо этого метода.
|
|
201
|
-
* @group Подключение
|
|
202
|
-
* `loadPeers` не является потокобезопасным и допускает состояние гонки между
|
|
203
|
-
* двумя последовательными вызовами. `requestChannelStateSync()` гарантирует
|
|
204
|
-
* атомарное получение состояния канала через событие `channel-state-synced`.
|
|
205
|
-
*/
|
|
206
|
-
loadPeers(role?: Role): Promise<void>;
|
|
207
199
|
/**
|
|
208
200
|
* Запрашивает синхронизацию состояния канала с сервером.
|
|
209
201
|
*
|
|
@@ -212,7 +204,7 @@ declare class Client {
|
|
|
212
204
|
* содержит актуальный список участников и их медиапотоков.
|
|
213
205
|
* @group Подключение
|
|
214
206
|
*/
|
|
215
|
-
requestChannelStateSync(): void
|
|
207
|
+
requestChannelStateSync(): Promise<void>;
|
|
216
208
|
/**
|
|
217
209
|
* Обновляет пользовательские `appData` текущего участника, чтобы другие клиенты получили новый payload.
|
|
218
210
|
* Максимальный размер `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>;
|