mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-26 05:19:15 -08:00
webrtc: improve connectivity mechanism (#2686)
This commit is contained in:
parent
4cf8948fe6
commit
687d8685ef
13 changed files with 261 additions and 228 deletions
|
|
@ -27,7 +27,10 @@ func whipOffer(body []byte) *pwebrtc.SessionDescription {
|
|||
}
|
||||
|
||||
func TestSource(t *testing.T) {
|
||||
api, err := webrtc.NewAPI(webrtc.APIConf{})
|
||||
api, err := webrtc.NewAPI(webrtc.APIConf{
|
||||
LocalRandomUDP: true,
|
||||
IPsFromInterfaces: true,
|
||||
})
|
||||
require.NoError(t, err)
|
||||
|
||||
pc := &webrtc.PeerConnection{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue