@geekapps/silo-elements-nextjs 0.2.53 → 0.2.54
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/VideoPlayer.js +7 -1
- package/dist/VideoPlayer.js.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/VideoPlayer.js
CHANGED
|
@@ -1829,7 +1829,13 @@ function inferSourceType(source) {
|
|
|
1829
1829
|
return "file";
|
|
1830
1830
|
}
|
|
1831
1831
|
function findStoryboardCue(cues, time) {
|
|
1832
|
-
|
|
1832
|
+
if (cues.length === 0) return null;
|
|
1833
|
+
let best = null;
|
|
1834
|
+
for (const cue of cues) {
|
|
1835
|
+
if (cue.start <= time) best = cue;
|
|
1836
|
+
else break;
|
|
1837
|
+
}
|
|
1838
|
+
return best;
|
|
1833
1839
|
}
|
|
1834
1840
|
function parseStoryboardVtt(text, baseUrl) {
|
|
1835
1841
|
const lines = text.split(/\r?\n/).map((line) => line.trim()).filter(Boolean);
|