mirror of
https://github.com/hsnks100/liveflow.git
synced 2026-04-22 23:47:03 +08:00
fix: reuse stream id (#11)
This commit is contained in:
@@ -353,6 +353,7 @@ func (r *WHIP) whepHandler(c echo.Context) error {
|
||||
fmt.Printf("ICE Connection State has changed: %s\n", connectionState.String())
|
||||
|
||||
if connectionState == webrtc.ICEConnectionStateFailed {
|
||||
delete(r.tracks, streamKey)
|
||||
_ = peerConnection.Close()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user