@incodetech/welcome 1.85.0-20251104182555.0 → 1.85.0-20251105111154.0
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.
|
@@ -127,4 +127,5 @@ type TranslationMap = {
|
|
|
127
127
|
};
|
|
128
128
|
export declare const getSelfieTranslation: (key: keyof TranslationMap, assistedOnboarding: boolean) => string;
|
|
129
129
|
export declare const getSupportedMediaRecorderMimeType: () => string;
|
|
130
|
+
export declare const getMediaStreamTrackSettings: (track: MediaStreamTrack) => MediaTrackSettings;
|
|
130
131
|
export {};
|
package/dist/onBoarding.mjs
CHANGED
|
@@ -3051,6 +3051,9 @@ const translations = {
|
|
|
3051
3051
|
for (const Le of Be)
|
|
3052
3052
|
if (MediaRecorder.isTypeSupported(Le)) return Le;
|
|
3053
3053
|
return "";
|
|
3054
|
+
}, getMediaStreamTrackSettings = (Be) => {
|
|
3055
|
+
const Le = Be.getSettings(), { width: Ye, height: tt, ...nt } = Le;
|
|
3056
|
+
return mobile.isIpad() || !Ye || !tt ? Le : mobile.any() && tt < Ye ? { ...nt, width: tt, height: Ye } : Le;
|
|
3054
3057
|
};
|
|
3055
3058
|
class Semaphore {
|
|
3056
3059
|
constructor(Le = 1) {
|
|
@@ -8372,7 +8375,7 @@ class MlWasmJSApi {
|
|
|
8372
8375
|
);
|
|
8373
8376
|
}
|
|
8374
8377
|
}
|
|
8375
|
-
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-
|
|
8378
|
+
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251105111154.0";
|
|
8376
8379
|
function e$2(Be, Le) {
|
|
8377
8380
|
return function(Ye, tt) {
|
|
8378
8381
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -166622,7 +166625,7 @@ const openViduInitPublisher = async ({
|
|
|
166622
166625
|
token: Ye,
|
|
166623
166626
|
isAuthRecordings: tt = !1
|
|
166624
166627
|
}) => {
|
|
166625
|
-
const nt = getOpenViduInstance(), ft = nt.initSession(), ht = Be.getVideoTracks()[0]
|
|
166628
|
+
const nt = getOpenViduInstance(), ft = nt.initSession(), ht = getMediaStreamTrackSettings(Be.getVideoTracks()[0]), gt = tt ? await createAuthRecordingSession(Ye) : await createRecordingSession(Le, Ye, "openVidu");
|
|
166626
166629
|
createElement$1(), await ft.connect(gt.token), addEvent({
|
|
166627
166630
|
code: streamingEvents.strSessionDidConnect,
|
|
166628
166631
|
token: Ye,
|
|
@@ -166776,7 +166779,7 @@ const openViduInitPublisher = async ({
|
|
|
166776
166779
|
stream: Be,
|
|
166777
166780
|
token: Ye
|
|
166778
166781
|
}), await startRecording(tt.videoRecordingId, Ye, "openTok");
|
|
166779
|
-
const nt = Be.getVideoTracks()[0]
|
|
166782
|
+
const nt = getMediaStreamTrackSettings(Be.getVideoTracks()[0]);
|
|
166780
166783
|
return addEvent({
|
|
166781
166784
|
code: streamingEvents.strStreamVideoCaptureStart,
|
|
166782
166785
|
token: Ye,
|