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
c8c51049
Commit
c8c51049
authored
Mar 08, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:多端登录、声网互踢
parent
62ff0f3a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
config.gradle
config.gradle
+4
-4
YDLavManager.kt
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
+9
-0
No files found.
config.gradle
View file @
c8c51049
...
@@ -5,7 +5,7 @@ ext {
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.48.9
2
"
,
"m-confide"
:
"0.0.48.9
3
"
,
"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.2
2
"
,
"m-audioim"
:
"0.0.49.29.2
3
"
,
"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.48.9
2
"
,
"m-confide"
:
"0.0.48.9
3
"
,
"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.2
2
"
,
"m-audioim"
:
"0.0.49.29.2
3
"
,
"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 @
c8c51049
...
@@ -531,6 +531,14 @@ class YDLavManager {
...
@@ -531,6 +531,14 @@ class YDLavManager {
sdkStatus
=
state
sdkStatus
=
state
writeAgoraLog
(
"声网rtm登录状态:${state}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
true
)
writeAgoraLog
(
"声网rtm登录状态:${state}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
"confide.log"
,
true
)
LogUtil
.
i
(
"[agora]onConnectionStateChanged:state:${state} -->reason:$reason"
)
LogUtil
.
i
(
"[agora]onConnectionStateChanged:state:${state} -->reason:$reason"
)
/*
* 当reason=8的时候,是远端用户以相同UID登录RTM
* 如果正在通话中,则不进行退出操作
* */
if
(
reason
==
8
&&!
activityIsExists
(
ConsultantAudioHomeActivity
::
class
.
java
)&&!
activityIsExists
(
AudioHomeActivity
::
class
.
java
)){
logout
()
}
}
}
}
}
}
}
\ No newline at end of file
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