admin.go 284 B

12345678910111213
  1. package controllers
  2. import (
  3. "net/http"
  4. "github.com/owncast/owncast/core/rtmp"
  5. )
  6. // DisconnectInboundConnection will force-disconnect an inbound stream.
  7. func DisconnectInboundConnection(w http.ResponseWriter, r *http.Request) {
  8. rtmp.Disconnect()
  9. w.WriteHeader(http.StatusOK)
  10. }