react-use icon indicating copy to clipboard operation
react-use copied to clipboard

useVideo.story.tsx - sampleVideo can not be loaded

Open ronnykind opened this issue 2 years ago • 3 comments

The sample video can not be loaded

go to https://streamich.github.io/react-use/?path=/story/ui-usevideo--demo open the useVideo-story in chromeBrowser - in network-tab of the BrowserDeveloperTools you can see the video can not be loaded. The browser tries to load the video over https, but the video is served over http.

A little about versions:

  • OS: MacOS 13.4.1
  • Browser (vendor and version): Chrome - Version 115.0.5790.114 (Offizieller Build) (x86_64)

it seems since chrome uses stricter security, loading this video does not work

to serve the video over https should solve this issue. :)

ronnykind avatar Aug 04 '23 22:08 ronnykind

video sample over https is available here https://www.w3schools.com/tags/mov_bbb.mp4

The sample video can not be loaded

nalladev avatar Aug 11 '23 08:08 nalladev

made changes in a pull request https://github.com/streamich/react-use/pull/2515

waiting for approval

nalladev avatar Aug 11 '23 09:08 nalladev

i tested this branch and the useVideo-story-issue is solved now and useFullscreen.story works too.

ronnykind avatar Aug 14 '23 20:08 ronnykind