mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-19 17:49:31 +02:00
change screen size only on desktop.
This commit is contained in:
parent
b0ae758d7b
commit
a8173ce02f
11 changed files with 90 additions and 62 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue