@livedigital/client 3.17.0-new-peer-id.2 → 3.17.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.
@@ -1,5 +1,5 @@
1
1
  import { LogLevel } from '../types/common';
2
- export declare const SIGNALING_API_VERSION = 3;
2
+ export declare const SIGNALING_API_VERSION = 4;
3
3
  export declare const LOG_LEVEL_ERROR: LogLevel;
4
4
  export declare const LOG_LEVEL_WARN: LogLevel;
5
5
  export declare const LOG_LEVEL_INFO: LogLevel;
@@ -1,6 +1,6 @@
1
1
  import { LogLevel } from '../types/common';
2
2
 
3
- export const SIGNALING_API_VERSION = 3;
3
+ export const SIGNALING_API_VERSION = 4;
4
4
 
5
5
  export const LOG_LEVEL_ERROR: LogLevel = 3;
6
6
  export const LOG_LEVEL_WARN: LogLevel = 4;
@@ -11,6 +11,7 @@ export declare const CHANNEL_EVENTS: {
11
11
  readonly getAudioObserverProducer: "channel.getAudioObserverProducer";
12
12
  readonly getGeneralDataProducer: "channel.getGeneralDataProducer";
13
13
  readonly getChannelStateSyncDataProducer: "channel.getChannelStateSyncDataProducer";
14
+ readonly ping: "peer.ping";
14
15
  };
15
16
  export declare const CLIENT_EVENTS: {
16
17
  readonly channelEvent: "channel-event";
@@ -23,6 +24,7 @@ export declare const CLIENT_EVENTS: {
23
24
  readonly devicesListUpdated: "devices-list-updated";
24
25
  readonly transportConnectionTimeout: "transport-connection-timeout";
25
26
  readonly trackForceClosed: "track-force-closed";
27
+ readonly trackFailed: "track-failed";
26
28
  readonly activeSpeakerChanged: "active-speaker-changed";
27
29
  readonly channelStateInconsistent: "channel-state-inconsistent";
28
30
  readonly connectionLost: "connection-lost";
@@ -40,6 +42,7 @@ export declare const INTERNAL_CLIENT_EVENTS: {
40
42
  readonly trackResumed: "track-resumed";
41
43
  readonly trackClosed: "track-closed";
42
44
  readonly trackReopened: "track-reopened";
45
+ readonly trackFailed: "track-failed";
43
46
  };
44
47
  export declare const PEER_EVENTS: {
45
48
  readonly mediaPublished: "media-published";
@@ -82,7 +85,7 @@ export declare const MEDIASOUP_EVENTS: {
82
85
  readonly transportStateChange: "connectionstatechange";
83
86
  readonly transportGetIceParameters: "transport.getIceParameters";
84
87
  };
85
- export declare const MEDIASOUP_MANUAL_TRACK_EVENTS: string[];
88
+ export declare const MEDIASOUP_MEDIA_ACTIONS_TRACK_EVENTS: string[];
86
89
  export declare const NETWORK_OBSERVER_EVENTS: {
87
90
  readonly socketState: "socket-state";
88
91
  readonly transportState: "transport-state";
@@ -11,6 +11,7 @@ export const CHANNEL_EVENTS = {
11
11
  getAudioObserverProducer: 'channel.getAudioObserverProducer',
12
12
  getGeneralDataProducer: 'channel.getGeneralDataProducer',
13
13
  getChannelStateSyncDataProducer: 'channel.getChannelStateSyncDataProducer',
14
+ ping: 'peer.ping',
14
15
  } as const;
15
16
 
16
17
  export const CLIENT_EVENTS = {
@@ -24,6 +25,7 @@ export const CLIENT_EVENTS = {
24
25
  devicesListUpdated: 'devices-list-updated',
25
26
  transportConnectionTimeout: 'transport-connection-timeout',
26
27
  trackForceClosed: 'track-force-closed',
28
+ trackFailed: 'track-failed',
27
29
  activeSpeakerChanged: 'active-speaker-changed',
28
30
  channelStateInconsistent: 'channel-state-inconsistent',
29
31
  connectionLost: 'connection-lost',
@@ -43,6 +45,7 @@ export const INTERNAL_CLIENT_EVENTS = {
43
45
  trackResumed: 'track-resumed',
44
46
  trackClosed: 'track-closed',
45
47
  trackReopened: 'track-reopened',
48
+ trackFailed: 'track-failed',
46
49
  } as const;
47
50
 
48
51
  export const PEER_EVENTS = {
@@ -88,10 +91,11 @@ export const MEDIASOUP_EVENTS = {
88
91
  transportGetIceParameters: 'transport.getIceParameters',
89
92
  } as const;
90
93
 
91
- export const MEDIASOUP_MANUAL_TRACK_EVENTS = [
94
+ export const MEDIASOUP_MEDIA_ACTIONS_TRACK_EVENTS = [
92
95
  MEDIASOUP_EVENTS.transportCreate as string,
93
96
  MEDIASOUP_EVENTS.transportConnect as string,
94
97
  MEDIASOUP_EVENTS.transportProduce as string,
98
+ MEDIASOUP_EVENTS.transportGetIceParameters as string,
95
99
  MEDIASOUP_EVENTS.producerClose as string,
96
100
  MEDIASOUP_EVENTS.producerPause as string,
97
101
  MEDIASOUP_EVENTS.producerResume as string,
@@ -99,6 +103,7 @@ export const MEDIASOUP_MANUAL_TRACK_EVENTS = [
99
103
  MEDIASOUP_EVENTS.resumeConsumer as string,
100
104
  MEDIASOUP_EVENTS.createConsumer as string,
101
105
  MEDIASOUP_EVENTS.closeConsumer as string,
106
+ CHANNEL_EVENTS.ping as string,
102
107
  ];
103
108
 
104
109
  export const NETWORK_OBSERVER_EVENTS = {
@@ -11,6 +11,7 @@ declare class ChannelStateSynchronizer {
11
11
  constructor({ engine, onLogMessage, logLevel }: ChannelStateSynchronizerParams);
12
12
  private watchNetworkState;
13
13
  private restoreState;
14
+ private restoreRemoteProducersState;
14
15
  private removeUnnecessaryPeers;
15
16
  private setMissingPeers;
16
17
  private restoreLocalPeersState;
@@ -39,6 +39,7 @@ declare class Network {
39
39
  createDataConsumer({ producerId, appId, channelId, ordered, }: CreateDataConsumerPayload): Promise<DataConsumer>;
40
40
  closeRemoteConsumer(consumerId: string): Promise<SocketResponse>;
41
41
  resumeRemoteConsumer(consumerId: string): Promise<SocketResponse>;
42
+ pauseRemoteProducer(producerId: string): Promise<SocketResponse>;
42
43
  pauseRemoteConsumer(consumerId: string): Promise<SocketResponse>;
43
44
  updatePeerAppData({ peerId, appData }: UpdatePeerAppDataPayload): Promise<SocketResponse>;
44
45
  getAudioObserverProducer(): Promise<SocketResponse>;