Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
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
杨凯
YDL-Component-Medical
Commits
62306494
Commit
62306494
authored
Sep 07, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ding 2min 50%
parent
e3cfc5ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
build.gradle
m-audioim/build.gradle
+1
-1
NetQuality.kt
m-audioim/src/main/java/com/ydl/audioim/NetQuality.kt
+2
-2
No files found.
m-audioim/build.gradle
View file @
62306494
...
...
@@ -65,7 +65,7 @@ dependencies {
kapt
"com.alibaba:arouter-compiler:$arouter_compiler"
api
"com.alibaba:arouter-api:$arouter_api"
api
"com.ydl:ydl-av:1.4.
8
"
api
"com.ydl:ydl-av:1.4.
9
"
implementation
'com.volcengine:apm_insight:1.4.6.cn'
api
project
(
':ydl-platform'
)
...
...
m-audioim/src/main/java/com/ydl/audioim/NetQuality.kt
View file @
62306494
...
...
@@ -97,10 +97,10 @@ class NetQuality(
if
(
reason
==
Constants
.
REMOTE_AUDIO_REASON_NETWORK_CONGESTION
&&
state
==
Constants
.
REMOTE_AUDIO_STATE_FROZEN
)
{
val
qualityValue
=
MMKV
.
defaultMMKV
().
getString
(
"network_quality_config"
,
"0"
)
if
(
TextUtils
.
equals
(
qualityValue
,
"1"
))
{
if
(
System
.
currentTimeMillis
()
-
lastOnRemoteNetworkCongestion
>
3
0
*
1000
)
{
if
(
System
.
currentTimeMillis
()
-
lastOnRemoteNetworkCongestion
>
2
*
6
0
*
1000
)
{
lastOnRemoteNetworkCongestion
=
System
.
currentTimeMillis
()
voiceManage
?.
getVoiceApi
()
?.
playEffect
(
3001
,
getNetLowEffect
(
activity
))
?.
playEffect
(
3001
,
getNetLowEffect
(
activity
)
,
50.0
)
}
if
(
activity
is
AudioHomeActivity
)
{
activity
.
showNetStatus
(
"对方的网络状况不佳"
,
0
)
...
...
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