Skip to content

Commit

Permalink
add flv record to file
Browse files Browse the repository at this point in the history
  • Loading branch information
sjqzhang authored Apr 19, 2019
1 parent 2c5a743 commit 830dcd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions protocol/rtmp/rtmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ func (s *Server) handleConn(conn *core.Conn) error {
writer := s.getter.GetWriter(reader.Info())
s.handler.HandleWriter(writer)
}
flvWriter:=new(flv.FlvDvr)
s.handler.HandleWriter(flvWriter.GetWriter(reader.Info()))
} else {
writer := NewVirWriter(connServer)
log.Printf("new player: %+v", writer.Info())
Expand Down

0 comments on commit 830dcd5

Please sign in to comment.