@livedigital/client 2.15.0 → 2.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.
- package/dist/constants/events.d.ts +2 -0
- package/dist/engine/index.d.ts +1 -1
- package/dist/engine/media/tracks/AudioTrack.d.ts +2 -1
- package/dist/engine/wid/detectors/InboundNetworkIssueDetector.d.ts +8 -0
- package/dist/engine/wid/detectors/OutboundNetworkIssueDetector.d.ts +8 -0
- package/dist/engine/wid/detectors/{NetworkIssueDetector.d.ts → VideoCodecMismatchDetector.d.ts} +2 -2
- package/dist/engine/wid/types.d.ts +11 -4
- package/dist/index.es.js +1 -1
- package/dist/index.js +2 -2
- package/dist/types/common.d.ts +8 -0
- package/package.json +1 -1
- package/src/constants/events.ts +2 -0
- package/src/engine/handlers/MediaSoupEventHandler.ts +28 -2
- package/src/engine/index.ts +5 -5
- package/src/engine/media/index.ts +4 -9
- package/src/engine/media/tracks/AudioTrack.ts +10 -1
- package/src/engine/media/tracks/VideoTrack.ts +11 -2
- package/src/engine/network/Socket.ts +5 -1
- package/src/engine/network/index.ts +2 -4
- package/src/engine/wid/WebRTCIssueDetector.ts +7 -2
- package/src/engine/wid/detectors/{NetworkIssueDetector.ts → InboundNetworkIssueDetector.ts} +6 -5
- package/src/engine/wid/detectors/OutboundNetworkIssueDetector.ts +115 -0
- package/src/engine/wid/detectors/VideoCodecMismatchDetector.ts +39 -0
- package/src/engine/wid/types.ts +10 -3
- package/src/types/common.ts +10 -0
|
@@ -10,6 +10,7 @@ export declare const CLIENT_EVENTS: {
|
|
|
10
10
|
peerLeft: string;
|
|
11
11
|
channelRejoinRequired: string;
|
|
12
12
|
devicesListUpdated: string;
|
|
13
|
+
transportConnectionTimeout: string;
|
|
13
14
|
};
|
|
14
15
|
export declare const PEER_EVENTS: {
|
|
15
16
|
mediaPublished: string;
|
|
@@ -47,6 +48,7 @@ export declare const MEDIASOUP_EVENTS: {
|
|
|
47
48
|
transportClose: string;
|
|
48
49
|
transportConnect: string;
|
|
49
50
|
transportProduce: string;
|
|
51
|
+
transportConnectionTimeout: string;
|
|
50
52
|
transportStateChange: string;
|
|
51
53
|
transportGetIceParameters: string;
|
|
52
54
|
};
|
package/dist/engine/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ProducerCodecOptions } from 'mediasoup-client/lib/Producer';
|
|
2
|
-
import { AudioEncoderConfig } from '../../../types/common';
|
|
2
|
+
import { AudioCodec, AudioEncoderConfig } from '../../../types/common';
|
|
3
3
|
import BaseTrack from './BaseTrack';
|
|
4
4
|
import TrackWithCodecOptions from './TrackWithCodecOptions';
|
|
5
5
|
declare class AudioTrack extends BaseTrack implements TrackWithCodecOptions {
|
|
6
6
|
getEncoderConfig(): AudioEncoderConfig;
|
|
7
7
|
getCodecOptions(): ProducerCodecOptions;
|
|
8
|
+
getPreferredCodec(): AudioCodec;
|
|
8
9
|
}
|
|
9
10
|
export default AudioTrack;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WebRTCStatsEventData } from '@peermetrics/webrtc-stats';
|
|
2
|
+
import { IssueDetector, IssueDetectorResult } from '../types';
|
|
3
|
+
declare class InboundNetworkIssueDetector implements IssueDetector {
|
|
4
|
+
#private;
|
|
5
|
+
detect(data: WebRTCStatsEventData): IssueDetectorResult;
|
|
6
|
+
private processData;
|
|
7
|
+
}
|
|
8
|
+
export default InboundNetworkIssueDetector;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WebRTCStatsEventData } from '@peermetrics/webrtc-stats';
|
|
2
|
+
import { IssueDetector, IssueDetectorResult } from '../types';
|
|
3
|
+
declare class OutboundNetworkIssueDetector implements IssueDetector {
|
|
4
|
+
#private;
|
|
5
|
+
detect(data: WebRTCStatsEventData): IssueDetectorResult;
|
|
6
|
+
private processData;
|
|
7
|
+
}
|
|
8
|
+
export default OutboundNetworkIssueDetector;
|
package/dist/engine/wid/detectors/{NetworkIssueDetector.d.ts → VideoCodecMismatchDetector.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WebRTCStatsEventData } from '@peermetrics/webrtc-stats';
|
|
2
2
|
import { IssueDetector, IssueDetectorResult } from '../types';
|
|
3
|
-
declare class
|
|
3
|
+
declare class VideoCodecMismatchDetector implements IssueDetector {
|
|
4
4
|
#private;
|
|
5
5
|
detect(data: WebRTCStatsEventData): IssueDetectorResult;
|
|
6
6
|
private processData;
|
|
7
7
|
}
|
|
8
|
-
export default
|
|
8
|
+
export default VideoCodecMismatchDetector;
|
|
@@ -18,23 +18,30 @@ export declare type WebRTCIssueDetectorConstructorParams = {
|
|
|
18
18
|
export declare enum IssueType {
|
|
19
19
|
Network = "network",
|
|
20
20
|
CPU = "cpu",
|
|
21
|
-
Server = "server"
|
|
21
|
+
Server = "server",
|
|
22
|
+
Stream = "stream"
|
|
22
23
|
}
|
|
23
24
|
export declare enum IssueReason {
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
OutboundNetworkQuality = "outbound-network-quality",
|
|
26
|
+
InboundNetworkQuality = "inbound-network-quality",
|
|
27
|
+
OutboundNetworkMediaLatency = "outbound-network-media-latency",
|
|
28
|
+
InboundNetworkMediaLatency = "inbound-network-media-latency",
|
|
26
29
|
NetworkMediaSyncFailure = "network-media-sync-failure",
|
|
27
30
|
OutboundNetworkThroughput = "outbound-network-throughput",
|
|
28
31
|
InboundNetworkThroughput = "inbound-network-throughput",
|
|
29
32
|
EncoderCPUThrottling = "encoder-cpu-throttling",
|
|
30
33
|
DecoderCPUThrottling = "decoder-cpu-throttling",
|
|
31
34
|
ServerIssue = "server-issue",
|
|
32
|
-
|
|
35
|
+
VideoCodecMismatchIssue = "codec-mismatch",
|
|
36
|
+
LowInboundMOS = "low-inbound-mean-opinion-score",
|
|
37
|
+
LowOutboundMOS = "low-outbound-mean-opinion-score"
|
|
33
38
|
}
|
|
34
39
|
export declare type IssuePayload = {
|
|
35
40
|
type: IssueType;
|
|
36
41
|
reason: IssueReason;
|
|
37
42
|
ssrc?: number;
|
|
38
43
|
iceCandidate?: string;
|
|
44
|
+
data?: number;
|
|
39
45
|
debug?: string;
|
|
46
|
+
trackIdentifier?: string;
|
|
40
47
|
};
|