@livedigital/client 2.41.1 → 2.42.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.
@@ -32,6 +32,8 @@ export declare const INTERNAL_CLIENT_EVENTS: {
32
32
  export declare const PEER_EVENTS: {
33
33
  mediaPublished: string;
34
34
  mediaUnPublished: string;
35
+ publisherPaused: string;
36
+ publisherResumed: string;
35
37
  connectionQualityChanged: string;
36
38
  trackStart: string;
37
39
  trackEnd: string;
@@ -51,8 +53,10 @@ export declare enum SocketIOEvents {
51
53
  export declare const MEDIASOUP_EVENTS: {
52
54
  newProducer: string;
53
55
  producerClose: string;
54
- pauseProducer: string;
55
- resumeProducer: string;
56
+ producerPause: string;
57
+ producerResume: string;
58
+ producerPaused: string;
59
+ producerResumed: string;
56
60
  producerScoreChanged: string;
57
61
  producerSetMaxSpatialLayer: string;
58
62
  producerRequestMaxSpatialLayer: string;
@@ -1,6 +1,7 @@
1
1
  import { ProducerData, ConnectionQuality, PayloadOfPublishedMedia, Role, PeerInfo, SubscribeOptions } from '../types/common';
2
2
  import EnhancedEventEmitter from '../EnhancedEventEmitter';
3
3
  import Engine from './index';
4
+ import PeerProducer from './PeerProducer';
4
5
  import PeerConsumer from './PeerConsumer';
5
6
  import PeerTrack from './media/tracks/PeerTrack';
6
7
  interface PeerConstructor {
@@ -30,7 +31,7 @@ declare class Peer {
30
31
  uid?: string;
31
32
  private applicationData;
32
33
  role: Role;
33
- private producers;
34
+ producers: Map<string, PeerProducer>;
34
35
  readonly tracks: Map<string, PeerTrack>;
35
36
  private readonly engine;
36
37
  private readonly _observer;
@@ -6,6 +6,7 @@ declare class PeerProducer {
6
6
  readonly kind: MediaKind;
7
7
  readonly peerId: string;
8
8
  readonly label: TrackLabel;
9
+ paused: boolean;
9
10
  readonly encodings: RtpEncodingParameters[];
10
11
  readonly trackTransformParams: TrackTransformParams;
11
12
  readonly maxSpatialLayer: number;