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

After switching the flv playback address, the previous flv address has been requesting

Open SolitaryScripter opened this issue 4 years ago • 1 comments

Current Behavior

Using the same player instance, after switching several flv videos, the switched flv addresses will request data in the background, not only the currently playing video

Expected Behavior

Only the currently seen flv video request data

Steps to Reproduce

1.<ReactPlayer ref={reactPlayRef} width={width} height={height} muted={!state.volume} pip={true} volume={state.volume/100} playing={!state.paused} url={url} config = {{ attributes: { crossOrigin:"anonymous" } }} /> 2. setUrl(Some different addresses) 3. All addresses are requesting

Environment

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36

SolitaryScripter avatar Jul 09 '21 11:07 SolitaryScripter

@xuehaiouyang Have you found some solution?

adampl avatar Sep 13 '21 10:09 adampl