@instructure/studio-player 0.2.7 → 0.2.8
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/studio-player.es.js +17 -11
- package/package.json +1 -1
package/dist/studio-player.es.js
CHANGED
|
@@ -1310,17 +1310,23 @@ function ti() {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
function ni() {
|
|
1312
1312
|
const e = _("duration"), n = S(), o = v();
|
|
1313
|
-
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) =>
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1313
|
+
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) => {
|
|
1314
|
+
const a = Math.min(
|
|
1315
|
+
Math.abs(e - i.timestamp),
|
|
1316
|
+
Se
|
|
1317
|
+
);
|
|
1318
|
+
return /* @__PURE__ */ t(
|
|
1319
|
+
"span",
|
|
1320
|
+
{
|
|
1321
|
+
className: d.commentMarker,
|
|
1322
|
+
style: {
|
|
1323
|
+
left: `${i.timestamp / e * 100}%`,
|
|
1324
|
+
width: `${a / e * 100}%`
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1327
|
+
i.id
|
|
1328
|
+
);
|
|
1329
|
+
}) }) : null;
|
|
1324
1330
|
}
|
|
1325
1331
|
function oi({ currentTime: e, position: n }) {
|
|
1326
1332
|
const [o, i] = M(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((C) => !C) : a.onInteractivePinClick(e), [
|