chintan9 / plyr-react

A simple, accessible and customisable react media player for Video, Audio, YouTube and Vimeo

Home Page:https://github.com/chintan9/plyr-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useState issue

issaouimuhamedaziz opened this issue · comments

Whenever i use useState inside the page where I have set up Plyr with HLS it changes the Plyr classes and state I think? and breaks the whole page after pressing it twice.

could you use the usePlyr and look at the HLS component, for re-rendering you must be in the same depth with the <Plyr /> component itself, Plyr is best for static usage.

https://github.com/chintan9/plyr-react/blob/master/example/react/src/hls-player/custom-hls-player.tsx

could you use the usePlyr and look at the HLS component, for re-rendering you must be in the same depth with the <Plyr /> component itself, Plyr is best for static usage.

https://github.com/chintan9/plyr-react/blob/master/example/react/src/hls-player/custom-hls-player.tsx

hello, thank you so much your provided solution works perfectly.