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
3fde230a
Commit
3fde230a
authored
Dec 09, 2020
by
霍志良
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/4.1.63' into 4.1.63
parents
e574610c
b8914911
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+2
-0
YDLavManager.kt
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
+1
-1
ConsultantAudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/consultantim/ConsultantAudioHomeActivity.kt
+1
-3
No files found.
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
3fde230a
...
@@ -617,6 +617,8 @@ class AudioHomeActivity :
...
@@ -617,6 +617,8 @@ class AudioHomeActivity :
requestPermission
()
requestPermission
()
}
}
else
->
{
else
->
{
// 拒绝权限操作发送给服务端
uploadException
(
"AudioNotAuth"
,
"zhu"
,
YDLavManager
.
AUDIO_NO_AUTH_ERROR_CODE
,
null
)
writeAgoraLog
(
"拒绝请求音频权限"
)
writeAgoraLog
(
"拒绝请求音频权限"
)
uploadLog
()
uploadLog
()
ToastHelper
.
show
(
getString
(
R
.
string
.
audioim_need_storage_permission_hint
))
ToastHelper
.
show
(
getString
(
R
.
string
.
audioim_need_storage_permission_hint
))
...
...
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
View file @
3fde230a
...
@@ -56,9 +56,9 @@ class YDLavManager {
...
@@ -56,9 +56,9 @@ class YDLavManager {
val
instances
:
YDLavManager
by
lazy
(
mode
=
LazyThreadSafetyMode
.
SYNCHRONIZED
)
{
val
instances
:
YDLavManager
by
lazy
(
mode
=
LazyThreadSafetyMode
.
SYNCHRONIZED
)
{
YDLavManager
()
YDLavManager
()
}
}
const
val
AUDIO_NO_AUTH_ERROR_CODE
=
"97"
//音频权限未通过错误码
}
}
private
constructor
()
fun
init
(
context
:
Context
,
appId
:
String
)
{
fun
init
(
context
:
Context
,
appId
:
String
)
{
YDLRTMClient
.
instances
.
init
(
context
,
appId
,
listener
)
YDLRTMClient
.
instances
.
init
(
context
,
appId
,
listener
)
...
...
m-audioim/src/main/java/com/ydl/consultantim/ConsultantAudioHomeActivity.kt
View file @
3fde230a
...
@@ -152,7 +152,6 @@ class ConsultantAudioHomeActivity :
...
@@ -152,7 +152,6 @@ class ConsultantAudioHomeActivity :
voiceManage
!!
.
getVoiceApi
().
setEnableSpeakerphone
(
false
)
voiceManage
!!
.
getVoiceApi
().
setEnableSpeakerphone
(
false
)
//5s倒计时,5s后还是连接中,则直接关闭页面
connectingStatusWaitingTimeCount
()
connectingStatusWaitingTimeCount
()
tv_tips
.
visibility
=
View
.
INVISIBLE
tv_tips
.
visibility
=
View
.
INVISIBLE
...
@@ -174,7 +173,6 @@ class ConsultantAudioHomeActivity :
...
@@ -174,7 +173,6 @@ class ConsultantAudioHomeActivity :
voiceManage
!!
.
getVoiceApi
().
setEnableSpeakerphone
(
false
)
voiceManage
!!
.
getVoiceApi
().
setEnableSpeakerphone
(
false
)
//5s倒计时,5s后还是连接中,则直接关闭页面
connectingStatusWaitingTimeCount
()
connectingStatusWaitingTimeCount
()
}
}
}
}
...
@@ -876,7 +874,7 @@ class ConsultantAudioHomeActivity :
...
@@ -876,7 +874,7 @@ class ConsultantAudioHomeActivity :
}
}
/**
/**
*连接中状态倒计时:5s后如果还是处于连接中,则直接退出当前页面
*连接中状态倒计时:
1
5s后如果还是处于连接中,则直接退出当前页面
*/
*/
private
fun
connectingStatusWaitingTimeCount
()
{
private
fun
connectingStatusWaitingTimeCount
()
{
if
(
connectingStatusDisposable
==
null
)
{
if
(
connectingStatusDisposable
==
null
)
{
...
...
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