appleple / react-modal-video

Accessible React Modal Video Component
https://appleple.github.io/react-modal-video/
MIT License
177 stars 86 forks source link

Load cannot follow more than 20 redirections with "http" instead of "https" #96

Open atlonxp opened 8 months ago

atlonxp commented 8 months ago

Not sure how this error occurs.

Here is my code.

"use client";

import React from "react";
import ModalVideo from "react-modal-video";

import "react-modal-video/scss/modal-video.scss";

import useGlobalContext from "@/hooks/useGlobalContext";

const VideoPopup = ({ videoId }) => {
  const popupValue = useGlobalContext();
  const { isOpen, setIsOpen } = popupValue;

  return (
    <>
      <ModalVideo
        channel="youtube"
        youtube={{ mute: 0, autoplay: 0 }}
        isOpen={isOpen}
        videoId={videoId}
        onClose={() => setIsOpen(false)}
      />
    </>
  );
};

export default VideoPopup;

When I run the modal, it gave me an error something like

With "http" not "https"


package.json

"next": "14.0.4",
"react": "^18",
"react-modal-video": "^2.0.1"
Screen Shot 2024-01-05 at 02 14 11