mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-22 12:38:05 +02:00
refactor capture with broadcast.
This commit is contained in:
parent
72da075972
commit
fd43f84bd0
21 changed files with 1135 additions and 570 deletions
|
@ -12,7 +12,11 @@ func (h *MessageHandler) screenSet(id string, session types.Session, payload *me
|
|||
return nil
|
||||
}
|
||||
|
||||
if err := h.capture.ChangeResolution(payload.Width, payload.Height, payload.Rate); err != nil {
|
||||
if err := h.desktop.SetScreenSize(types.ScreenSize{
|
||||
Width: payload.Width,
|
||||
Height: payload.Height,
|
||||
Rate: payload.Rate,
|
||||
}); err != nil {
|
||||
h.logger.Warn().Err(err).Msgf("unable to change screen size")
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue