@livedigital/client 2.24.0 → 2.24.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.
@@ -1,4 +1,4 @@
1
- import { ProducerData, ConnectionQuality, PayloadOfPublishedMedia, Role, PeerInfo } from '../types/common';
1
+ import { ProducerData, ConnectionQuality, PayloadOfPublishedMedia, Role, PeerInfo, SubscribeOptions } from '../types/common';
2
2
  import EnhancedEventEmitter from '../EnhancedEventEmitter';
3
3
  import Engine from './index';
4
4
  import PeerConsumer from './PeerConsumer';
@@ -43,7 +43,7 @@ declare class Peer {
43
43
  get observer(): EnhancedEventEmitter;
44
44
  get isMe(): boolean;
45
45
  get publishedMedia(): PayloadOfPublishedMedia[];
46
- subscribe(producerId: string): Promise<void>;
46
+ subscribe({ producerId, paused }: SubscribeOptions): Promise<void>;
47
47
  getInfo(): Promise<PeerInfo>;
48
48
  private handleNewProducer;
49
49
  private handlePeerEvents;
@@ -9,6 +9,7 @@ interface PeerTrackConstructor {
9
9
  consumer?: PeerConsumer;
10
10
  engine: Engine;
11
11
  isPaused: boolean;
12
+ isProducerPaused?: boolean;
12
13
  peerEventEmitter: EnhancedEventEmitter;
13
14
  }
14
15
  declare class PeerTrack {
@@ -38,5 +39,6 @@ declare class PeerTrack {
38
39
  private restartConsumer;
39
40
  private isInboundRTPStreamActive;
40
41
  private clearCheckStateTimeout;
42
+ setIsTrackProducerPaused(value: boolean): void;
41
43
  }
42
44
  export default PeerTrack;