change screen size only on desktop.

This commit is contained in:
Miroslav Šedivý
2020-11-04 00:27:47 +01:00
parent b0ae758d7b
commit a8173ce02f
11 changed files with 90 additions and 62 deletions

View File

@ -48,7 +48,7 @@ func (h *RoomHandler) ScreenConfigurationChange(w http.ResponseWriter, r *http.R
return
}
if err := h.capture.ChangeResolution(data.Width, data.Height, data.Rate); err != nil {
if err := h.desktop.ChangeScreenSize(data.Width, data.Height, data.Rate); err != nil {
_ = render.Render(w, r, utils.ErrUnprocessableEntity(err))
return
}