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.")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
broadcast.Stop()
|
||||
|
||||
h.sessions.AdminBroadcast(
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
|
@ -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()
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -104,7 +104,7 @@ func (manager *DesktopManagerCtx) ClipboardGetTargets() ([]string, error) {
|
||||
if !strings.Contains(target, "/") {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
response = append(response, target)
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ func DisplayOpen(display string) error {
|
||||
func DisplayClose() {
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
|
||||
|
||||
C.XDisplayClose()
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user