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
a7057841
Commit
a7057841
authored
May 13, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
录制完毕初步
parent
3d4146de
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
src/main.ts
+2
-2
src/views/remote/videoCall/videoTools.vue
+9
-2
No files found.
src/main.ts
View file @
a7057841
...
...
@@ -58,8 +58,8 @@ app.use(AnyRemotePlugin, {
recordConfig
:
{
callBackUrl
:
'https://hna-platform.anyremote.cn/call/saveScreenRecordNoToken'
,
fileDomain
:
'https://video.anyremote.cn:444'
,
recordStartUrl
:
'http
://ifar.test.com:3001/recordings
/start'
,
recordStopUrl
:
'http
://ifar.test.com:3001/recordings
/stop'
recordStartUrl
:
'http
s://ifar.test.com:440/record
/start'
,
recordStopUrl
:
'http
s://ifar.test.com:440/record
/stop'
},
notice
:
{
info
:
Message
.
info
,
...
...
src/views/remote/videoCall/videoTools.vue
View file @
a7057841
...
...
@@ -73,7 +73,7 @@
</div>
<div
class=
"w-[120px] h-[72px] item"
@
click=
"toggleRecording"
>
<global-icon
:size=
"21"
:icon=
"!chatChannelState.recordingData.id ? 'record' : 'record-stop'"
></global-icon>
<span
class=
"mt-1 color-text-2"
>
{{ !chatChannelState.recordingData.id ? '开始录制' :
'结束
录制' }}
</span>
<span
class=
"mt-1 color-text-2"
>
{{ !chatChannelState.recordingData.id ? '开始录制' :
chatChannelState.recordingData.id === userStates.currentUserId ? '结束录制' : '他人正在
录制' }}
</span>
</div>
<div
v-if=
"isUserHost"
class=
"w-[120px] h-[72px] item"
@
click=
"allMute"
>
<global-icon
:size=
"21"
icon=
"mic-off"
></global-icon>
...
...
@@ -108,11 +108,18 @@ async function toggleRecording() {
if
(
resp
)
{
Message
.
success
(
'录制成功开始!'
)
}
else
{
Message
.
error
(
'录制失败!'
)
Message
.
error
(
'录制
开始
失败!'
)
}
}
else
{
const
resp
=
await
AnyR
?.
agora
.
stopRecordCurrent
()
console
.
log
(
'录制结果提示?'
,
resp
)
if
(
resp
)
{
AnyR
?.
agora
.
sendVideo
({
fileUrl
:
resp
.
url
,
fileName
:
resp
.
fileName
,
fileSize
:
resp
.
fileSize
})
}
}
}
...
...
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