mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-04 05:17:27 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			284 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			284 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package controllers
 | 
						|
 | 
						|
import (
 | 
						|
	"net/http"
 | 
						|
 | 
						|
	"github.com/owncast/owncast/core/rtmp"
 | 
						|
)
 | 
						|
 | 
						|
// DisconnectInboundConnection will force-disconnect an inbound stream.
 | 
						|
func DisconnectInboundConnection(w http.ResponseWriter, r *http.Request) {
 | 
						|
	rtmp.Disconnect()
 | 
						|
	w.WriteHeader(http.StatusOK)
 | 
						|
}
 |