Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
ws-rst
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
qlintonger xeno
ws-rst
Commits
1ebd2716
Commit
1ebd2716
authored
Feb 17, 2025
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
尝试对接声网有关操作以及音视频+1.1
parent
2579a50d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/handles/handle_agora_call.rs
+2
-2
No files found.
src/handles/handle_agora_call.rs
View file @
1ebd2716
...
...
@@ -331,7 +331,7 @@ pub async fn handle_agora_call(
"Refuse"
=>
{
// 当前用户拒接电话之后,直接给当前用户发送CmdHangup消息
// 给toId用户发送CmdRefuse,表示对方拒接了电话
if
let
Some
(
current_user_data
)
=
ONLINE_USERS
.get
(
&
from_id
)
{
if
let
Some
(
current_user_data
)
=
ONLINE_USERS
.get
(
from_id
)
{
let
mut
current_user_data_vec
:
Vec
<&
str
>
=
current_user_data
.split
(
','
)
.collect
();
let
hangup_refuse_message
=
serde_json
::
json!
({
"msgType"
:
"CmdRefuse"
,
...
...
@@ -400,7 +400,7 @@ pub async fn handle_agora_call(
// 主持人结束通话
"EndMeeting"
=>
{
// 要求判断是否为主持人,只有主持人可以结束通话
if
let
Some
(
current_user_data
)
=
ONLINE_USERS
.get
(
&
from_id
)
{
if
let
Some
(
current_user_data
)
=
ONLINE_USERS
.get
(
from_id
)
{
let
mut
current_user_data_vec
:
Vec
<&
str
>
=
current_user_data
.split
(
','
)
.collect
();
// 如果不是主持人,不允许发送该消息
if
current_user_data_vec
[
6
]
!=
"1"
{
...
...
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