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
558dd55e
Commit
558dd55e
authored
May 09, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主备加入录制
parent
79e6572a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
src/views/remote/videoCall/videoTools.vue
+19
-4
No files found.
src/views/remote/videoCall/videoTools.vue
View file @
558dd55e
...
...
@@ -72,9 +72,9 @@
{{
screenShareMetaData
.
byOther
?
'他人正在共享'
:
screenShareMetaData
.
byCurrentUser
?
'取消屏幕共享'
:
'屏幕共享'
}}
</span>
</div>
<div
class=
"w-[120px] h-[72px] item"
>
<div
class=
"w-[120px] h-[72px] item"
@
click=
"toggleRecording"
>
<global-icon
:size=
"21"
icon=
"record"
></global-icon>
<span
class=
"mt-1 color-text-2"
>
开始录制
</span>
<span
class=
"mt-1 color-text-2"
>
{{
!
chatChannelState
.
recordingData
.
id
?
'开始录制'
:
'结束录制'
}}
</span>
</div>
<div
v-if=
"isUserHost"
class=
"w-[120px] h-[72px] item"
@
click=
"allMute"
>
<global-icon
:size=
"21"
icon=
"mic-off"
></global-icon>
...
...
@@ -92,16 +92,31 @@
import
{
useAnyR
}
from
'AnyR/index'
import
{
NMessageProvider
}
from
'naive-ui'
import
{
allOtherChattersIdSet
,
chatChannelState
,
isCurrentUserMuted
,
isScreenShotByCurrentUser
,
isUserHost
,
screenShareMetaData
,
screenshotRecord
}
from
'AnyR/states/chatChannelStates'
import
{
h
,
onMounted
,
onUpdated
,
ref
}
from
'vue'
import
{
onMounted
,
onUpdated
,
ref
}
from
'vue'
import
{
userStates
}
from
'AnyR/states/wsStates'
import
ImageEditor
from
'AnyR/widgets/ImageEditor/imageEditor.vue'
import
{
Button
,
Message
,
Modal
}
from
'@arco-design/web-vue'
import
{
Message
,
Modal
}
from
'@arco-design/web-vue'
import
{
alova
}
from
'@/api/alova-instance.ts'
import
{
aw
}
from
'../../../../dist/assets/index-vHe4-vvt'
const
ps
=
defineProps
<
{
id
:
any
}
>
()
async
function
toggleRecording
()
{
if
(
!
chatChannelState
.
value
.
recordingData
.
id
)
{
const
resp
=
await
AnyR
?.
agora
.
recordCurrent
();
if
(
resp
)
{
Message
.
success
(
"录制成功开始!"
)
}
else
{
Message
.
error
(
"录制失败!"
)
}
}
else
{
const
resp
=
await
AnyR
?.
agora
.
stopRecordCurrent
()
console
.
log
(
"录制结果提示?"
,
resp
);
}
}
const
isCenterUserMuted
=
computed
(
function
()
{
return
chatChannelState
.
value
.
mutedUserIdSet
.
includes
(
ps
.
id
)
})
...
...
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