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
e63942da
Commit
e63942da
authored
May 16, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
眼镜端修复+1
parent
b6475442
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
anyremote/agoraHandle.js
+8
-8
No files found.
anyremote/agoraHandle.js
View file @
e63942da
...
...
@@ -330,21 +330,21 @@ export class AgoraHandle {
chatChannelState
.
value
.
screenCaptureShotURL
=
msgData
.
msgData
.
url
;
break
}
case
'Image'
:
case
'File'
:
{
console
.
log
(
'收到ws眼镜端消息点'
,
msgData
)
// msgData.msgData.tip = {
// fileSize: 0,
// fileType: 'video',
// fileUrl: msgData.msgData.tip,
// fileName: msgData.msgData.tip.slice(msgData.msgData.tip.lastIndexOf('/') + 1)
// }
// addMessageItemInMeeting(msgData);
const
msgType
=
msgData
.
msgData
.
tip
.
endsWith
(
'.mp4'
)
?
'ChatVideo'
:
[
'.jpg'
,
'.png'
,
'.jpeg'
].
some
(
a
=>
msgData
.
msgData
.
tip
.
endsWith
(
a
))
?
'ChatImage'
:
'ChatFile'
const
msgDataWhich
=
{
fileSize
:
0
,
fileType
:
msgType
===
'ChatVideo'
?
'video'
:
msgType
===
'ChatImage'
?
'image'
:
'file'
,
fileUrl
:
msgData
.
msgData
.
tip
,
fileName
:
msgData
.
msgData
.
tip
.
slice
(
msgData
.
msgData
.
tip
.
lastIndexOf
(
'/'
)
+
1
)
}
this
.
AnyRemote
.
sendRaw
(
fromID
,
fromName
,
msgType
fromID
,
fromName
,
msgType
,
msgDataWhich
,
chatChannelState
.
value
.
chatChannelId
,
'-2'
)
break
;
}
...
...
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