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
841206a3
Commit
841206a3
authored
Mar 18, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:m-audioim,m-confide组件升级
parent
b136eb3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
config.gradle
config.gradle
+4
-4
YDLavManager.kt
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
+3
-3
ConfideWebServiceImpl.kt
m-confide/src/main/java/com/ydl/confide/home/modular/service/ConfideWebServiceImpl.kt
+1
-1
No files found.
config.gradle
View file @
841206a3
...
@@ -5,7 +5,7 @@ ext {
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.49.0
1
"
,
"m-confide"
:
"0.0.49.0
2
"
,
"m-consultant"
:
"0.0.59.65"
,
"m-consultant"
:
"0.0.59.65"
,
"m-fm"
:
"0.0.30.01"
,
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.10"
,
"m-user"
:
"0.0.61.10"
,
...
@@ -39,7 +39,7 @@ ext {
...
@@ -39,7 +39,7 @@ ext {
"ydl-webview"
:
"0.0.38.36"
,
"ydl-webview"
:
"0.0.38.36"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-pay"
:
"0.0.18.13"
,
"ydl-pay"
:
"0.0.18.13"
,
"m-audioim"
:
"0.0.49.29.
29
"
,
"m-audioim"
:
"0.0.49.29.
30
"
,
"ydl-flutter-base"
:
"0.0.14.20"
,
"ydl-flutter-base"
:
"0.0.14.20"
,
//以下 几乎不会动
//以下 几乎不会动
...
@@ -88,7 +88,7 @@ ext {
...
@@ -88,7 +88,7 @@ ext {
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.49.0
1
"
,
"m-confide"
:
"0.0.49.0
2
"
,
"m-consultant"
:
"0.0.59.65"
,
"m-consultant"
:
"0.0.59.65"
,
"m-fm"
:
"0.0.30.01"
,
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.10"
,
"m-user"
:
"0.0.61.10"
,
...
@@ -120,7 +120,7 @@ ext {
...
@@ -120,7 +120,7 @@ ext {
"ydl-webview"
:
"0.0.38.36"
,
"ydl-webview"
:
"0.0.38.36"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-pay"
:
"0.0.18.11"
,
"ydl-pay"
:
"0.0.18.11"
,
"m-audioim"
:
"0.0.49.29.
29
"
,
"m-audioim"
:
"0.0.49.29.
30
"
,
"ydl-flutter-base"
:
"0.0.14.20"
,
"ydl-flutter-base"
:
"0.0.14.20"
,
//以下 几乎不会动
//以下 几乎不会动
...
...
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
View file @
841206a3
...
@@ -56,12 +56,12 @@ class YDLavManager {
...
@@ -56,12 +56,12 @@ class YDLavManager {
//当前sdk的登录状态
//当前sdk的登录状态
var
sdkStatus
=
-
1
var
sdkStatus
=
-
1
var
isOnlineRtm
=
true
// 账号在多端登录情况下判断RTM否在线,仅仅用在RTM互踢情况下判断是否在线,其它场景慎用
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"
//音频权限未通过错误码
const
val
AUDIO_NO_AUTH_ERROR_CODE
=
"97"
//音频权限未通过错误码
const
val
IS_ONLINE_RTM
=
"is_online_rtm"
// rtm是否在线
}
}
...
@@ -381,6 +381,7 @@ class YDLavManager {
...
@@ -381,6 +381,7 @@ class YDLavManager {
LogUtil
.
e
(
"[agora]login-uid:$userId"
)
LogUtil
.
e
(
"[agora]login-uid:$userId"
)
return
return
}
}
isOnlineRtm
=
true
//登录实时消息
//登录实时消息
//获取token
//获取token
AudioApiRequestUtil
.
getAgoraToken
().
subscribeOn
(
Schedulers
.
io
())
AudioApiRequestUtil
.
getAgoraToken
().
subscribeOn
(
Schedulers
.
io
())
...
@@ -393,7 +394,6 @@ class YDLavManager {
...
@@ -393,7 +394,6 @@ class YDLavManager {
override
fun
onSuccess
()
{
override
fun
onSuccess
()
{
//登陆成功,发起呼叫
//登陆成功,发起呼叫
LogUtil
.
e
(
"[agora]实时消息登录成功"
)
LogUtil
.
e
(
"[agora]实时消息登录成功"
)
RxSPTool
.
putBoolean
(
BaseApp
.
getApp
(),
IS_ONLINE_RTM
,
true
)
writeAgoraLog
(
"声网rtm登录成功,uid:$userId-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
true
)
writeAgoraLog
(
"声网rtm登录成功,uid:$userId-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
true
)
event
(
true
,
""
)
event
(
true
,
""
)
}
}
...
@@ -478,7 +478,6 @@ class YDLavManager {
...
@@ -478,7 +478,6 @@ class YDLavManager {
override
fun
onSuccess
()
{
override
fun
onSuccess
()
{
//退出登陆成功
//退出登陆成功
LogUtil
.
d
(
"[agora]实时消息退出成功"
)
LogUtil
.
d
(
"[agora]实时消息退出成功"
)
RxSPTool
.
putBoolean
(
BaseApp
.
getApp
(),
IS_ONLINE_RTM
,
false
)
if
(
isReLogin
){
if
(
isReLogin
){
login
(
ModularServiceManager
.
provide
(
IUserService
::
class
.
java
).
getUserInfo
()
?.
uid
)
login
(
ModularServiceManager
.
provide
(
IUserService
::
class
.
java
).
getUserInfo
()
?.
uid
)
}
}
...
@@ -560,6 +559,7 @@ class YDLavManager {
...
@@ -560,6 +559,7 @@ class YDLavManager {
* */
* */
if
(
reason
==
CONNECTION_CHANGE_REASON_REMOTE_LOGIN
){
if
(
reason
==
CONNECTION_CHANGE_REASON_REMOTE_LOGIN
){
if
(!
activityIsExists
(
ConsultantAudioHomeActivity
::
class
.
java
)&&!
activityIsExists
(
AudioHomeActivity
::
class
.
java
)){
if
(!
activityIsExists
(
ConsultantAudioHomeActivity
::
class
.
java
)&&!
activityIsExists
(
AudioHomeActivity
::
class
.
java
)){
isOnlineRtm
=
false
logout
()
logout
()
}
else
{
}
else
{
logout
(
true
)
logout
(
true
)
...
...
m-confide/src/main/java/com/ydl/confide/home/modular/service/ConfideWebServiceImpl.kt
View file @
841206a3
...
@@ -111,7 +111,7 @@ class ConfideWebServiceImpl {
...
@@ -111,7 +111,7 @@ class ConfideWebServiceImpl {
if
(
it
.
data
?.
dialDetail
?.
callConnectType
?:
-
1
==
3
)
{
if
(
it
.
data
?.
dialDetail
?.
callConnectType
?:
-
1
==
3
)
{
//声网
//声网
it
.
data
?.
dialDetail
?.
agoraExpertInfo
?:
return
@subscribe
it
.
data
?.
dialDetail
?.
agoraExpertInfo
?:
return
@subscribe
if
(!
RxSPTool
.
getBoolean
(
BaseApp
.
getApp
(),
YDLavManager
.
IS_ONLINE_RTM
)){
if
(!
YDLavManager
.
isOnlineRtm
){
// 判断如果账号在其它设备登录rtm是否在线
ToastUtil
.
toastShort
(
"网络通话错误代码001"
)
ToastUtil
.
toastShort
(
"网络通话错误代码001"
)
return
@subscribe
return
@subscribe
}
}
...
...
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