send video IDs with signal provide.

This commit is contained in:
Miroslav Šedivý 2021-02-07 16:52:30 +01:00
parent 1838a74213
commit 5cdb6e074e
2 changed files with 10 additions and 8 deletions

View File

@ -45,6 +45,7 @@ type SignalProvide struct {
SDP string `json:"sdp"` SDP string `json:"sdp"`
Lite bool `json:"lite"` Lite bool `json:"lite"`
ICE []string `json:"ice"` ICE []string `json:"ice"`
Videos []string `json:"videos"`
} }
type SignalCandidate struct { type SignalCandidate struct {

View File

@ -22,6 +22,7 @@ func (h *MessageHandlerCtx) signalRequest(session types.Session) error {
SDP: offer.SDP, SDP: offer.SDP,
Lite: h.webrtc.ICELite(), Lite: h.webrtc.ICELite(),
ICE: h.webrtc.ICEServers(), ICE: h.webrtc.ICEServers(),
Videos: h.capture.VideoIDs(),
}) })
} }