mirror of
				https://github.com/AlexxIT/go2rtc.git
				synced 2025-10-31 11:46:26 +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 { | func asyncHandler(tr *api.Transport, msg *api.Message) error { | ||||||
| 	src := tr.Request.URL.Query().Get("src") | 	src := tr.Request.URL.Query().Get("src") | ||||||
| 	stream := streams.Get(src) | 	stream := streams.GetOrNew(src) | ||||||
| 	if stream == nil { | 	if stream == nil { | ||||||
| 		return errors.New(api.StreamNotFound) | 		return errors.New(api.StreamNotFound) | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexey Khit
					Alexey Khit