sanity-plugin-mux-input 1.2.0-main.2 → 1.2.0-main.3
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/lib/cjs/{Input.ad849635.js → Input.832bb406.js} +4 -4
- package/lib/cjs/{Input.ad849635.js.map → Input.832bb406.js.map} +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/{Input.d47f0152.js → Input.8f661c56.js} +2 -2
- package/lib/esm/{Input.d47f0152.js.map → Input.8f661c56.js.map} +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -15,7 +15,7 @@ var $ls8Mq$sanityicons = require("@sanity/icons");
|
|
|
15
15
|
var $ls8Mq$motion = require("motion");
|
|
16
16
|
var $ls8Mq$styledcomponents = require("styled-components");
|
|
17
17
|
var $ls8Mq$usedevicepixelratio = require("use-device-pixel-ratio");
|
|
18
|
-
var $ls8Mq$
|
|
18
|
+
var $ls8Mq$muxplaybackcore = require("@mux/playback-core");
|
|
19
19
|
var $ls8Mq$mediachromedistreact = require("media-chrome/dist/react");
|
|
20
20
|
var $ls8Mq$reactis = require("react-is");
|
|
21
21
|
var $ls8Mq$suspendreact = require("suspend-react");
|
|
@@ -1379,11 +1379,11 @@ const $4b270840a4c34b64$var$MuxVideo = ({ asset: asset , buttons: buttons , read
|
|
|
1379
1379
|
if (playRef.current?.shadowRoot) playRef.current.shadowRoot.appendChild(style);
|
|
1380
1380
|
if (muteRef?.current?.shadowRoot) muteRef.current.shadowRoot.appendChild(style.cloneNode(true));
|
|
1381
1381
|
}, []);
|
|
1382
|
-
const [playerInitTime] = (0, $ls8Mq$react.useState)(()=>(0, $ls8Mq$
|
|
1382
|
+
const [playerInitTime] = (0, $ls8Mq$react.useState)(()=>(0, $ls8Mq$muxplaybackcore.generatePlayerInitTime)());
|
|
1383
1383
|
const playbackEngineRef = (0, $ls8Mq$react.useRef)(undefined);
|
|
1384
1384
|
(0, $ls8Mq$react.useEffect)(()=>{
|
|
1385
1385
|
if (isLoading || !videoSrc) return;
|
|
1386
|
-
const nextPlaybackEngineRef = (0, $ls8Mq$
|
|
1386
|
+
const nextPlaybackEngineRef = (0, $ls8Mq$muxplaybackcore.initialize)({
|
|
1387
1387
|
src: videoSrc,
|
|
1388
1388
|
playerInitTime: playerInitTime,
|
|
1389
1389
|
playerSoftwareName: "sanity-plugin-mux-input",
|
|
@@ -3582,4 +3582,4 @@ function $20bd1aaec92888dd$export$2e2bcd8739ae039(props) {
|
|
|
3582
3582
|
|
|
3583
3583
|
|
|
3584
3584
|
|
|
3585
|
-
//# sourceMappingURL=Input.
|
|
3585
|
+
//# sourceMappingURL=Input.832bb406.js.map
|