Browse Source

Let users disable flv archive

pull/152/head
Mauro 4 years ago committed by GitHub
parent
commit
b2ed72eb96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      protocol/rtmp/rtmp.go

7
protocol/rtmp/rtmp.go

@ -153,9 +153,10 @@ func (s *Server) handleConn(conn *core.Conn) error { @@ -153,9 +153,10 @@ func (s *Server) handleConn(conn *core.Conn) error {
writer := s.getter.GetWriter(reader.Info())
s.handler.HandleWriter(writer)
}
//FIXME: should flv should be configurable, not always on -gs
flvWriter := new(flv.FlvDvr)
s.handler.HandleWriter(flvWriter.GetWriter(reader.Info()))
if configure.Config.GetBool("flv_archive") {
flvWriter := new(flv.FlvDvr)
s.handler.HandleWriter(flvWriter.GetWriter(reader.Info()))
}
} else {
writer := NewVirWriter(connServer)
log.Debugf("new player: %+v", writer.Info())

Loading…
Cancel
Save