mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
lint remove whitespaces.
This commit is contained in:
parent
e152ee295b
commit
91f1727723
@ -59,7 +59,7 @@ func (h *RoomHandler) boradcastStop(w http.ResponseWriter, r *http.Request) {
|
|||||||
utils.HttpUnprocessableEntity(w, "Server is not broadcasting.")
|
utils.HttpUnprocessableEntity(w, "Server is not broadcasting.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
broadcast.Stop()
|
broadcast.Stop()
|
||||||
|
|
||||||
h.sessions.AdminBroadcast(
|
h.sessions.AdminBroadcast(
|
||||||
|
@ -74,7 +74,7 @@ func (h *RoomHandler) controlRelease(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
h.desktop.ResetKeys()
|
h.desktop.ResetKeys()
|
||||||
h.sessions.ClearHost()
|
h.sessions.ClearHost()
|
||||||
|
|
||||||
h.sessions.Broadcast(
|
h.sessions.Broadcast(
|
||||||
message.ControlHost{
|
message.ControlHost{
|
||||||
Event: event.CONTROL_HOST,
|
Event: event.CONTROL_HOST,
|
||||||
|
@ -46,7 +46,7 @@ func (h *RoomHandler) Route(r chi.Router) {
|
|||||||
// and this content is sent back to client as text in another
|
// and this content is sent back to client as text in another
|
||||||
// clipboard update. Therefore endpoint is not usable!
|
// clipboard update. Therefore endpoint is not usable!
|
||||||
//r.Post("/image", h.clipboardSetImage)
|
//r.Post("/image", h.clipboardSetImage)
|
||||||
|
|
||||||
// TODO: Refactor. If there would be implemented custom target
|
// TODO: Refactor. If there would be implemented custom target
|
||||||
// retrieval, this endpoint would be useful.
|
// retrieval, this endpoint would be useful.
|
||||||
//r.Get("/targets", h.clipboardGetTargets)
|
//r.Get("/targets", h.clipboardGetTargets)
|
||||||
|
@ -61,7 +61,7 @@ func (h *RoomHandler) screenConfigurationChange(w http.ResponseWriter, r *http.R
|
|||||||
|
|
||||||
func (h *RoomHandler) screenConfigurationsList(w http.ResponseWriter, r *http.Request) {
|
func (h *RoomHandler) screenConfigurationsList(w http.ResponseWriter, r *http.Request) {
|
||||||
list := []ScreenConfigurationPayload{}
|
list := []ScreenConfigurationPayload{}
|
||||||
|
|
||||||
ScreenConfigurations := h.desktop.ScreenConfigurations()
|
ScreenConfigurations := h.desktop.ScreenConfigurations()
|
||||||
for _, size := range ScreenConfigurations {
|
for _, size := range ScreenConfigurations {
|
||||||
for _, fps := range size.Rates {
|
for _, fps := range size.Rates {
|
||||||
|
@ -52,7 +52,7 @@ func (manager *BroacastManagerCtx) createPipeline() error {
|
|||||||
Str("video_display", manager.config.Display).
|
Str("video_display", manager.config.Display).
|
||||||
Str("broadcast_pipeline", manager.config.BroadcastPipeline).
|
Str("broadcast_pipeline", manager.config.BroadcastPipeline).
|
||||||
Msgf("creating pipeline")
|
Msgf("creating pipeline")
|
||||||
|
|
||||||
manager.pipeline, err = gst.CreateRTMPPipeline(
|
manager.pipeline, err = gst.CreateRTMPPipeline(
|
||||||
manager.config.Device,
|
manager.config.Device,
|
||||||
manager.config.Display,
|
manager.config.Display,
|
||||||
|
@ -105,7 +105,7 @@ func (manager *CaptureManagerCtx) Start() {
|
|||||||
|
|
||||||
func (manager *CaptureManagerCtx) Shutdown() error {
|
func (manager *CaptureManagerCtx) Shutdown() error {
|
||||||
manager.logger.Info().Msgf("capture shutting down")
|
manager.logger.Info().Msgf("capture shutting down")
|
||||||
|
|
||||||
if manager.Streaming() {
|
if manager.Streaming() {
|
||||||
manager.StopStream()
|
manager.StopStream()
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ func (manager *ScreencastManagerCtx) createPipeline() error {
|
|||||||
Str("video_display", manager.config.Display).
|
Str("video_display", manager.config.Display).
|
||||||
Str("screencast_pipeline", manager.config.ScreencastPipeline).
|
Str("screencast_pipeline", manager.config.ScreencastPipeline).
|
||||||
Msgf("creating pipeline")
|
Msgf("creating pipeline")
|
||||||
|
|
||||||
manager.pipeline, err = gst.CreateJPEGPipeline(
|
manager.pipeline, err = gst.CreateJPEGPipeline(
|
||||||
manager.config.Display,
|
manager.config.Display,
|
||||||
manager.config.ScreencastPipeline,
|
manager.config.ScreencastPipeline,
|
||||||
|
@ -104,7 +104,7 @@ func (manager *DesktopManagerCtx) ClipboardGetTargets() ([]string, error) {
|
|||||||
if !strings.Contains(target, "/") {
|
if !strings.Contains(target, "/") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
response = append(response, target)
|
response = append(response, target)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ func DisplayOpen(display string) error {
|
|||||||
func DisplayClose() {
|
func DisplayClose() {
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
defer mu.Unlock()
|
defer mu.Unlock()
|
||||||
|
|
||||||
C.XDisplayClose()
|
C.XDisplayClose()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +23,6 @@ func (webrtc_peer *WebRTCPeerCtx) Destroy() error {
|
|||||||
if webrtc_peer.connection == nil || webrtc_peer.connection.ConnectionState() != webrtc.PeerConnectionStateConnected {
|
if webrtc_peer.connection == nil || webrtc_peer.connection.ConnectionState() != webrtc.PeerConnectionStateConnected {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return webrtc_peer.connection.Close()
|
return webrtc_peer.connection.Close()
|
||||||
}
|
}
|
||||||
|
@ -242,7 +242,7 @@ func (ws *WebSocketManagerCtx) handle(connection *websocket.Conn, session types.
|
|||||||
} else {
|
} else {
|
||||||
ws.logger.Debug().Err(err).Msg("read message error")
|
ws.logger.Debug().Err(err).Msg("read message error")
|
||||||
}
|
}
|
||||||
|
|
||||||
close(cancel)
|
close(cancel)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ Section "Monitor"
|
|||||||
Modeline "960x720_60.00" 55.86 960 1008 1104 1248 720 721 724 746 -HSync +Vsync
|
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
|
# 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
|
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
|
# 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
|
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
|
# 1920x1080 @ 30.00 Hz (GTF) hsync: 32.97 kHz; pclk: 80.18 MHz
|
||||||
|
Loading…
Reference in New Issue
Block a user