Browse Source

add flv record to file

pull/60/head
小张 6 years ago committed by GitHub
parent
commit
830dcd5f95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      protocol/rtmp/rtmp.go

2
protocol/rtmp/rtmp.go

@ -134,6 +134,8 @@ func (s *Server) handleConn(conn *core.Conn) error { @@ -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())

Loading…
Cancel
Save