mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-18 00:55:40 +00:00
Add Trickle ICE support on the server
This commit is contained in:
parent
7c604e94fb
commit
337bf6149c
1 changed files with 3 additions and 2 deletions
|
|
@ -92,8 +92,9 @@ func (p *Peer) NewCall(vCodec, aCodec string, onICECandidate func(ice any)) (sdp
|
|||
}
|
||||
|
||||
p.conn.OnICEConnectionStateChange(p.handleICEState(func() { p.log.Info().Msg("Connected") }))
|
||||
// Stream provider supposes to send offer
|
||||
offer, err := p.conn.CreateOffer(nil)
|
||||
offer, err := p.conn.CreateOffer(&webrtc.OfferOptions{
|
||||
OfferAnswerOptions: webrtc.OfferAnswerOptions{ICETricklingSupported: true},
|
||||
})
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue