mirror of https://bitbucket.org/ausocean/av.git
revid & stream/flv: removed writing of 'flv header' in the flv encoder
We are now only employing flv encoding for use with rtmp, and rtmp does not like the inclusion of the 'flv header' at the start of a stream, so this functionality has been removed along with error handling of the invalidFlvTag error from rtmp in the rtmp sender.
This commit is contained in:
parent
6c29b362c9
commit
9d010ed76c
|
@ -400,9 +400,6 @@ func (s *rtmpSender) send() error {
|
||||||
return errors.New("no rtmp connection, cannot write")
|
return errors.New("no rtmp connection, cannot write")
|
||||||
}
|
}
|
||||||
_, err := s.conn.Write(s.data)
|
_, err := s.conn.Write(s.data)
|
||||||
if err == rtmp.ErrInvalidFlvTag {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue