2
2
mirror of https://github.com/m1k1o/neko.git synced 2024-07-24 14:40:50 +12:00

add Trickle ICE support.

This commit is contained in:
Miroslav Šedivý
2021-02-02 20:43:33 +01:00
parent dd4c67a6c4
commit cae8201908
9 changed files with 68 additions and 17 deletions

@ -1,6 +1,8 @@
package message
import (
"github.com/pion/webrtc/v3"
"demodesk/neko/internal/types"
)
@ -45,6 +47,11 @@ type SignalProvide struct {
ICE []string `json:"ice"`
}
type SignalCandidate struct {
Event string `json:"event,omitempty"`
*webrtc.ICECandidateInit
}
type SignalAnswer struct {
Event string `json:"event,omitempty"`
SDP string `json:"sdp"`