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
0dd5db1c
Commit
0dd5db1c
authored
May 07, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通话数据问题准备修复+4
parent
926019df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/views/remote/videoCall/videoTools.vue
+11
-2
No files found.
src/views/remote/videoCall/videoTools.vue
View file @
0dd5db1c
<
template
>
<div>
<div
:id=
"`RemoteVideo$
{ps.id}`" class="relative mb-4 flex-auto" @mousedown.capture="handleBlinkingStart">
<div
class=
"red-ball"
v-for=
"q in chatChannelState.blinkSpotSet"
:key=
"q.id"
@
animationend=
"q => centerEnded(q)"
></div>
<div
class=
"red-ball absolute z-[999]"
:style=
"
{
top: `${q.yPos * 100}%`,
left: `${q.xPos * 100}%`
}"
v-for="q in chatChannelState.blinkSpotSet" :key="q.id" :data-id="`${q.id}`" @animationend="centerEnded">
</div>
<div
class=
"absolute flex justify-between items-center p-1 t-0 l-0 w-full z-10"
>
<div
v-if=
"userDataForThis.userCallGroup == 1"
class=
"text-xs px-2 rounded-sm leading-5 bg-primary-disable text-primary"
>
...
...
@@ -80,7 +85,8 @@ const ps = defineProps<{
const
blinkStart
=
ref
(
false
)
function
centerEnded
(
q
:
any
)
{
chatChannelState
.
value
.
blinkSpotSet
=
chatChannelState
.
value
.
blinkSpotSet
.
filter
(
a
=>
a
.
id
!==
q
.
id
);
const
id
=
q
.
target
.
getAttribute
(
'data-id'
)
chatChannelState
.
value
.
blinkSpotSet
=
chatChannelState
.
value
.
blinkSpotSet
.
filter
(
a
=>
a
.
id
!==
id
);
}
function
handleBlinkingStart
(
$e
:
PointerEvent
)
{
...
...
@@ -91,6 +97,9 @@ function handleBlinkingStart($e: PointerEvent) {
const
xPos
=
offsetX
/
clientWidth
;
const
yPos
=
offsetY
/
clientHeight
;
const
id
=
userStates
.
value
.
currentUserId
;
console
.
log
(
'd passed'
,
{
id
,
xPos
,
yPos
})
AnyR
?.
agora
.
sendBlinkSpot
({
id
,
xPos
,
yPos
})
...
...
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