choose video with CreatePeer.

This commit is contained in:
Miroslav Šedivý 2021-02-07 17:07:55 +01:00
parent 5cdb6e074e
commit dd2ca03955
4 changed files with 28 additions and 28 deletions

View file

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

View file

@ -17,5 +17,5 @@ type WebRTCManager interface {
ICELite() bool
ICEServers() []string
CreatePeer(session Session) (*webrtc.SessionDescription, error)
CreatePeer(session Session, videoID string) (*webrtc.SessionDescription, error)
}