MCPcopy Create free account
hub / github.com/deepch/RTSPtoWebRTC / serveStreams

Function serveStreams

stream.go:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15)
16
17func serveStreams() {
18 for k, v := range Config.Streams {
19 if !v.OnDemand {
20 go RTSPWorkerLoop(k, v.URL, v.OnDemand, v.DisableAudio, v.Debug)
21 }
22 }
23}
24func RTSPWorkerLoop(name, url string, OnDemand, DisableAudio, Debug bool) {
25 defer Config.RunUnlock(name)
26 for {

Callers 1

mainFunction · 0.85

Calls 1

RTSPWorkerLoopFunction · 0.85

Tested by

no test coverage detected