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
2f983d59
Commit
2f983d59
authored
Mar 08, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:组件升级
parent
c8c51049
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
48 deletions
+48
-48
DemoGlobalConfig.java
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
+2
-2
config.gradle
config.gradle
+2
-2
build.gradle
m-audioim/build.gradle
+1
-1
YDLavManager.kt
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
+43
-43
No files found.
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
View file @
2f983d59
...
...
@@ -20,8 +20,8 @@ import java.util.List;
public
final
class
DemoGlobalConfig
implements
IConfigModule
{
String
APP_DOMAIN
=
"https://api.github.com/"
;
// public static String appEnv = YDLConstants.ENV_AUTO_TEST;
//
public static String appEnv = YDLConstants.ENV_TEST;
public
static
String
appEnv
=
YDLConstants
.
ENV_PROD
;
public
static
String
appEnv
=
YDLConstants
.
ENV_TEST
;
//
public static String appEnv = YDLConstants.ENV_PROD;
@Override
public
void
injectAppLifecycle
(
@NotNull
Context
context
,
@NotNull
List
<
IAppLifecycles
>
lifecycles
)
{
...
...
config.gradle
View file @
2f983d59
...
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.9
3
"
,
"m-confide"
:
"0.0.48.9
5
"
,
"m-consultant"
:
"0.0.59.65"
,
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.10"
,
...
...
@@ -39,7 +39,7 @@ ext {
"ydl-webview"
:
"0.0.38.36"
,
"ydl-media"
:
"0.0.21.6"
,
"ydl-pay"
:
"0.0.18.13"
,
"m-audioim"
:
"0.0.49.29.2
3
"
,
"m-audioim"
:
"0.0.49.29.2
5
"
,
"ydl-flutter-base"
:
"0.0.14.20"
,
//以下 几乎不会动
...
...
m-audioim/build.gradle
View file @
2f983d59
...
...
@@ -75,7 +75,7 @@ dependencies {
kapt
"com.alibaba:arouter-compiler:$arouter_compiler"
api
"com.alibaba:arouter-api:$arouter_api"
api
(
'com.ydl:ydl-av:1.2.
5
@aar'
){
api
(
'com.ydl:ydl-av:1.2.
8
@aar'
){
transitive
=
true
}
...
...
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
View file @
2f983d59
...
...
@@ -246,51 +246,51 @@ class YDLavManager {
toUid
:
String
,
content
:
String
)
{
LogUtil
.
e
(
"[agora]收到云信的通知消息:$content"
)
val
agoraInvitationBean
=
Gson
().
fromJson
(
content
,
AgoraInvitationBean
::
class
.
java
)
//
LogUtil.e("[agora]收到云信的通知消息:$content")
//
val agoraInvitationBean = Gson().fromJson(content, AgoraInvitationBean::class.java)
//1发起呼叫 2接受呼叫 3取消呼叫 4拒绝呼叫邀请 5呼叫超时
when
(
agoraInvitationBean
.
callType
)
{
"1"
->
{
writeAgoraLog
(
"1收到云信消息通知电话-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
FILE_NAME
)
receivedCall
(
agoraInvitationBean
.
data
,
"来自云信"
)
}
"2"
->
{
writeAgoraLog
(
"对方接受了通话邀请,主叫开始加入频道:callType${agoraInvitationBean.callType}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
FILE_NAME
)
val
act
=
ActivityManager
.
getInstance
().
getTopTaskActivity
()
if
(
act
is
AudioHomeActivity
)
{
act
.
runOnUiThread
{
act
.
joinChannel
()
}
}
}
"3"
->
{
writeAgoraLog
(
"呼叫邀请被取消:主叫主动取消-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
FILE_NAME
)
closePage
()
}
"4"
->
{
writeAgoraLog
(
"被叫拒绝了通话邀请-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
FILE_NAME
)
val
act
=
ActivityManager
.
getInstance
().
getTopTaskActivity
()
if
(
act
is
AudioHomeActivity
)
{
act
.
runOnUiThread
{
ToastUtil
.
toastShort
(
"对方已挂断"
)
//通话结束或挂断时,上传日志文件
act
.
uploadLog
()
act
.
leaveChannel
()
}
}
}
"5"
->
{
writeAgoraLog
(
"呼叫邀请被取消:呼叫邀请过期-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
FILE_NAME
)
//关闭页面
closePage
()
}
else
->
{
writeAgoraLog
(
"其它AgoraInvitationBean,${agoraInvitationBean.callType}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}"
,
FILE_NAME
)
}
}
//
when (agoraInvitationBean.callType) {
//
"1" -> {
//
writeAgoraLog("1收到云信消息通知电话-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", FILE_NAME)
//
receivedCall(agoraInvitationBean.data, "来自云信")
//
}
//
"2" -> {
//
writeAgoraLog("对方接受了通话邀请,主叫开始加入频道:callType${agoraInvitationBean.callType}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}",
//
FILE_NAME
//
)
//
val act = ActivityManager.getInstance().getTopTaskActivity()
//
if (act is AudioHomeActivity) {
//
act.runOnUiThread {
//
act.joinChannel()
//
}
//
}
//
}
//
"3" -> {
//
writeAgoraLog("呼叫邀请被取消:主叫主动取消-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", FILE_NAME)
//
closePage()
//
}
//
"4" -> {
//
writeAgoraLog("被叫拒绝了通话邀请-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", FILE_NAME)
//
val act = ActivityManager.getInstance().getTopTaskActivity()
//
if (act is AudioHomeActivity) {
//
act.runOnUiThread {
//
ToastUtil.toastShort("对方已挂断")
//
//通话结束或挂断时,上传日志文件
//
act.uploadLog()
//
act.leaveChannel()
//
}
//
}
//
}
//
"5" -> {
//
writeAgoraLog("呼叫邀请被取消:呼叫邀请过期-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", FILE_NAME)
//
//关闭页面
//
closePage()
//
}
//
else -> {
//
writeAgoraLog("其它AgoraInvitationBean,${agoraInvitationBean.callType}-------Time:${AudioLogUtils.format.format(Calendar.getInstance().time)}", FILE_NAME)
//
}
//
}
}
})
}
...
...
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