@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 CHANGED
@@ -37,3 +37,4 @@ Build before publishing:
37
37
  ```bash
38
38
  npm run build
39
39
  ```
40
+ # video-player
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
- let { videoSrc = "" } = props;
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
- let { videoSrc = "" } = props;
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nikelroot/video-player",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Standalone React video player with HLS support.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",