mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 15:16:49 +08:00
通过管道收发推拉流事件
This commit is contained in:
@@ -6,6 +6,6 @@ import (
|
||||
"net"
|
||||
)
|
||||
|
||||
func NewSink(id stream.SinkId, conn net.Conn) stream.ISink {
|
||||
return &stream.SinkImpl{Id_: id, Protocol_: stream.ProtocolRtmp, Conn: conn, DesiredAudioCodecId_: utils.AVCodecIdNONE, DesiredVideoCodecId_: utils.AVCodecIdNONE}
|
||||
func NewSink(id stream.SinkId, sourceId string, conn net.Conn) stream.ISink {
|
||||
return &stream.SinkImpl{Id_: id, SourceId_: sourceId, State_: stream.SessionStateCreate, Protocol_: stream.ProtocolRtmp, Conn: conn, DesiredAudioCodecId_: utils.AVCodecIdNONE, DesiredVideoCodecId_: utils.AVCodecIdNONE}
|
||||
}
|
||||
|
Reference in New Issue
Block a user