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

ReactPlayer gets deferred when switching an HLS file to an mp4, then back to an HLS

Open jp-albrecht opened this issue 3 years ago • 2 comments

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 image

Expected Behavior

I expect to be able to switch between file types

Steps to Reproduce

This can reproduced on the demo site

  1. Click Stop under the Controls section
  2. Click HLS (m3u8) under the Files section
  3. Click mp4 under the Files section
  4. 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 addingdisableDeferredLoading={true} as mentioned in https://github.com/cookpete/react-player/issues/1396, but I get a console warning doing that. image

jp-albrecht avatar May 27 '22 19:05 jp-albrecht

At this point I’m tempted to remove that check completely. It seems to be causing more problems than it solves.

cookpete avatar May 31 '22 08:05 cookpete

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!

chstavridis avatar Nov 12 '22 11:11 chstavridis