Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
standalone-anyremote
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
standalone-anyremote
Commits
2e4967ef
Commit
2e4967ef
authored
May 09, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多人通话中完成
parent
938f107d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
anyremote/agoraHandle.js
+8
-9
No files found.
anyremote/agoraHandle.js
View file @
2e4967ef
...
...
@@ -100,10 +100,6 @@ export class AgoraHandle {
}
case
"CmdCall"
:
{
console
.
log
(
'主动呼叫他人的反馈'
,
msgData
);
if
(
chatChannelState
.
value
.
currentState
===
CallState
.
calling
)
{
console
.
log
(
'正在通话中,无须改变状态'
)
break
;
}
handleCommonCall
(
msgData
,
toID
,
fromID
)
toID
.
split
(
','
).
forEach
(
function
(
a
)
{
if
(
!
chatChannelState
.
value
.
currentChatters
.
includes
(
a
))
{
...
...
@@ -115,17 +111,16 @@ export class AgoraHandle {
chatChannelState
.
value
.
currentChatters
.
push
(
a
)
}
})
chatChannelState
.
value
.
channelInitiator
=
toID
;
if
(
chatChannelState
.
value
.
currentState
===
CallState
.
calling
)
{
console
.
log
(
'正在通话中,无须改变状态'
)
break
;
}
chatChannelState
.
value
.
currentState
=
CallState
.
callOut
break
}
case
"Call"
:
{
console
.
log
(
'被别人呼叫的反馈'
,
msgData
)
if
(
chatChannelState
.
value
.
currentState
===
CallState
.
calling
)
{
console
.
log
(
'正在通话中,无须改变状态'
)
break
;
}
handleCommonCall
(
msgData
)
fromID
.
split
(
','
).
forEach
(
function
(
a
)
{
if
(
!
chatChannelState
.
value
.
currentChatters
.
includes
(
a
))
{
...
...
@@ -139,6 +134,10 @@ export class AgoraHandle {
chatChannelState
.
value
.
currentChatters
.
push
(
id
)
}
});
if
(
chatChannelState
.
value
.
currentState
===
CallState
.
calling
)
{
console
.
log
(
'正在通话中,无须改变状态'
)
break
;
}
if
(
fromID
!==
currentId
)
{
chatChannelState
.
value
.
currentState
=
CallState
.
callIn
}
else
{
...
...
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