harlanc / xiu

A simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀
https://www.rustxiu.com
MIT License
1.61k stars 168 forks source link

[Question/Bug]When the player is shut down, the push stream will automatically reconnect. #2

Closed harlanc closed 3 years ago

harlanc commented 3 years ago

How to reproduce:

  1. Use OBS to push rtmp stream
  2. Play it with ffplay,
  3. Shut down the ffplay.
  4. OBS will disconnect and reconnect..
harlanc commented 3 years ago

The reason is that then ffplay is shut down, unsubscribe is not called, fixed.