@livedigital/client 1.13.0 → 1.13.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.
- package/dist/constants/videoConstrains.d.ts +8 -24
- package/dist/engine/index.d.ts +4 -4
- package/dist/engine/media/VideoConsumer.d.ts +5 -0
- package/dist/engine/media/index.d.ts +3 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.es.js +1 -1
- package/dist/index.js +2 -2
- package/dist/types/common.d.ts +26 -0
- package/package.json +1 -1
- package/src/constants/videoConstrains.ts +5 -5
- package/src/engine/Peer.ts +18 -1
- package/src/engine/handlers/MediaSoupEventHandler.ts +2 -1
- package/src/engine/index.ts +19 -31
- package/src/engine/media/VideoConsumer.ts +23 -0
- package/src/engine/media/index.ts +30 -1
- package/src/index.ts +4 -4
- package/src/types/common.ts +16 -0
|
@@ -1,34 +1,18 @@
|
|
|
1
1
|
export declare const VIDEO_CONSTRAINS: {
|
|
2
2
|
qvga: {
|
|
3
|
-
width:
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
height: {
|
|
7
|
-
ideal: number;
|
|
8
|
-
};
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
9
5
|
};
|
|
10
6
|
vga: {
|
|
11
|
-
width:
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
height: {
|
|
15
|
-
ideal: number;
|
|
16
|
-
};
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
17
9
|
};
|
|
18
10
|
hd: {
|
|
19
|
-
width:
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
height: {
|
|
23
|
-
ideal: number;
|
|
24
|
-
};
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
25
13
|
};
|
|
26
14
|
fullhd: {
|
|
27
|
-
width:
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
height: {
|
|
31
|
-
ideal: number;
|
|
32
|
-
};
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
33
17
|
};
|
|
34
18
|
};
|
package/dist/engine/index.d.ts
CHANGED
|
@@ -32,10 +32,10 @@ declare class Engine {
|
|
|
32
32
|
removePeer(peerId: string): void;
|
|
33
33
|
pause(track: Track): Promise<void>;
|
|
34
34
|
resume(track: Track): Promise<void>;
|
|
35
|
-
createCameraVideoTrack(options?: CreateCameraVideoTrackOptions): Promise<Track
|
|
36
|
-
createMicrophoneAudioTrack(options?: CreateMicrophoneAudioTrackOptions): Promise<Track
|
|
37
|
-
createScreenVideoTrack(options?: CreateScreenVideoTrackOptions): Promise<Track
|
|
38
|
-
createScreenAudioTrack(options?: CreateScreenAudioTrackOptions): Promise<Track
|
|
35
|
+
createCameraVideoTrack(options?: CreateCameraVideoTrackOptions): Promise<Track>;
|
|
36
|
+
createMicrophoneAudioTrack(options?: CreateMicrophoneAudioTrackOptions): Promise<Track>;
|
|
37
|
+
createScreenVideoTrack(options?: CreateScreenVideoTrackOptions): Promise<Track>;
|
|
38
|
+
createScreenAudioTrack(options?: CreateScreenAudioTrackOptions): Promise<Track>;
|
|
39
39
|
publish(tracks: Track | Track[]): Promise<void>;
|
|
40
40
|
unpublish(tracks?: Track | Track[]): Promise<void>;
|
|
41
41
|
deleteTrack(tracks: Track): void;
|
|
@@ -3,7 +3,12 @@ import Consumer from './Consumer';
|
|
|
3
3
|
declare class VideoConsumer extends Consumer {
|
|
4
4
|
spatialLayers: number;
|
|
5
5
|
temporalLayers: number;
|
|
6
|
+
currentSpatialLayer: number;
|
|
7
|
+
currentTemporalLayer: number;
|
|
8
|
+
private readonly logger;
|
|
6
9
|
constructor(consumer: MediasoupConsumer);
|
|
7
10
|
parseScalabilityMode(): void;
|
|
11
|
+
setCurrentSpatialLayer(currentSpatialLayer: number): void;
|
|
12
|
+
setCurrentTemporalLayer(currentTemporalLayer: number): void;
|
|
8
13
|
}
|
|
9
14
|
export default VideoConsumer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Device } from 'mediasoup-client';
|
|
2
2
|
import { RtpCapabilities, RtpCodecCapability } from 'mediasoup-client/lib/RtpParameters';
|
|
3
|
-
import { Track } from '../../types/common';
|
|
3
|
+
import { CreateScreenVideoTrackOptions, CreateVideoTrackParams, Track } from '../../types/common';
|
|
4
4
|
declare class Media {
|
|
5
5
|
#private;
|
|
6
6
|
isDeviceLoaded: boolean;
|
|
@@ -14,5 +14,7 @@ declare class Media {
|
|
|
14
14
|
createDisplayMediaTrack(constraints: MediaStreamConstraints): Promise<Track>;
|
|
15
15
|
deleteTrack(track: Track): void;
|
|
16
16
|
getAllTracks(): Track[];
|
|
17
|
+
static getScreenVideoTrackParams(options?: CreateScreenVideoTrackOptions): CreateVideoTrackParams;
|
|
18
|
+
static getCameraVideoTrackParams(options?: CreateScreenVideoTrackOptions): CreateVideoTrackParams;
|
|
17
19
|
}
|
|
18
20
|
export default Media;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,10 +23,10 @@ declare class Client {
|
|
|
23
23
|
unpublish(tracks?: Track | Track[]): Promise<void>;
|
|
24
24
|
pause(track: Track): Promise<void>;
|
|
25
25
|
resume(track: Track): Promise<void>;
|
|
26
|
-
createCameraVideoTrack(options?: CreateCameraVideoTrackOptions): Promise<Track
|
|
27
|
-
createMicrophoneAudioTrack(options?: CreateMicrophoneAudioTrackOptions): Promise<Track
|
|
28
|
-
createScreenVideoTrack(options?: CreateScreenVideoTrackOptions): Promise<Track
|
|
29
|
-
createScreenAudioTrack(options?: CreateScreenAudioTrackOptions): Promise<Track
|
|
26
|
+
createCameraVideoTrack(options?: CreateCameraVideoTrackOptions): Promise<Track>;
|
|
27
|
+
createMicrophoneAudioTrack(options?: CreateMicrophoneAudioTrackOptions): Promise<Track>;
|
|
28
|
+
createScreenVideoTrack(options?: CreateScreenVideoTrackOptions): Promise<Track>;
|
|
29
|
+
createScreenAudioTrack(options?: CreateScreenAudioTrackOptions): Promise<Track>;
|
|
30
30
|
deleteTrack(track: Track): void;
|
|
31
31
|
}
|
|
32
32
|
export default Client;
|