This commit is contained in:
2024-10-24 16:21:35 +08:00
parent 020f2eea9b
commit 8634c204f1
2 changed files with 145 additions and 99 deletions

View File

@@ -108,7 +108,6 @@ func (s *Server) handleWebSocket(c *gin.Context) {
go func() {
ticker := time.NewTicker(1 * time.Second)
for range ticker.C {
streamer.GlobalStreamer.TruncateOutput()
currentVideoPath, _ := streamer.GlobalStreamer.GetCurrentVideoPath()
s.Broadcast(mywebsocket.Date{
Timestamp: time.Now().UnixMilli(),