@livedigital/client 3.50.0-tt-932-debug-panel.1 → 3.50.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.
- package/dist/ClientMetaProvider.d.ts +2 -0
- package/dist/constants/network.d.ts +1 -0
- package/dist/constants/network.ts +4 -0
- package/dist/engine/media/tracks/PeerTrack.d.ts +4 -1
- package/dist/engine/network/index.d.ts +1 -1
- package/dist/engine/signalingApiClient/api.d.ts +9 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +2 -2
- package/dist/index.js +2 -2
- package/dist/types/common.d.ts +0 -2
- package/package.json +2 -2
|
@@ -2,6 +2,7 @@ export interface ClientMetaPayload {
|
|
|
2
2
|
peerId?: string;
|
|
3
3
|
channelId?: string;
|
|
4
4
|
appId?: string;
|
|
5
|
+
datacenterName?: string;
|
|
5
6
|
}
|
|
6
7
|
export declare class ClientMetaProvider {
|
|
7
8
|
#private;
|
|
@@ -9,6 +10,7 @@ export declare class ClientMetaProvider {
|
|
|
9
10
|
setPeerId(id: string): void;
|
|
10
11
|
setChannelId(id: string): void;
|
|
11
12
|
setAppId(id: string): void;
|
|
13
|
+
setDatacenterName(name: string): void;
|
|
12
14
|
clear(): void;
|
|
13
15
|
}
|
|
14
16
|
declare const _default: ClientMetaProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const REJOIN_REQUIRED_CONSUMER_ERROR_MESSAGES: readonly ["no media section found for reuseMid", "Duplicate a=msid lines detected"];
|
|
@@ -37,6 +37,9 @@ interface PeerTrackObserverEvents {
|
|
|
37
37
|
[PEER_EVENTS.trackPaused]: [PeerTrack];
|
|
38
38
|
[PEER_EVENTS.trackResumed]: [PeerTrack];
|
|
39
39
|
}
|
|
40
|
+
interface CloseTrackParams {
|
|
41
|
+
closeRemote?: boolean;
|
|
42
|
+
}
|
|
40
43
|
declare class PeerTrack {
|
|
41
44
|
#private;
|
|
42
45
|
readonly label: TrackLabel;
|
|
@@ -54,7 +57,7 @@ declare class PeerTrack {
|
|
|
54
57
|
get isMuted(): boolean;
|
|
55
58
|
get consumerId(): string | undefined;
|
|
56
59
|
get currentSpatialLayer(): number;
|
|
57
|
-
close(): Promise<void>;
|
|
60
|
+
close({ closeRemote }?: CloseTrackParams): Promise<void>;
|
|
58
61
|
mute(): Promise<void>;
|
|
59
62
|
unmute(): Promise<void>;
|
|
60
63
|
pause(pauseRemote?: boolean): Promise<void>;
|
|
@@ -42,7 +42,7 @@ declare class Network {
|
|
|
42
42
|
createSignalingTransport(mediasoupDevice: Device): Promise<LDTransport>;
|
|
43
43
|
getIceParameters(transport: LDTransport): Promise<IceParameters>;
|
|
44
44
|
restartIce(transport: LDTransport): Promise<void>;
|
|
45
|
-
createConsumer({ producerId, rtpCapabilities,
|
|
45
|
+
createConsumer({ producerId, rtpCapabilities, producerPeerId, }: CreateConsumerPayload): Promise<CreateConsumerResponse>;
|
|
46
46
|
initializeHeartbeats(): Promise<void>;
|
|
47
47
|
createKeepAliveConsumer(): Promise<void>;
|
|
48
48
|
get channelMessagesDataConsumer(): types.DataConsumer | undefined;
|
|
@@ -135,6 +135,7 @@ export interface ConsumerCreateResponse {
|
|
|
135
135
|
}
|
|
136
136
|
export interface RtpParameters {
|
|
137
137
|
mid?: string;
|
|
138
|
+
msid?: string;
|
|
138
139
|
codecs: RtpCodecParameters[];
|
|
139
140
|
headerExtensions?: RtpHeaderExtensionParameters[];
|
|
140
141
|
encodings?: RtpEncodingParameters[];
|
|
@@ -850,6 +851,8 @@ export declare namespace Consumer {
|
|
|
850
851
|
rtpCapabilities: RtpCapabilities;
|
|
851
852
|
appData?: TConsumerAppData;
|
|
852
853
|
producerPeerId: PeerId;
|
|
854
|
+
/** Force close existing consumer with matching identifiers before creating a new one. */
|
|
855
|
+
forceCloseExisting?: boolean;
|
|
853
856
|
};
|
|
854
857
|
type RequestHeaders = {
|
|
855
858
|
/**
|
|
@@ -1207,6 +1210,8 @@ export declare namespace Transport {
|
|
|
1207
1210
|
kind: MediaKind;
|
|
1208
1211
|
rtpParameters: RtpParameters;
|
|
1209
1212
|
appData: TProducerAppData;
|
|
1213
|
+
/** Force close existing producer with matching identifiers before creating a new one. */
|
|
1214
|
+
forceCloseExisting?: boolean;
|
|
1210
1215
|
};
|
|
1211
1216
|
type RequestHeaders = {
|
|
1212
1217
|
/**
|
|
@@ -1590,6 +1595,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1590
1595
|
rtpCapabilities: RtpCapabilities;
|
|
1591
1596
|
appData?: TConsumerAppData;
|
|
1592
1597
|
producerPeerId: PeerId;
|
|
1598
|
+
/** Force close existing consumer with matching identifiers before creating a new one. */
|
|
1599
|
+
forceCloseExisting?: boolean;
|
|
1593
1600
|
}, params?: RequestParams) => Promise<AxiosResponse<{
|
|
1594
1601
|
id?: string;
|
|
1595
1602
|
producerId?: ProducerId;
|
|
@@ -1743,6 +1750,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1743
1750
|
kind: MediaKind;
|
|
1744
1751
|
rtpParameters: RtpParameters;
|
|
1745
1752
|
appData: TProducerAppData;
|
|
1753
|
+
/** Force close existing producer with matching identifiers before creating a new one. */
|
|
1754
|
+
forceCloseExisting?: boolean;
|
|
1746
1755
|
}, params?: RequestParams) => Promise<AxiosResponse<{
|
|
1747
1756
|
id: string;
|
|
1748
1757
|
}, any>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ declare class Client {
|
|
|
36
36
|
setPreferRelay(value: boolean): void;
|
|
37
37
|
getPreferRelay(): boolean;
|
|
38
38
|
changeIceTransportPolicy(policy: IceTransportPolicy): Promise<void>;
|
|
39
|
-
restartIce(): Promise<void>;
|
|
40
39
|
transportsStats(): TransportsWebRTCStats | undefined;
|
|
41
40
|
setSignalingServerUrl(url: string): void;
|
|
42
41
|
}
|