mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
pipeline error handling.
This commit is contained in:
parent
d70ae4410f
commit
64c3449322
@ -181,7 +181,11 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, videoID strin
|
||||
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.
|
||||
|
||||
// Send a PLI on an interval so that the publisher is pushing a keyframe every rtcpPLIInterval
|
||||
|
Loading…
Reference in New Issue
Block a user