mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-29 13:31:01 +02:00
Send SRT stream to WebRTC package
This commit is contained in:
@ -43,7 +43,7 @@ func splitHostPort(hostport string) (string, uint16) {
|
||||
}
|
||||
|
||||
// Serve SRT server
|
||||
func Serve(cfg *Options, authBackend auth.Backend, forwardingChannel chan Packet) {
|
||||
func Serve(cfg *Options, authBackend auth.Backend, forwardingChannel, webrtcChannel chan Packet) {
|
||||
// Start SRT in listening mode
|
||||
log.Printf("SRT server listening on %s", cfg.ListenAddress)
|
||||
host, port := splitHostPort(cfg.ListenAddress)
|
||||
@ -82,7 +82,7 @@ func Serve(cfg *Options, authBackend auth.Backend, forwardingChannel chan Packet
|
||||
}
|
||||
}
|
||||
|
||||
go handleStreamer(s, name, &clientDataChannels, forwardingChannel)
|
||||
go handleStreamer(s, name, &clientDataChannels, forwardingChannel, webrtcChannel)
|
||||
} else {
|
||||
// password was not provided so it is a viewer
|
||||
name := split[0]
|
||||
|
Reference in New Issue
Block a user