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
5dd5a58b
Commit
5dd5a58b
authored
May 07, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通话数据问题准备修复+5
parent
b128f57f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
anyremote/agora/index.js
+0
-6
No files found.
anyremote/agora/index.js
View file @
5dd5a58b
...
...
@@ -225,17 +225,11 @@ export class Agora {
const
targetUser
=
userStates
.
value
.
onlineContacts
.
find
(
a
=>
a
.
fromID
.
toString
()
===
uidS
);
console
.
log
(
'在线用户加入了频道'
,
targetUser
)
targetUser
.
callState
=
'calling'
if
(
!
chatChannelState
.
value
.
currentChatters
.
includes
(
uidS
))
{
chatChannelState
.
value
.
currentChatters
.
push
(
uidS
)
}
})
this
.
AgoraClient
.
on
(
'user-left'
,
(
user
)
=>
{
const
uidS
=
user
.
uid
.
toString
()
const
targetUser
=
userStates
.
value
.
onlineContacts
.
find
(
a
=>
a
.
fromID
.
toString
()
===
uidS
);
console
.
log
(
'在线用户离开了频道'
,
targetUser
)
if
(
chatChannelState
.
value
.
currentChatters
.
includes
(
uidS
))
{
chatChannelState
.
value
.
currentChatters
.
splice
(
chatChannelState
.
value
.
currentChatters
.
indexOf
(
uidS
),
1
)
}
})
this
.
AgoraClient
.
on
(
'user-published'
,
(
user
,
mediaType
)
=>
{
console
.
log
(
'检测到远程用户发布媒体'
,
user
,
mediaType
);
...
...
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