4.0初步改造

This commit is contained in:
dexter
2022-02-02 10:39:09 +08:00
parent 6ace71fac6
commit b2489b2305
59 changed files with 6192 additions and 2061 deletions

20
events.go Normal file
View File

@@ -0,0 +1,20 @@
package engine
import (
"github.com/asaskevich/EventBus"
)
type TransCodeReq struct {
*Subscriber
RequestCodec string
}
const (
Event_SUBSCRIBE = "Subscribe"
Event_UNSUBSCRIBE = "UnSubscibe"
Event_STREAMCLOSE = "StreamClose"
Event_PUBLISH = "Publish"
Event_REQUEST_TRANSAUDIO = "RequestTransAudio"
)
var Bus = EventBus.New()