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
7958e9a1
Commit
7958e9a1
authored
May 09, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
尝试添加截图标注+11
parent
fb0250ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
anyremote/agora/index.js
+4
-0
src/views/remote/videoCall/videoTools.vue
+1
-0
No files found.
anyremote/agora/index.js
View file @
7958e9a1
...
...
@@ -226,6 +226,9 @@ export class Agora {
const
uidS
=
user
.
uid
.
toString
()
const
targetUser
=
userStates
.
value
.
onlineContacts
.
find
(
a
=>
a
.
fromID
.
toString
()
===
uidS
);
console
.
log
(
'在线用户加入了频道'
,
targetUser
)
if
(
!
chatChannelState
.
value
.
currentChatters
.
includes
(
targetUser
.
fromID
))
{
chatChannelState
.
value
.
currentChatters
.
push
(
targetUser
.
fromID
)
}
if
(
typeof
this
.
app
.
infoCB
===
'function'
)
{
this
.
app
.
infoCB
(
`
${
targetUser
.
fromName
}
加入了会议`
)
}
...
...
@@ -238,6 +241,7 @@ export class Agora {
if
(
typeof
this
.
app
.
infoCB
===
'function'
)
{
this
.
app
.
infoCB
(
`
${
targetUser
.
fromName
}
离开了会议`
)
}
chatChannelState
.
value
.
currentChatters
=
chatChannelState
.
value
.
currentChatters
.
filter
(
a
=>
a
!==
targetUser
.
fromID
);
})
this
.
AgoraClient
.
on
(
'user-published'
,
(
user
,
mediaType
)
=>
{
console
.
log
(
'检测到远程用户发布媒体'
,
user
,
mediaType
);
...
...
src/views/remote/videoCall/videoTools.vue
View file @
7958e9a1
...
...
@@ -163,6 +163,7 @@ async function beforeEndMarkHandle() {
content
:
"你是截图发起者,退出后将会要求其他用户一同退出,确认?"
,
okText
:
"确认"
,
cancelText
:
"取消"
,
hideCancel
:
false
,
onOk
()
{
resolve
(
true
)
},
...
...
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