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
@@ -11176,7 +11176,7 @@ function getOSVersion(ua) {
|
|
11176
11176
|
return ua.includes('mac os') ? getMatch(/\(.+?(\d+_\d+(:?_\d+)?)/, ua, 1).replace(/_/g, '.') : undefined;
|
11177
11177
|
}
|
11178
11178
|
|
11179
|
-
var version$1 = "2.6.
|
11179
|
+
var version$1 = "2.6.2";
|
11180
11180
|
|
11181
11181
|
const version = version$1;
|
11182
11182
|
const protocolVersion = 15;
|
@@ -12488,6 +12488,13 @@ class LocalTrack extends Track {
|
|
12488
12488
|
var _a, _b;
|
12489
12489
|
return (_b = (_a = this.processor) === null || _a === void 0 ? void 0 : _a.processedTrack) !== null && _b !== void 0 ? _b : this._mediaStreamTrack;
|
12490
12490
|
}
|
12491
|
+
/**
|
12492
|
+
* @internal
|
12493
|
+
* returns mediaStreamTrack settings of the capturing mediastreamtrack source - ignoring processors
|
12494
|
+
*/
|
12495
|
+
getSourceTrackSettings() {
|
12496
|
+
return this._mediaStreamTrack.getSettings();
|
12497
|
+
}
|
12491
12498
|
setMediaStreamTrack(newTrack, force) {
|
12492
12499
|
return __awaiter(this, void 0, void 0, function* () {
|
12493
12500
|
if (newTrack === this._mediaStreamTrack && !force) {
|
@@ -18798,7 +18805,7 @@ class LocalTrackPublication extends TrackPublication {
|
|
18798
18805
|
getTrackFeatures() {
|
18799
18806
|
var _a;
|
18800
18807
|
if (this.track instanceof LocalAudioTrack) {
|
18801
|
-
const settings = this.track.
|
18808
|
+
const settings = this.track.getSourceTrackSettings();
|
18802
18809
|
const features = new Set();
|
18803
18810
|
if (settings.autoGainControl) {
|
18804
18811
|
features.add(AudioTrackFeature.TF_AUTO_GAIN_CONTROL);
|