Skip to content

Commit

Permalink
Let users disable flv archive
Browse files Browse the repository at this point in the history
  • Loading branch information
EssGeeEich authored Jan 14, 2021
1 parent c7b6336 commit b2ed72e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions protocol/rtmp/rtmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit b2ed72e

Please sign in to comment.