livekit-client 0.18.5 → 0.18.6
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/livekit-client.esm.mjs +7 -5
- 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/room/track/RemoteVideoTrack.d.ts +1 -0
- package/dist/room/track/RemoteVideoTrack.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/room/track/RemoteVideoTrack.ts +7 -3
- package/src/room/track/options.ts +2 -2
- package/src/version.ts +1 -1
@@ -9783,7 +9783,7 @@ class DeviceManager {
|
|
9783
9783
|
}
|
9784
9784
|
DeviceManager.mediaDeviceKinds = ['audioinput', 'audiooutput', 'videoinput'];
|
9785
9785
|
|
9786
|
-
const version = '0.18.
|
9786
|
+
const version = '0.18.6';
|
9787
9787
|
const protocolVersion = 7;
|
9788
9788
|
|
9789
9789
|
const separator = '|';
|
@@ -11641,6 +11641,7 @@ class RemoteVideoTrack extends RemoteTrack {
|
|
11641
11641
|
constructor(mediaTrack, sid, receiver, adaptiveStreamSettings) {
|
11642
11642
|
super(mediaTrack, sid, Track.Kind.Video, receiver);
|
11643
11643
|
this.elementInfos = [];
|
11644
|
+
this.hasUsedAttach = false;
|
11644
11645
|
|
11645
11646
|
this.monitorReceiver = async () => {
|
11646
11647
|
if (!this.receiver) {
|
@@ -11690,8 +11691,8 @@ class RemoteVideoTrack extends RemoteTrack {
|
|
11690
11691
|
}
|
11691
11692
|
|
11692
11693
|
get mediaStreamTrack() {
|
11693
|
-
if (this.isAdaptiveStream && this.
|
11694
|
-
|
11694
|
+
if (this.isAdaptiveStream && !this.hasUsedAttach) {
|
11695
|
+
livekitLogger.warn('When using adaptiveStream, you need to use remoteVideoTrack.attach() to add the track to a HTMLVideoElement, otherwise your video tracks might never start');
|
11695
11696
|
}
|
11696
11697
|
|
11697
11698
|
return this._mediaStreamTrack;
|
@@ -11736,6 +11737,7 @@ class RemoteVideoTrack extends RemoteTrack {
|
|
11736
11737
|
this.debouncedHandleResize();
|
11737
11738
|
}
|
11738
11739
|
|
11740
|
+
this.hasUsedAttach = true;
|
11739
11741
|
return element;
|
11740
11742
|
}
|
11741
11743
|
|
@@ -12087,7 +12089,7 @@ const VideoPresets = {
|
|
12087
12089
|
h216: new VideoPreset(384, 216, 180000, 15),
|
12088
12090
|
h360: new VideoPreset(640, 360, 300000, 20),
|
12089
12091
|
h540: new VideoPreset(960, 540, 600000, 25),
|
12090
|
-
h720: new VideoPreset(1280, 720,
|
12092
|
+
h720: new VideoPreset(1280, 720, 1700000, 30),
|
12091
12093
|
h1080: new VideoPreset(1920, 1080, 3000000, 30),
|
12092
12094
|
h1440: new VideoPreset(2560, 1440, 5000000, 30),
|
12093
12095
|
h2160: new VideoPreset(3840, 2160, 8000000, 30),
|
@@ -12102,7 +12104,7 @@ const VideoPresets = {
|
|
12102
12104
|
qhd: new VideoPreset(960, 540, 600000, 25),
|
12103
12105
|
|
12104
12106
|
/** @deprecated */
|
12105
|
-
hd: new VideoPreset(1280, 720,
|
12107
|
+
hd: new VideoPreset(1280, 720, 1700000, 30),
|
12106
12108
|
|
12107
12109
|
/** @deprecated */
|
12108
12110
|
fhd: new VideoPreset(1920, 1080, 3000000, 30)
|