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

@ -19,8 +19,6 @@ type CaptureManager interface {
StopStream()
Streaming() bool
ChangeResolution(width int, height int, rate int) error
// broacast
StartBroadcast(url string)
StopBroadcast()

View File

@ -15,6 +15,7 @@ type ScreenConfiguration struct {
type DesktopManager interface {
Start()
Shutdown() error
OnScreenSizeChange(listener func(width int, height int, rate int))
// xorg
ChangeScreenSize(width int, height int, rate int) error