appleple / react-modal-video

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

Unable to play unlisted Vimeo videos #27

Open daggmano opened 4 years ago

daggmano commented 4 years ago

On Vimeo, unlisted videos may be played using the URL format https://vimeo.com/[video_id]/[unlisted_hash]. It would would be great if an unlisted_hash could be passed in to allow for this.

lvidal1 commented 2 years ago

@daggmano did you find any workaround for this?

BenColwell131 commented 10 months ago

@daggmano @lvidal1 Did you ever find a solution to this?

BenColwell131 commented 10 months ago

For anyone finding this in the future, you can workaround this quite easily by setting the Vimeo option 'h' to the unlisted_hash

e.g.

<ModalVideo
          channel='vimeo'
          isOpen={isModalOpen}
          videoId={video_id}
          onClose={() => setIsModalOpen(false)}
          vimeo={{
            h: unlisted_hash,
            ...
          }}
/>