mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-10-28 02:21:36 +08:00
Add auto create new stream for async webrtc
This commit is contained in:
@@ -68,7 +68,7 @@ var NewPConn func() (*pion.PeerConnection, error)
|
||||
|
||||
func asyncHandler(tr *api.Transport, msg *api.Message) error {
|
||||
src := tr.Request.URL.Query().Get("src")
|
||||
stream := streams.Get(src)
|
||||
stream := streams.GetOrNew(src)
|
||||
if stream == nil {
|
||||
return errors.New(api.StreamNotFound)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user