Change BundlePolicy to max-bundle (#2253)
Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io>
This commit is contained in:
@ -335,7 +335,9 @@ class EngineConnection {
|
|||||||
// Information on the connect transaction
|
// Information on the connect transaction
|
||||||
|
|
||||||
const createPeerConnection = () => {
|
const createPeerConnection = () => {
|
||||||
this.pc = new RTCPeerConnection()
|
this.pc = new RTCPeerConnection({
|
||||||
|
bundlePolicy: 'max-bundle',
|
||||||
|
})
|
||||||
|
|
||||||
// Data channels MUST BE specified before SDP offers because requesting
|
// Data channels MUST BE specified before SDP offers because requesting
|
||||||
// them affects what our needs are!
|
// them affects what our needs are!
|
||||||
@ -660,6 +662,7 @@ failed cmd type was ${artifactThatFailed?.commandType}`
|
|||||||
// talk to the engine in any configuration /other/ than relay
|
// talk to the engine in any configuration /other/ than relay
|
||||||
// from a infra POV.
|
// from a infra POV.
|
||||||
this.pc?.setConfiguration({
|
this.pc?.setConfiguration({
|
||||||
|
bundlePolicy: 'max-bundle',
|
||||||
iceServers: ice_servers,
|
iceServers: ice_servers,
|
||||||
iceTransportPolicy: 'relay',
|
iceTransportPolicy: 'relay',
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user