视频通话功能实现

This commit is contained in:
2025-07-30 18:54:00 +08:00
parent cc831e127b
commit 5838515b9a
15 changed files with 2493 additions and 64 deletions

View File

@@ -17,5 +17,8 @@ import (
func Register(r *server.Hertz) {
root := r.Group("/", rootMw()...)
root.POST("/audioCall", append(_callMw(), audioAndVideoCalls.Call)...)
root.POST("/audioCall", append(_audiocallMw(), audioAndVideoCalls.AudioCall)...)
root.DELETE("/room", append(_roomremoveMw(), audioAndVideoCalls.RoomRemove)...)
root.GET("/roomlist", append(_roomlistMw(), audioAndVideoCalls.RoomList)...)
root.POST("/videoCall", append(_videocallMw(), audioAndVideoCalls.VideoCall)...)
}

View File

@@ -20,3 +20,28 @@ func _callMw() []app.HandlerFunc {
// your code...
return nil
}
func _call0Mw() []app.HandlerFunc {
// your code...
return nil
}
func _audiocallMw() []app.HandlerFunc {
// your code...
return nil
}
func _videocallMw() []app.HandlerFunc {
// your code...
return nil
}
func _roomlistMw() []app.HandlerFunc {
// your code...
return nil
}
func _roomremoveMw() []app.HandlerFunc {
// your code...
return nil
}