Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-userProxy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-userProxy
Commits
997f2b34
Commit
997f2b34
authored
Jul 27, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
processGroupMicChangeRsp
parent
7d2b9878
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
main.go
main.go
+14
-1
No files found.
main.go
View file @
997f2b34
...
@@ -254,7 +254,9 @@ func serverWebsocket(w http.ResponseWriter, r *http.Request) {
...
@@ -254,7 +254,9 @@ func serverWebsocket(w http.ResponseWriter, r *http.Request) {
logger
.
Errorf
(
"processRoomHeartbeat fail:%v"
,
err
)
logger
.
Errorf
(
"processRoomHeartbeat fail:%v"
,
err
)
}
}
}
else
if
msgType
==
common
.
MsgTypeGroupMicChangeRsp
{
}
else
if
msgType
==
common
.
MsgTypeGroupMicChangeRsp
{
logger
.
Infof
(
"common.MsgTypeGroupMicChangeRsp arrive"
)
if
err
:=
processGroupMicChangeRsp
(
logger
,
ci
.
Uid
,
pbData
);
err
!=
nil
{
logger
.
Errorf
(
"processGroupMicChangeRsp fail:%v"
,
err
)
}
}
else
{
}
else
{
logger
.
Warnf
(
"Unknown message type %d"
,
msgType
)
logger
.
Warnf
(
"Unknown message type %d"
,
msgType
)
}
}
...
@@ -463,6 +465,17 @@ func processRoomHeartbeat(logger *log.Entry, uid uint64, pbData []byte) error {
...
@@ -463,6 +465,17 @@ func processRoomHeartbeat(logger *log.Entry, uid uint64, pbData []byte) error {
}
}
}
}
func
processGroupMicChangeRsp
(
logger
*
log
.
Entry
,
uid
uint64
,
pbData
[]
byte
)
error
{
msg
:=
&
userProxy
.
GroupMicChangeRsp
{}
err
:=
proto
.
Unmarshal
(
pbData
,
msg
)
if
err
==
nil
{
logger
.
Infof
(
"groupMicChangeRsp,uid:%v,seqId:%v"
,
uid
,
msg
.
SeqId
)
}
else
{
return
err
}
return
err
}
// 直接发匹配成功消息,调试用
// 直接发匹配成功消息,调试用
func
homePage
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
func
homePage
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
rsp
:=
"Home Page"
rsp
:=
"Home Page"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment