@byomakase/omakase-react-components 1.4.1 → 1.4.2
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/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +34 -28
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -13544,23 +13544,26 @@ class e0 {
|
|
|
13544
13544
|
(async () => {
|
|
13545
13545
|
var n;
|
|
13546
13546
|
try {
|
|
13547
|
-
const o = (n = t.subflows) == null ? void 0 : n.filter(
|
|
13548
|
-
(
|
|
13547
|
+
const o = /* @__PURE__ */ new Map(), a = (n = t.subflows) == null ? void 0 : n.filter(
|
|
13548
|
+
(u) => u.format === "urn:x-nmos:format:data" && u.container === "text/vtt"
|
|
13549
13549
|
);
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
const
|
|
13553
|
-
(
|
|
13554
|
-
var
|
|
13555
|
-
return (
|
|
13550
|
+
a != null && a.length && await Promise.all(
|
|
13551
|
+
a.map(async (u) => {
|
|
13552
|
+
const s = t.flowsSegments.get(u.id), c = s.map(
|
|
13553
|
+
(f) => {
|
|
13554
|
+
var m;
|
|
13555
|
+
return (m = f.get_urls) == null ? void 0 : m.at(-1).url;
|
|
13556
13556
|
}
|
|
13557
13557
|
);
|
|
13558
|
-
let
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
|
|
13558
|
+
let l = await Qb(c, r.mediaStartTime);
|
|
13559
|
+
l = l.map((f) => Jb(f));
|
|
13560
|
+
const d = s.map((f, m) => ({
|
|
13561
|
+
...f,
|
|
13562
|
+
get_urls: [{ url: l.at(m) }]
|
|
13563
|
+
}));
|
|
13564
|
+
o.set(u.id, d);
|
|
13562
13565
|
})
|
|
13563
|
-
), i.next(), i.complete();
|
|
13566
|
+
), i.next(o), i.complete();
|
|
13564
13567
|
} catch (o) {
|
|
13565
13568
|
i.error(o);
|
|
13566
13569
|
}
|
|
@@ -13718,36 +13721,39 @@ class n0 {
|
|
|
13718
13721
|
return;
|
|
13719
13722
|
}
|
|
13720
13723
|
e0.slewSubtitlesFlows(t, n).pipe(
|
|
13721
|
-
Vr(() => {
|
|
13722
|
-
const
|
|
13724
|
+
Vr((s) => {
|
|
13725
|
+
const c = new Map([
|
|
13726
|
+
...t.flowsSegments,
|
|
13727
|
+
...s
|
|
13728
|
+
]), l = Ah(
|
|
13723
13729
|
t.flow,
|
|
13724
13730
|
t.subflows,
|
|
13725
|
-
|
|
13731
|
+
c
|
|
13726
13732
|
);
|
|
13727
13733
|
return this._player.loadVideo(
|
|
13728
|
-
|
|
13734
|
+
l.url,
|
|
13729
13735
|
a
|
|
13730
13736
|
).pipe(
|
|
13731
|
-
Ba((
|
|
13737
|
+
Ba((d) => {
|
|
13732
13738
|
this._videoApiProxy.mediaStartTime = n.mediaStartTime;
|
|
13733
|
-
const
|
|
13739
|
+
const f = t0.generateThumbnailTrackUrl(
|
|
13734
13740
|
t.subflows ?? [],
|
|
13735
|
-
|
|
13741
|
+
c,
|
|
13736
13742
|
this._player.video.getDuration() + n.mediaStartTime,
|
|
13737
13743
|
n.mediaStartTime
|
|
13738
13744
|
);
|
|
13739
|
-
return
|
|
13740
|
-
...
|
|
13745
|
+
return f && this._player.chroming.setThumbnailVttUrl(f), {
|
|
13746
|
+
...d,
|
|
13741
13747
|
mediaStartTime: n.mediaStartTime,
|
|
13742
13748
|
tamsMediaData: r != null && r.returnTamsMediaData ? t : void 0,
|
|
13743
|
-
thumbnailVttTrackUrl:
|
|
13744
|
-
videoUrls:
|
|
13745
|
-
audioUrls:
|
|
13746
|
-
textUrls:
|
|
13749
|
+
thumbnailVttTrackUrl: f,
|
|
13750
|
+
videoUrls: l.video,
|
|
13751
|
+
audioUrls: l.audio,
|
|
13752
|
+
textUrls: l.text
|
|
13747
13753
|
};
|
|
13748
13754
|
}),
|
|
13749
|
-
gg((
|
|
13750
|
-
this._videoApiProxy.setTamsVideo(
|
|
13755
|
+
gg((d) => {
|
|
13756
|
+
this._videoApiProxy.setTamsVideo(d), this._videoApiProxy.emitVideoLoadedEvent();
|
|
13751
13757
|
})
|
|
13752
13758
|
);
|
|
13753
13759
|
})
|