mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 15:16:49 +08:00
封装http-flv
This commit is contained in:
@@ -55,7 +55,7 @@ func (s *sessionImpl) OnPlay(app, stream_ string, response chan utils.HookState)
|
||||
sourceId := app + "_" + stream_
|
||||
|
||||
//拉流事件Sink统一处理
|
||||
sink := NewSink(stream.GenerateSinkId(s.conn), sourceId, s.conn)
|
||||
sink := NewSink(stream.GenerateSinkId(s.conn.RemoteAddr()), sourceId, s.conn)
|
||||
sink.(*stream.SinkImpl).Play(sink, func() {
|
||||
s.handle = sink
|
||||
response <- utils.HookStateOK
|
||||
|
Reference in New Issue
Block a user