livekit-client 2.6.1 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/livekit-client.esm.mjs +9 -2
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +5 -0
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +5 -0
- package/package.json +1 -1
- package/src/room/track/LocalTrack.ts +8 -0
- package/src/room/track/LocalTrackPublication.ts +1 -1
@@ -38,6 +38,11 @@ export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Ki
|
|
38
38
|
get isUpstreamPaused(): boolean;
|
39
39
|
get isUserProvided(): boolean;
|
40
40
|
get mediaStreamTrack(): MediaStreamTrack;
|
41
|
+
/**
|
42
|
+
* @internal
|
43
|
+
* returns mediaStreamTrack settings of the capturing mediastreamtrack source - ignoring processors
|
44
|
+
*/
|
45
|
+
getSourceTrackSettings(): MediaTrackSettings;
|
41
46
|
private setMediaStreamTrack;
|
42
47
|
waitForDimensions(timeout?: number): Promise<Track.Dimensions>;
|
43
48
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalTrack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAMvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAgC,MAAM,SAAS,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,UAAU,CACtC,SAAS,SAAS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IAEF,IAAI;IAWJ;;;;;QAKI;IACE,aAAa;IAwBb,cAAc;IAoBpB;;;;;OAKG;IACG,iBAAiB,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAQ9D;;;;;;;;;OASG;IACG,YAAY,CAAC,SAAS,EAAE,cAAc,CAAC,SAAS,CAAC,EAAE,0BAA0B,UAAO;IAiD1F,YAAY;IAIZ;;;;;;OAMG;IACG,aAAa,CAAC,WAAW,UAAO;IAkBtC,SAAS,CAAC,QAAQ,CAAC,aAAa,IAAI,IAAI;CACzC"}
|
@@ -38,6 +38,11 @@ export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Ki
|
|
38
38
|
get isUpstreamPaused(): boolean;
|
39
39
|
get isUserProvided(): boolean;
|
40
40
|
get mediaStreamTrack(): MediaStreamTrack;
|
41
|
+
/**
|
42
|
+
* @internal
|
43
|
+
* returns mediaStreamTrack settings of the capturing mediastreamtrack source - ignoring processors
|
44
|
+
*/
|
45
|
+
getSourceTrackSettings(): MediaTrackSettings;
|
41
46
|
private setMediaStreamTrack;
|
42
47
|
waitForDimensions(timeout?: number): Promise<Track.Dimensions>;
|
43
48
|
/**
|
package/package.json
CHANGED
@@ -120,6 +120,14 @@ export default abstract class LocalTrack<
|
|
120
120
|
return this.processor?.processedTrack ?? this._mediaStreamTrack;
|
121
121
|
}
|
122
122
|
|
123
|
+
/**
|
124
|
+
* @internal
|
125
|
+
* returns mediaStreamTrack settings of the capturing mediastreamtrack source - ignoring processors
|
126
|
+
*/
|
127
|
+
getSourceTrackSettings() {
|
128
|
+
return this._mediaStreamTrack.getSettings();
|
129
|
+
}
|
130
|
+
|
123
131
|
private async setMediaStreamTrack(newTrack: MediaStreamTrack, force?: boolean) {
|
124
132
|
if (newTrack === this._mediaStreamTrack && !force) {
|
125
133
|
return;
|
@@ -84,7 +84,7 @@ export default class LocalTrackPublication extends TrackPublication {
|
|
84
84
|
|
85
85
|
getTrackFeatures() {
|
86
86
|
if (this.track instanceof LocalAudioTrack) {
|
87
|
-
const settings = this.track!.
|
87
|
+
const settings = this.track!.getSourceTrackSettings();
|
88
88
|
const features: Set<AudioTrackFeature> = new Set();
|
89
89
|
if (settings.autoGainControl) {
|
90
90
|
features.add(AudioTrackFeature.TF_AUTO_GAIN_CONTROL);
|