mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
SignalVideo reply.
This commit is contained in:
parent
dd2ca03955
commit
626164df89
@ -61,7 +61,7 @@ type SignalAnswer struct {
|
|||||||
|
|
||||||
type SignalVideo struct {
|
type SignalVideo struct {
|
||||||
Event string `json:"event,omitempty"`
|
Event string `json:"event,omitempty"`
|
||||||
VideoID string `json:"video_id"`
|
Video string `json:"video"`
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
@ -57,5 +57,14 @@ func (h *MessageHandlerCtx) signalVideo(session types.Session, payload *message.
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return peer.SetVideoID(payload.VideoID)
|
err := peer.SetVideoID(payload.Video)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
return session.Send(
|
||||||
|
message.SignalVideo{
|
||||||
|
Event: event.SIGNAL_VIDEO,
|
||||||
|
Video: payload.Video,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user