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
3406f215
Commit
3406f215
authored
Sep 08, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户去掉ding
parent
62306494
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
NetQuality.kt
m-audioim/src/main/java/com/ydl/audioim/NetQuality.kt
+2
-6
No files found.
m-audioim/src/main/java/com/ydl/audioim/NetQuality.kt
View file @
3406f215
...
...
@@ -2,18 +2,14 @@ package com.ydl.audioim
import
android.app.Activity
import
android.content.Context
import
android.text.TextUtils
import
android.view.View
import
android.widget.ImageView
import
android.widget.TextView
import
com.tencent.mmkv.MMKV
import
com.ydl.audioim.http.AudioApiRequestUtil
import
com.ydl.audioim.http.RtcEvent
import
com.ydl.consultantim.ConsultantAudioHomeActivity
import
com.ydl.ydl_av.voice.listener.RtcNetInterface
import
com.ydl.ydl_av.voice.manager.YDLVoiceManager
import
com.ydl.ydlcommon.utils.log.XLog
import
io.agora.rtc.Constants
import
io.reactivex.Single
import
io.reactivex.schedulers.Schedulers
import
java.io.File
...
...
@@ -94,7 +90,7 @@ class NetQuality(
override
fun
onRemoteAudioStateChanged
(
uid
:
Int
,
state
:
Int
,
reason
:
Int
,
elapsed
:
Int
)
{
XLog
.
i
(
"NetQuality"
,
"uid:$uid,state:$state,reason:$reason,elapsed:$elapsed"
)
if
(
reason
==
Constants
.
REMOTE_AUDIO_REASON_NETWORK_CONGESTION
&&
state
==
Constants
.
REMOTE_AUDIO_STATE_FROZEN
)
{
/*
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 > 2 * 60 * 1000) {
...
...
@@ -108,7 +104,7 @@ class NetQuality(
activity.showNetStatus("对方的网络状况不佳", 0)
}
}
}
}
*/
}
override
fun
onRemoteAudioStats
(
quality
:
Int
,
delay
:
Int
,
bitrate
:
Int
,
audioLossRate
:
Int
)
{
...
...
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