mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 07:06:57 +08:00
封装rtsp udp拉流
This commit is contained in:
@@ -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_
|
||||
}
|
||||
|
Reference in New Issue
Block a user