mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-06 10:20:26 +02:00
pipeline error handling.
This commit is contained in:
parent
d70ae4410f
commit
64c3449322
1 changed files with 5 additions and 1 deletions
|
@ -181,7 +181,11 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, videoID strin
|
||||||
srcManager = manager.capture.Webcam()
|
srcManager = manager.capture.Webcam()
|
||||||
}
|
}
|
||||||
|
|
||||||
srcManager.Start(codec)
|
err := srcManager.Start(codec)
|
||||||
|
if err != nil {
|
||||||
|
logger.Err(err).Msg("failed to start pipeline")
|
||||||
|
return
|
||||||
|
}
|
||||||
defer srcManager.Stop() // TODO: Ensure no new publisher took over.
|
defer srcManager.Stop() // TODO: Ensure no new publisher took over.
|
||||||
|
|
||||||
// Send a PLI on an interval so that the publisher is pushing a keyframe every rtcpPLIInterval
|
// Send a PLI on an interval so that the publisher is pushing a keyframe every rtcpPLIInterval
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue