mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 23:26:58 +08:00

On Firefox, the RTCIceCandidate interface appears to just be an RTCIceCandidateInit in disguise. That is, it does not have properties for each individual component of the candidate line. It only has the raw SDP string in the candidate property. This change falls back to parsing the candidate line if some expected property is missing when preparing the candidate for the callback OnICECandidate. https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate https://caniuse.com/#feat=mdn-api_rtcicecandidate_priority
11 lines
332 B
Go
11 lines
332 B
Go
// +build !js
|
|
|
|
package webrtc
|
|
|
|
// NewICETransport creates a new NewICETransport.
|
|
// This constructor is part of the ORTC API. It is not
|
|
// meant to be used together with the basic WebRTC API.
|
|
func (api *API) NewICETransport(gatherer *ICEGatherer) *ICETransport {
|
|
return NewICETransport(gatherer, api.settingEngine.LoggerFactory)
|
|
}
|