@livedigital/client 1.15.0 → 1.15.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/engine/index.d.ts +2 -3
- package/dist/engine/media/index.d.ts +3 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/common.d.ts +5 -1
- package/package.json +1 -1
- package/src/engine/index.ts +26 -39
- package/src/engine/media/index.ts +20 -15
- package/src/index.ts +3 -8
- package/src/types/common.ts +6 -1
package/dist/engine/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateCameraVideoTrackOptions, CreateMicrophoneAudioTrackOptions,
|
|
1
|
+
import { CreateCameraVideoTrackOptions, CreateMicrophoneAudioTrackOptions, CreateScreenMediaOptions, JoinChannelParams, PeerResponse, Track } from '../types/common';
|
|
2
2
|
import EnhancedEventEmitter from '../EnhancedEventEmitter';
|
|
3
3
|
import System from './system';
|
|
4
4
|
import Peer from './Peer';
|
|
@@ -37,8 +37,7 @@ declare class Engine {
|
|
|
37
37
|
resume(track: Track): Promise<void>;
|
|
38
38
|
createCameraVideoTrack(options?: CreateCameraVideoTrackOptions): Promise<Track>;
|
|
39
39
|
createMicrophoneAudioTrack(options?: CreateMicrophoneAudioTrackOptions): Promise<Track>;
|
|
40
|
-
|
|
41
|
-
createScreenAudioTrack(options?: CreateScreenAudioTrackOptions): Promise<Track>;
|
|
40
|
+
createScreenMediaTracks(options?: CreateScreenMediaOptions): Promise<Track[]>;
|
|
42
41
|
publish(tracks: Track | Track[]): Promise<void>;
|
|
43
42
|
unpublish(tracks?: Track | Track[]): Promise<void>;
|
|
44
43
|
deleteTrack(tracks: Track): void;
|
|
@@ -9,9 +9,9 @@ declare class Media {
|
|
|
9
9
|
get mediasoupDevice(): Device;
|
|
10
10
|
loadDevice(routerRtpCapabilities: RtpCapabilities): Promise<void>;
|
|
11
11
|
getTrackCodec(track: Track): RtpCodecCapability | undefined;
|
|
12
|
-
private
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
private createTracks;
|
|
13
|
+
createUserMediaTracks(constraints: MediaStreamConstraints): Promise<Track[]>;
|
|
14
|
+
createDisplayMediaTracks(constraints: MediaStreamConstraints): Promise<Track[]>;
|
|
15
15
|
deleteTrack(track: Track): void;
|
|
16
16
|
getAllTracks(): Track[];
|
|
17
17
|
static getScreenVideoTrackParams(options?: CreateScreenVideoTrackOptions): CreateVideoTrackParams;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AvailableMediaDevices, CreateCameraVideoTrackOptions, CreateMicrophoneAudioTrackOptions,
|
|
1
|
+
import { AvailableMediaDevices, CreateCameraVideoTrackOptions, CreateMicrophoneAudioTrackOptions, CreateScreenMediaOptions, JoinChannelParams, Track } from './types/common';
|
|
2
2
|
import EnhancedEventEmitter from './EnhancedEventEmitter';
|
|
3
3
|
import Peer from './engine/Peer';
|
|
4
4
|
import { LoadBalancerApiClientParams } from './engine/network/LoadBalancerClient';
|
|
@@ -25,8 +25,7 @@ declare class Client {
|
|
|
25
25
|
resume(track: Track): Promise<void>;
|
|
26
26
|
createCameraVideoTrack(options?: CreateCameraVideoTrackOptions): Promise<Track>;
|
|
27
27
|
createMicrophoneAudioTrack(options?: CreateMicrophoneAudioTrackOptions): Promise<Track>;
|
|
28
|
-
|
|
29
|
-
createScreenAudioTrack(options?: CreateScreenAudioTrackOptions): Promise<Track>;
|
|
28
|
+
createScreenMediaTracks(options?: CreateScreenMediaOptions): Promise<Track[]>;
|
|
30
29
|
deleteTrack(track: Track): void;
|
|
31
30
|
}
|
|
32
31
|
export default Client;
|