chintan9/plyr-react

useState issue

issaouimuhamedaziz opened this issue · 2 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.