mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add broadcast endpoint & broadcast pipeline return error.
This commit is contained in:
@ -20,7 +20,7 @@ type CaptureManager interface {
|
||||
Streaming() bool
|
||||
|
||||
// broacast
|
||||
StartBroadcast(url string)
|
||||
StartBroadcast(url string) error
|
||||
StopBroadcast()
|
||||
BroadcastEnabled() bool
|
||||
BroadcastUrl() string
|
||||
|
@ -30,6 +30,7 @@ type SessionManager interface {
|
||||
Admins() []Session
|
||||
Members() []Session
|
||||
Broadcast(v interface{}, exclude interface{})
|
||||
AdminBroadcast(v interface{}, exclude interface{})
|
||||
|
||||
OnHost(listener func(session Session))
|
||||
OnHostCleared(listener func(session Session))
|
||||
|
Reference in New Issue
Block a user