add broadcast endpoint & broadcast pipeline return error.

This commit is contained in:
Miroslav Šedivý
2020-11-18 21:34:39 +01:00
parent 6fbb1a2cc7
commit db820806a4
8 changed files with 124 additions and 15 deletions

View File

@ -20,7 +20,7 @@ type CaptureManager interface {
Streaming() bool
// broacast
StartBroadcast(url string)
StartBroadcast(url string) error
StopBroadcast()
BroadcastEnabled() bool
BroadcastUrl() string

View File

@ -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))