mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-18 14:40:40 +08:00
4.0初步改造
This commit is contained in:
20
events.go
Normal file
20
events.go
Normal 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()
|
Reference in New Issue
Block a user