diff --git a/internal/api/room/broadcast.go b/internal/api/room/broadcast.go index 817c07b7..21a14b90 100644 --- a/internal/api/room/broadcast.go +++ b/internal/api/room/broadcast.go @@ -59,7 +59,7 @@ func (h *RoomHandler) boradcastStop(w http.ResponseWriter, r *http.Request) { utils.HttpUnprocessableEntity(w, "Server is not broadcasting.") return } - + broadcast.Stop() h.sessions.AdminBroadcast( diff --git a/internal/api/room/control.go b/internal/api/room/control.go index de7648c4..92a47571 100644 --- a/internal/api/room/control.go +++ b/internal/api/room/control.go @@ -74,7 +74,7 @@ func (h *RoomHandler) controlRelease(w http.ResponseWriter, r *http.Request) { h.desktop.ResetKeys() h.sessions.ClearHost() - + h.sessions.Broadcast( message.ControlHost{ Event: event.CONTROL_HOST, diff --git a/internal/api/room/handler.go b/internal/api/room/handler.go index 1045cd96..9da74aca 100644 --- a/internal/api/room/handler.go +++ b/internal/api/room/handler.go @@ -46,7 +46,7 @@ func (h *RoomHandler) Route(r chi.Router) { // and this content is sent back to client as text in another // clipboard update. Therefore endpoint is not usable! //r.Post("/image", h.clipboardSetImage) - + // TODO: Refactor. If there would be implemented custom target // retrieval, this endpoint would be useful. //r.Get("/targets", h.clipboardGetTargets) diff --git a/internal/api/room/screen.go b/internal/api/room/screen.go index e79531c6..ddd7a398 100644 --- a/internal/api/room/screen.go +++ b/internal/api/room/screen.go @@ -61,7 +61,7 @@ func (h *RoomHandler) screenConfigurationChange(w http.ResponseWriter, r *http.R func (h *RoomHandler) screenConfigurationsList(w http.ResponseWriter, r *http.Request) { list := []ScreenConfigurationPayload{} - + ScreenConfigurations := h.desktop.ScreenConfigurations() for _, size := range ScreenConfigurations { for _, fps := range size.Rates { diff --git a/internal/capture/broadcast.go b/internal/capture/broadcast.go index 4fd4c20e..50d6eb65 100644 --- a/internal/capture/broadcast.go +++ b/internal/capture/broadcast.go @@ -52,7 +52,7 @@ func (manager *BroacastManagerCtx) createPipeline() error { Str("video_display", manager.config.Display). Str("broadcast_pipeline", manager.config.BroadcastPipeline). Msgf("creating pipeline") - + manager.pipeline, err = gst.CreateRTMPPipeline( manager.config.Device, manager.config.Display, diff --git a/internal/capture/manager.go b/internal/capture/manager.go index e217119f..61734d22 100644 --- a/internal/capture/manager.go +++ b/internal/capture/manager.go @@ -105,7 +105,7 @@ func (manager *CaptureManagerCtx) Start() { func (manager *CaptureManagerCtx) Shutdown() error { manager.logger.Info().Msgf("capture shutting down") - + if manager.Streaming() { manager.StopStream() } diff --git a/internal/capture/screencast.go b/internal/capture/screencast.go index f08a05ab..56d8ea72 100644 --- a/internal/capture/screencast.go +++ b/internal/capture/screencast.go @@ -128,7 +128,7 @@ func (manager *ScreencastManagerCtx) createPipeline() error { Str("video_display", manager.config.Display). Str("screencast_pipeline", manager.config.ScreencastPipeline). Msgf("creating pipeline") - + manager.pipeline, err = gst.CreateJPEGPipeline( manager.config.Display, manager.config.ScreencastPipeline, diff --git a/internal/desktop/clipboard.go b/internal/desktop/clipboard.go index f60a3c1f..ec6876e6 100644 --- a/internal/desktop/clipboard.go +++ b/internal/desktop/clipboard.go @@ -104,7 +104,7 @@ func (manager *DesktopManagerCtx) ClipboardGetTargets() ([]string, error) { if !strings.Contains(target, "/") { continue } - + response = append(response, target) } diff --git a/internal/desktop/xorg/xorg.go b/internal/desktop/xorg/xorg.go index bc41b0e9..d924a892 100644 --- a/internal/desktop/xorg/xorg.go +++ b/internal/desktop/xorg/xorg.go @@ -57,7 +57,7 @@ func DisplayOpen(display string) error { func DisplayClose() { mu.Lock() defer mu.Unlock() - + C.XDisplayClose() } diff --git a/internal/webrtc/peer.go b/internal/webrtc/peer.go index bd211ffd..325a3af2 100644 --- a/internal/webrtc/peer.go +++ b/internal/webrtc/peer.go @@ -23,6 +23,6 @@ func (webrtc_peer *WebRTCPeerCtx) Destroy() error { if webrtc_peer.connection == nil || webrtc_peer.connection.ConnectionState() != webrtc.PeerConnectionStateConnected { return nil } - + return webrtc_peer.connection.Close() } diff --git a/internal/websocket/manager.go b/internal/websocket/manager.go index a90c7720..4c6c17de 100644 --- a/internal/websocket/manager.go +++ b/internal/websocket/manager.go @@ -242,7 +242,7 @@ func (ws *WebSocketManagerCtx) handle(connection *websocket.Conn, session types. } else { ws.logger.Debug().Err(err).Msg("read message error") } - + close(cancel) break } diff --git a/runtime/xorg.conf b/runtime/xorg.conf index eab523cb..071a48f5 100644 --- a/runtime/xorg.conf +++ b/runtime/xorg.conf @@ -55,7 +55,7 @@ Section "Monitor" Modeline "960x720_60.00" 55.86 960 1008 1104 1248 720 721 724 746 -HSync +Vsync # 800x600 @ 60.00 Hz (GTF) hsync: 37.32 kHz; pclk: 38.22 MHz Modeline "800x600_60.00" 38.22 800 832 912 1024 600 601 604 622 -HSync +Vsync - + # 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync # 1920x1080 @ 30.00 Hz (GTF) hsync: 32.97 kHz; pclk: 80.18 MHz