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

Video stream isn't closed on Player component removal

Open bdvorianov opened this issue 3 years ago • 7 comments

Current Behavior

Video stream isn't closed when we stop player and remove component.

Expected Behavior

Component either closes the stream on removal phase or has the method for this.

Steps to Reproduce

  1. Open player with video stream and remove component.
  2. Check in network that stream still fetches the video.

Environment

Nothing special about environment. Current machine I have this one is: MacBook Pro M1, Chrome. But this can be found on demo page of this project as well. UPD. It occurs with FLV.

bdvorianov avatar Jul 18 '22 08:07 bdvorianov

Have the same behaviour, this seem critical

kutuzovpetia avatar Jul 18 '22 09:07 kutuzovpetia

faced this issue for flv format

Knyazik01 avatar Jul 18 '22 11:07 Knyazik01

Having the same issue with webm-format HTTP streams. The connection doesn't close even if I reset the url to empty state inside useEffect() return as an unmount cleanup.

DevTakao avatar Sep 15 '22 20:09 DevTakao