@vkontakte/calls-sdk 2.8.13-dev.b9b0c10d.0 → 2.8.13-dev.c10d5c5a.0

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.
@@ -16,8 +16,9 @@ export default class AudioOutput {
16
16
  private readonly _statFirstMediaReceived;
17
17
  private readonly _logger;
18
18
  private _autoplayRecoveryController;
19
+ private _refreshAudioElement;
19
20
  constructor(statFirstMediaReceived: StatFirstMediaReceived, allowMultipleTracks?: boolean, debug?: DebugLogger, logger?: StatEventCollector | null);
20
- add(participantId: ParticipantId, track: MediaStreamTrack): void;
21
+ add(participantId: ParticipantId, track: MediaStreamTrack, replaceAll?: boolean): void;
21
22
  remove(participantId: ParticipantId, track: MediaStreamTrack): void;
22
23
  get volume(): number;
23
24
  set volume(volume: number);
@@ -37,6 +37,8 @@ export declare class Transport extends EventEmitter {
37
37
  private _opened;
38
38
  private _directTransport;
39
39
  private _serverTransport;
40
+ private _pendingServerAudio;
41
+ private _serverAudioController;
40
42
  private _serverSettings;
41
43
  private _dtListeners;
42
44
  private _stListeners;
@@ -91,6 +93,9 @@ export declare class Transport extends EventEmitter {
91
93
  private _onServerAudioMixStall;
92
94
  private _onRemoteDataStats;
93
95
  private _onRemoteTrackAdded;
96
+ private _onServerTrackAdded;
97
+ private _trySwitchToServerAudio;
98
+ private _clearPendingServerAudio;
94
99
  private _onRemoteTrackRemoved;
95
100
  private _onAsrTranscription;
96
101
  private _onSourceChanged;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.8.13-dev.b9b0c10d.0",
3
+ "version": "2.8.13-dev.c10d5c5a.0",
4
4
  "author": "vk.com",
5
5
  "description": "Library for video calls based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -4,7 +4,6 @@
4
4
  import { IVideoDimentions } from '../types/MediaSettings';
5
5
  import type StatEventCollector from '../classes/stat/StatEventCollector';
6
6
  import { type DebugLogger } from './Debug';
7
- import { DeviceSelection } from '../types/DeviceSelection';
8
7
  /**
9
8
  * Тип камеры мобильного устройства
10
9
  */
@@ -57,12 +56,6 @@ declare namespace WebRTCUtils {
57
56
  * Возвращает сохраненное устройство вывода
58
57
  */
59
58
  function getSavedOutput(): MediaDeviceInfo | null;
60
- /** Возвращает способ выбора и фактически используемую камеру. */
61
- function getCameraSelection(): DeviceSelection;
62
- /** Возвращает способ выбора и фактически используемый микрофон. */
63
- function getMicrophoneSelection(): DeviceSelection;
64
- /** Возвращает способ выбора и фактически используемый аудиовыход. */
65
- function getOutputSelection(): DeviceSelection;
66
59
  /**
67
60
  * Возвращает тип используемой камеры (передняя или задняя)
68
61
  */
@@ -1,8 +0,0 @@
1
- /** Способ выбора устройства. */
2
- export type DeviceSelectionMode = 'default' | 'explicit';
3
- /** Состояние выбора и фактически используемое устройство. */
4
- export interface DeviceSelection {
5
- mode: DeviceSelectionMode;
6
- device: MediaDeviceInfo | null;
7
- deviceId: string | null;
8
- }