完善http接口封装

This commit is contained in:
yangjiechina
2024-04-10 10:34:11 +08:00
parent 8dc824494e
commit 598311f21f
5 changed files with 140 additions and 120 deletions

View File

@@ -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.(*stream.SinkImpl).Play(sink, func() {
sink.Play(func() {
s.handle = sink
response <- utils.HookStateOK
}, func(state utils.HookState) {