mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-26 00:30:22 +08:00
接口不使用“I”开头, 实现类不使用"impl"结尾
This commit is contained in:
@@ -6,6 +6,6 @@ import (
|
||||
"net"
|
||||
)
|
||||
|
||||
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}
|
||||
func NewSink(id stream.SinkId, sourceId string, conn net.Conn) stream.Sink {
|
||||
return &stream.BaseSink{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