通知播放结束事件携带sink id

This commit is contained in:
yangjiechina
2024-11-05 19:46:15 +08:00
parent d66c724e0d
commit 4e809f9c26
3 changed files with 19 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ func Hook(event HookEvent, params string, body interface{}) (*http.Response, err
}
func NewHookPlayEventInfo(sink Sink) eventInfo {
return eventInfo{Stream: sink.GetSourceID(), Protocol: sink.GetProtocol().String(), RemoteAddr: sink.String()}
return eventInfo{Stream: sink.GetSourceID(), Protocol: sink.GetProtocol().String(), RemoteAddr: sink.RemoteAddr()}
}
func NewHookPublishEventInfo(source Source) eventInfo {