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
af14cecb
Commit
af14cecb
authored
Apr 30, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加内容+6
parent
c897b3ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
anyremote/constants/webrtcRelated.js
+4
-0
anyremote/states/webrtcStates.js
+13
-2
src/views/remote/videoCall/videoChat.vue
+2
-1
No files found.
anyremote/constants/webrtcRelated.js
0 → 100644
View file @
af14cecb
export
const
WebRTCNetworkQualityLevelCN
=
[
'未知'
,
'很好'
,
'好'
,
'较好'
,
'一般'
,
'较差'
,
'很差'
]
\ No newline at end of file
anyremote/states/webrtcStates.js
View file @
af14cecb
import
{
ref
}
from
"vue"
import
{
computed
,
ref
}
from
"vue"
import
{
WebRTCNetworkQualityLevelCN
}
from
"AnyR/constants/webrtcRelated.js"
;
export
const
webrtcStates
=
ref
({
export
const
webrtcStates
=
ref
({
cameraDeviceSet
:
[],
cameraDeviceSet
:
[],
networkQuality
:
{},
networkQuality
:
{
up
:
0
,
down
:
0
},
currentUsingCameraName
:
""
,
currentUsingCameraName
:
""
,
isCameraAttached
:
false
,
isCameraAttached
:
false
,
isMicroAttached
:
false
,
isMicroAttached
:
false
,
})
export
const
NetworkQualityLevel
=
computed
(
function
()
{
const
min
=
Math
.
min
(
webrtcStates
.
value
.
networkQuality
.
down
,
webrtcStates
.
value
.
networkQuality
.
down
);
return
{
level
:
min
,
label
:
WebRTCNetworkQualityLevelCN
[
min
]
};
})
})
\ No newline at end of file
src/views/remote/videoCall/videoChat.vue
View file @
af14cecb
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<a-col
:span=
"12"
>
<a-col
:span=
"12"
>
<div
class=
"flex items-center p-1.5 leading-7"
>
<div
class=
"flex items-center p-1.5 leading-7"
>
<global-icon
icon=
"wifi"
:size=
"16"
></global-icon>
<global-icon
icon=
"wifi"
:size=
"16"
></global-icon>
<span
class=
"text-xs ml-1 text-theme-text2"
>
网络状态
良好
</span>
<span
class=
"text-xs ml-1 text-theme-text2"
>
网络状态
{{
NetworkQualityLevel
.
label
}}
</span>
</div>
</div>
</a-col>
</a-col>
<a-col
:span=
"12"
>
<a-col
:span=
"12"
>
...
@@ -59,6 +59,7 @@ import VideoItem from './videoItem.vue'
...
@@ -59,6 +59,7 @@ import VideoItem from './videoItem.vue'
import
ChatDetails
from
'./chatDetails.vue'
import
ChatDetails
from
'./chatDetails.vue'
import
{
webrtcStates
}
from
"AnyR/states/webrtcStates"
;
import
{
webrtcStates
}
from
"AnyR/states/webrtcStates"
;
import
{
chatChannelState
}
from
"AnyR/states/chatChannelStates"
;
import
{
chatChannelState
}
from
"AnyR/states/chatChannelStates"
;
import
{
NetworkQualityLevel
}
from
"AnyR/states/webrtcStates"
;
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.chat-list
{
.chat-list
{
...
...
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