mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-26 21:19:04 +02:00
add Trickle ICE support.
This commit is contained in:
parent
dd4c67a6c4
commit
cae8201908
9 changed files with 68 additions and 17 deletions
|
@ -17,6 +17,10 @@ func (webrtc_peer *WebRTCPeerCtx) SignalAnswer(sdp string) error {
|
|||
})
|
||||
}
|
||||
|
||||
func (webrtc_peer *WebRTCPeerCtx) SignalCandidate(candidate webrtc.ICECandidateInit) error {
|
||||
return webrtc_peer.connection.AddICECandidate(candidate)
|
||||
}
|
||||
|
||||
func (webrtc_peer *WebRTCPeerCtx) Destroy() error {
|
||||
if webrtc_peer.connection == nil || webrtc_peer.connection.ConnectionState() != webrtc.PeerConnectionStateConnected {
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue