mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
send video IDs with signal provide.
This commit is contained in:
parent
1838a74213
commit
5cdb6e074e
@ -41,10 +41,11 @@ type SystemDisconnect struct {
|
|||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
|
||||||
type SignalProvide struct {
|
type SignalProvide struct {
|
||||||
Event string `json:"event,omitempty"`
|
Event string `json:"event,omitempty"`
|
||||||
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 {
|
||||||
|
@ -18,10 +18,11 @@ func (h *MessageHandlerCtx) signalRequest(session types.Session) error {
|
|||||||
|
|
||||||
return session.Send(
|
return session.Send(
|
||||||
message.SignalProvide{
|
message.SignalProvide{
|
||||||
Event: event.SIGNAL_PROVIDE,
|
Event: event.SIGNAL_PROVIDE,
|
||||||
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(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user