大改版

This commit is contained in:
langhuihui
2021-02-14 22:56:17 +08:00
parent 70706fc8da
commit c2ff0bbcae
14 changed files with 250 additions and 222 deletions

13
hook.go
View File

@@ -11,12 +11,17 @@ type Hook struct {
Name string
Payload interface{}
}
type TransCodeReq struct {
*Subscriber
RequestCodec string
}
const (
HOOK_SUBSCRIBE = "Subscribe"
HOOK_UNSUBSCRIBE = "UnSubscibe"
HOOK_STREAMCLOSE = "StreamClose"
HOOK_PUBLISH = "Publish"
HOOK_SUBSCRIBE = "Subscribe"
HOOK_UNSUBSCRIBE = "UnSubscibe"
HOOK_STREAMCLOSE = "StreamClose"
HOOK_PUBLISH = "Publish"
HOOK_REQUEST_TRANSAUDIO = "RequestTransAudio"
)
var Hooks = NewRing_Hook()