@vkontakte/calls-sdk 2.6.2-dev.5b6408b.0 → 2.6.2-dev.65f330d.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.
@@ -14,6 +14,7 @@ import MediaSettings from '../types/MediaSettings';
14
14
  import { IAddMovieParams, ISharedMovieState } from '../types/MovieShare';
15
15
  import MuteStates from '../types/MuteStates';
16
16
  import { CompositeUserId, ParticipantId } from '../types/Participant';
17
+ import { ParticipantLayout, RequestKeyFrame, StopStream } from '../types/ParticipantLayout';
17
18
  import { ParticipantListChunkParameters } from '../types/ParticipantListChunk';
18
19
  import SignalingMessage from '../types/SignalingMessage';
19
20
  import { WaitingParticipantId } from '../types/WaitingHall';
@@ -54,7 +55,7 @@ export default abstract class BaseSignaling extends EventEmitter {
54
55
  [key: string]: number;
55
56
  }): Promise<SignalingMessage | void>;
56
57
  abstract updateDisplayLayout(layouts: {
57
- [key: string]: string;
58
+ [streamDesc: string]: ParticipantLayout | StopStream | RequestKeyFrame;
58
59
  }): Promise<SignalingMessage | void>;
59
60
  abstract addMovie(data: IAddMovieParams): Promise<SignalingMessage>;
60
61
  abstract updateMovie(data: ISharedMovieState): Promise<SignalingMessage>;
@@ -79,6 +80,7 @@ export default abstract class BaseSignaling extends EventEmitter {
79
80
  abstract promoteParticipant(participantId: CompositeUserId, demote?: boolean): Promise<SignalingMessage>;
80
81
  abstract setProducerNotificationDataChannel(dataChannel: RTCDataChannel): void;
81
82
  abstract setProducerCommandDataChannel(dataChannel: RTCDataChannel): void;
83
+ abstract useCommandDataChannel(status: boolean): void;
82
84
  abstract getParticipantListChunk(participantListChunkParameters: ParticipantListChunkParameters): Promise<SignalingMessage>;
83
85
  abstract getParticipants(externalIds: SignalingMessage.ExternalId[]): Promise<SignalingMessage>;
84
86
  get ready(): boolean;