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
f647ec63
Commit
f647ec63
authored
May 07, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通话数据问题准备修复+2
parent
1e93dd2f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
4 deletions
+10
-4
anyremote/agoraHandle.js
+6
-0
anyremote/functionals/callMsg.js
+1
-1
src/views/remote/contacts/contactsWait.vue
+0
-1
src/views/remote/videoCall/chatDetails.vue
+2
-1
src/views/remote/videoCall/videoChat.vue
+1
-1
vite.config.ts.timestamp-1715050755954-106a132e74da7.mjs
+0
-0
No files found.
anyremote/agoraHandle.js
View file @
f647ec63
...
@@ -65,6 +65,9 @@ export class AgoraHandle {
...
@@ -65,6 +65,9 @@ export class AgoraHandle {
if
(
!
chatChannelState
.
value
.
voiceChatOnlySet
.
includes
(
fromID
))
{
if
(
!
chatChannelState
.
value
.
voiceChatOnlySet
.
includes
(
fromID
))
{
chatChannelState
.
value
.
voiceChatOnlySet
.
push
(
fromID
)
chatChannelState
.
value
.
voiceChatOnlySet
.
push
(
fromID
)
}
}
if
(
fromID
===
userStates
.
value
.
currentUserId
)
{
this
.
agoraApp
.
currentUserToggleVoiceChatOnly
(
true
)
}
break
break
}
}
case
"NotVoiceChatOnly"
:
{
case
"NotVoiceChatOnly"
:
{
...
@@ -72,6 +75,9 @@ export class AgoraHandle {
...
@@ -72,6 +75,9 @@ export class AgoraHandle {
if
(
chatChannelState
.
value
.
voiceChatOnlySet
.
includes
(
fromID
))
{
if
(
chatChannelState
.
value
.
voiceChatOnlySet
.
includes
(
fromID
))
{
chatChannelState
.
value
.
voiceChatOnlySet
.
splice
(
chatChannelState
.
value
.
voiceChatOnlySet
.
indexOf
(
fromID
),
1
)
chatChannelState
.
value
.
voiceChatOnlySet
.
splice
(
chatChannelState
.
value
.
voiceChatOnlySet
.
indexOf
(
fromID
),
1
)
}
}
if
(
fromID
===
userStates
.
value
.
currentUserId
)
{
this
.
agoraApp
.
currentUserToggleVoiceChatOnly
(
false
);
}
break
break
}
}
case
'Recording'
:
{
case
'Recording'
:
{
...
...
anyremote/functionals/callMsg.js
View file @
f647ec63
...
@@ -24,7 +24,7 @@ function convertTypeLocally(data) {
...
@@ -24,7 +24,7 @@ function convertTypeLocally(data) {
return
'video'
return
'video'
if
(
data
.
msgType
===
'ChatAudio'
)
if
(
data
.
msgType
===
'ChatAudio'
)
return
'audio'
return
'audio'
if
(
data
.
msg
Type
.
endsWith
(
'.pdf'
))
{
if
(
data
.
msg
Data
.
tip
?.
fileName
?
.
endsWith
(
'.pdf'
))
{
return
'pdf'
return
'pdf'
}
}
return
'file'
return
'file'
...
...
src/views/remote/contacts/contactsWait.vue
View file @
f647ec63
...
@@ -32,7 +32,6 @@ import { computed } from 'vue'
...
@@ -32,7 +32,6 @@ import { computed } from 'vue'
const
AnyR
=
useAnyR
()
const
AnyR
=
useAnyR
()
const
chattersName
=
computed
(
function
()
{
const
chattersName
=
computed
(
function
()
{
console
.
log
(
"all other chatters"
,
allOtherChattersIdSet
.
value
,
userStates
.
value
.
onlineContacts
);
return
allOtherChattersIdSet
.
value
.
map
(
function
(
a
:
any
)
{
return
allOtherChattersIdSet
.
value
.
map
(
function
(
a
:
any
)
{
// @ts-ignore
// @ts-ignore
return
userStates
.
value
.
onlineContacts
.
find
((
q
:
any
)
=>
q
.
fromID
===
a
)?.
fromName
||
'未知用户'
return
userStates
.
value
.
onlineContacts
.
find
((
q
:
any
)
=>
q
.
fromID
===
a
)?.
fromName
||
'未知用户'
...
...
src/views/remote/videoCall/chatDetails.vue
View file @
f647ec63
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</div>
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<
slot></slot
>
<
video
width=
"100%"
controls
:height=
"160"
:src=
"data.src"
></video
>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
...
@@ -42,5 +42,6 @@ const ps = withDefaults(defineProps<Props>(), {
...
@@ -42,5 +42,6 @@ const ps = withDefaults(defineProps<Props>(), {
type
:
'txt'
,
type
:
'txt'
,
data
:
()
=>
{}
data
:
()
=>
{}
})
})
console
.
log
(
'pass-in-p'
,
ps
);
</
script
>
</
script
>
<
style
lang=
"less"
scoped
></
style
>
<
style
lang=
"less"
scoped
></
style
>
src/views/remote/videoCall/videoChat.vue
View file @
f647ec63
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</div>
</div>
</
template
>
</
template
>
</a-upload>
</a-upload>
<a-upload
:custom-request=
"(option) => uploadMuFile(option, '
file
')"
:show-file-list=
"false"
accept=
".pdf"
>
<a-upload
:custom-request=
"(option) => uploadMuFile(option, '
pdf
')"
:show-file-list=
"false"
accept=
".pdf"
>
<
template
#
upload-button
>
<
template
#
upload-button
>
<div
class=
"flex-center px-3 py-1 rounded cursor-pointer bg-fill-bg1"
>
<div
class=
"flex-center px-3 py-1 rounded cursor-pointer bg-fill-bg1"
>
<global-icon
:size=
"15"
icon=
"pdf"
></global-icon>
<global-icon
:size=
"15"
icon=
"pdf"
></global-icon>
...
...
vite.config.ts.timestamp-1715050755954-106a132e74da7.mjs
0 → 100644
View file @
f647ec63
This diff is collapsed.
Click to expand it.
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