mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 15:16:49 +08:00
sink hook单独封装
This commit is contained in:
@@ -61,7 +61,7 @@ func (s *sessionImpl) OnPlay(app, stream_ string, response chan utils.HookState)
|
||||
|
||||
log.Sugar.Infof("rtmp onplay app:%s stream:%s sink:%v conn:%s", app, stream_, sink.Id(), s.conn.RemoteAddr().String())
|
||||
|
||||
sink.Play(func() {
|
||||
stream.HookPlaying(sink, func() {
|
||||
s.handle = sink
|
||||
response <- utils.HookStateOK
|
||||
}, func(state utils.HookState) {
|
||||
|
Reference in New Issue
Block a user