@nikelroot/video-player 0.1.0 → 0.1.1
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/README.md +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -706,10 +706,10 @@ var VideoPlayerBase = (props, ref) => {
|
|
|
706
706
|
crossOrigin = "use-credentials",
|
|
707
707
|
messages: messagesProp,
|
|
708
708
|
accentColor,
|
|
709
|
+
videoSrc: rawVideoSrc = "",
|
|
709
710
|
...videoProps
|
|
710
711
|
} = props;
|
|
711
|
-
|
|
712
|
-
videoSrc = videoSrc.replaceAll(" ", "%20").replaceAll("#", "%23");
|
|
712
|
+
const videoSrc = rawVideoSrc.replaceAll(" ", "%20").replaceAll("#", "%23");
|
|
713
713
|
const messages = (0, import_react2.useMemo)(() => ({ ...defaultMessages, ...messagesProp }), [messagesProp]);
|
|
714
714
|
const [, isMobile, mobileType] = useWindowWidth();
|
|
715
715
|
const videoRef = (0, import_react2.useRef)(null);
|
package/dist/index.js
CHANGED
|
@@ -685,10 +685,10 @@ var VideoPlayerBase = (props, ref) => {
|
|
|
685
685
|
crossOrigin = "use-credentials",
|
|
686
686
|
messages: messagesProp,
|
|
687
687
|
accentColor,
|
|
688
|
+
videoSrc: rawVideoSrc = "",
|
|
688
689
|
...videoProps
|
|
689
690
|
} = props;
|
|
690
|
-
|
|
691
|
-
videoSrc = videoSrc.replaceAll(" ", "%20").replaceAll("#", "%23");
|
|
691
|
+
const videoSrc = rawVideoSrc.replaceAll(" ", "%20").replaceAll("#", "%23");
|
|
692
692
|
const messages = useMemo2(() => ({ ...defaultMessages, ...messagesProp }), [messagesProp]);
|
|
693
693
|
const [, isMobile, mobileType] = useWindowWidth();
|
|
694
694
|
const videoRef = useRef(null);
|