封装rtsp udp拉流

This commit is contained in:
yangjiechina
2024-03-17 14:18:21 +08:00
parent 14b297827e
commit d325daeb8b
12 changed files with 921 additions and 6 deletions

View File

@@ -14,6 +14,8 @@ type ISink interface {
Input(data []byte) error
SendHeader(data []byte) error
SourceId() string
TransStreamId() TransStreamId
@@ -99,6 +101,10 @@ func (s *SinkImpl) Input(data []byte) error {
return nil
}
func (s *SinkImpl) SendHeader(data []byte) error {
return s.Input(data)
}
func (s *SinkImpl) SourceId() string {
return s.SourceId_
}