ReactPlayer gets deferred when switching an HLS file to an mp4, then back to an HLS
Be sure to search for your issue before opening a new one.
Current Behavior
When I switch from an HLS file to an mp4, then back to HLS I get

Expected Behavior
I expect to be able to switch between file types
Steps to Reproduce
This can reproduced on the demo site
- Click Stop under the Controls section
- Click HLS (m3u8) under the Files section
- Click mp4 under the Files section
- Click HLS (m3u8) under the Files section
Environment
- Browser: Chrome Version 101.0.4951.64
- Operating system: macOs Monterey 12.4
- Codesandbox example: https://codesandbox.io/s/focused-haze-k74kgq?file=/src/App.tsx
Other Information
- This issue only happens when the player is not set to auto play.
- I've tried adding
disableDeferredLoading={true}as mentioned in https://github.com/cookpete/react-player/issues/1396, but I get a console warning doing that.
At this point I’m tempted to remove that check completely. It seems to be causing more problems than it solves.
Hello dear cookpete,
I'm facing the same issue as jp-albrecht (the creator of this issue), and I would like to what should we do to fix this Warning.
More precisely, I'm getting this error when I'm changing very fast the volume prop through a slider, which is to say when for example I instantly decrease the volume from 100 to 50, I get this Warning.
I'm looking forward to receiving your valuable reply and comments, cheers!