mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 15:16:49 +08:00
支持GB28181三种推流
This commit is contained in:
@@ -30,11 +30,11 @@ type eventInfo struct {
|
||||
}
|
||||
|
||||
func NewPlayHookEventInfo(stream, remoteAddr string, protocol Protocol) eventInfo {
|
||||
return eventInfo{stream: stream, protocol: streamTypeToStr(protocol), remoteAddr: remoteAddr}
|
||||
return eventInfo{stream: stream, protocol: protocol.ToString(), remoteAddr: remoteAddr}
|
||||
}
|
||||
|
||||
func NewPublishHookEventInfo(stream, remoteAddr string, protocol SourceType) eventInfo {
|
||||
return eventInfo{stream: stream, protocol: sourceTypeToStr(protocol), remoteAddr: remoteAddr}
|
||||
return eventInfo{stream: stream, protocol: protocol.ToString(), remoteAddr: remoteAddr}
|
||||
}
|
||||
|
||||
type HookHandler interface {
|
||||
|
Reference in New Issue
Block a user