mirror of https://github.com/jetkvm/kvm.git
Fix: goimports
This commit is contained in:
parent
638d08cdc5
commit
a208715cc6
6
web.go
6
web.go
|
@ -173,11 +173,11 @@ func setupRouter() *gin.Engine {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
audio.SetAudioMuted(req.Muted)
|
audio.SetAudioMuted(req.Muted)
|
||||||
|
|
||||||
// Broadcast audio mute state change via WebSocket
|
// Broadcast audio mute state change via WebSocket
|
||||||
broadcaster := GetAudioEventBroadcaster()
|
broadcaster := GetAudioEventBroadcaster()
|
||||||
broadcaster.BroadcastAudioMuteChanged(req.Muted)
|
broadcaster.BroadcastAudioMuteChanged(req.Muted)
|
||||||
|
|
||||||
c.JSON(200, gin.H{"muted": req.Muted})
|
c.JSON(200, gin.H{"muted": req.Muted})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -314,7 +314,7 @@ func setupRouter() *gin.Engine {
|
||||||
// Broadcast microphone state change via WebSocket
|
// Broadcast microphone state change via WebSocket
|
||||||
broadcaster := GetAudioEventBroadcaster()
|
broadcaster := GetAudioEventBroadcaster()
|
||||||
broadcaster.BroadcastMicrophoneStateChanged(true, true)
|
broadcaster.BroadcastMicrophoneStateChanged(true, true)
|
||||||
|
|
||||||
c.JSON(200, gin.H{
|
c.JSON(200, gin.H{
|
||||||
"status": "started",
|
"status": "started",
|
||||||
"running": currentSession.AudioInputManager.IsRunning(),
|
"running": currentSession.AudioInputManager.IsRunning(),
|
||||||
|
|
Loading…
Reference in New Issue