微信小程序\推拉流

This commit is contained in:
2025-12-15 21:57:21 +08:00
parent 2fca6e5c43
commit 73c2073cf1
14 changed files with 2545 additions and 421 deletions

View File

@@ -310,6 +310,10 @@ func main() {
}
})
// WebSocket 推流路由(不经过 authGroup,避免中间件干扰 WebSocket 升级)
// 路径:GET /api/call/ws-push?stream_id=xxx&user_id=xxx&room_id=xxx&token=xxx
r.GET("/api/call/ws-push", api.WSPushHandler)
// 步骤9: 注册HTTP API路由
apiGroup := r.Group("/api")
{