Commit 92240540 by 严久程

声网发版

parent 86e42944
...@@ -42,7 +42,7 @@ ext { ...@@ -42,7 +42,7 @@ ext {
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.48.20", "m-confide" : "0.0.48.22",
"m-consultant" : "0.0.59.7", "m-consultant" : "0.0.59.7",
"m-fm" : "0.0.29.3", "m-fm" : "0.0.29.3",
"m-user" : "0.0.60.4", "m-user" : "0.0.60.4",
...@@ -75,7 +75,7 @@ ext { ...@@ -75,7 +75,7 @@ ext {
"ydl-webview" : "0.0.38.29", "ydl-webview" : "0.0.38.29",
"ydl-media" : "0.0.20", "ydl-media" : "0.0.20",
"ydl-pay" : "0.0.17", "ydl-pay" : "0.0.17",
"m-audioim" : "0.0.48.8", "m-audioim" : "0.0.49.0",
"ydl-flutter-base": "0.0.14.12", "ydl-flutter-base": "0.0.14.12",
//以下 几乎不会动 //以下 几乎不会动
...@@ -121,7 +121,7 @@ ext { ...@@ -121,7 +121,7 @@ ext {
"ydl-webview" : "0.0.38.29", "ydl-webview" : "0.0.38.29",
"ydl-media" : "0.0.20", "ydl-media" : "0.0.20",
"ydl-pay" : "0.0.17", "ydl-pay" : "0.0.17",
"m-audioim" : "0.0.48.8", "m-audioim" : "0.0.49.0",
"ydl-flutter-base": "0.0.10.9", "ydl-flutter-base": "0.0.10.9",
//以下 几乎不会动 //以下 几乎不会动
......
...@@ -571,14 +571,17 @@ class AudioHomeActivity : ...@@ -571,14 +571,17 @@ class AudioHomeActivity :
writeAgoraLog("未接通挂断:60s等待倒计时结束挂断") writeAgoraLog("未接通挂断:60s等待倒计时结束挂断")
//提示切换传统线路 //提示切换传统线路
//发送消息通知专家用户已挂断 //发送消息通知专家用户已挂断
YDLRTMClient.instances.cancelCall(listenerUid, channelId,object :CancelCallStatusListener{ YDLRTMClient.instances.cancelCall(
override fun onFailure(errorMsg: String?, errorCode: Int) { listenerUid,
YDLRTMClient.instances.cancelCall(listenerUid, channelId,null) channelId,
} object : CancelCallStatusListener {
override fun onFailure(errorMsg: String?, errorCode: Int) {
override fun onSuccess() { YDLRTMClient.instances.cancelCall(listenerUid, channelId, null)
} }
})
override fun onSuccess() {
}
})
//通话结束或挂断时,上传日志文件 //通话结束或挂断时,上传日志文件
uploadLog() uploadLog()
...@@ -628,19 +631,24 @@ class AudioHomeActivity : ...@@ -628,19 +631,24 @@ class AudioHomeActivity :
*/ */
private fun userCloseCalling() { private fun userCloseCalling() {
writeAgoraLog("未接听时:主叫主动挂断,取消呼叫") writeAgoraLog("未接听时:主叫主动挂断,取消呼叫")
LogUtil.e("未接听挂断")
//发送消息通知专家用户已挂断 //发送消息通知专家用户已挂断
YDLRTMClient.instances.cancelCall(listenerUid, channelId,object :CancelCallStatusListener{ YDLRTMClient.instances.cancelCall(
override fun onFailure(errorMsg: String?, errorCode: Int) { listenerUid,
writeAgoraLog("未接听时:主叫主动挂断失败,msg=$errorMsg($errorCode),再次挂断") channelId,
YDLRTMClient.instances.cancelCall(listenerUid, channelId,null) object : CancelCallStatusListener {
} override fun onFailure(errorMsg: String?, errorCode: Int) {
writeAgoraLog("未接听时:主叫主动挂断失败,msg=$errorMsg($errorCode),再次挂断")
YDLRTMClient.instances.cancelCall(listenerUid, channelId, null)
}
override fun onSuccess() { override fun onSuccess() {
} }
}) })
//通话结束或挂断时,上传日志文件 //通话结束或挂断时,上传日志文件
uploadLog() uploadLog()
handler!!.postDelayed({ handler!!.postDelayed({
LogUtil.e("离开频道")
leaveChannel() leaveChannel()
}, 100) }, 100)
} }
...@@ -728,14 +736,17 @@ class AudioHomeActivity : ...@@ -728,14 +736,17 @@ class AudioHomeActivity :
//未连接成功,切换axb时:需发送消息通知专家端用户已挂断 //未连接成功,切换axb时:需发送消息通知专家端用户已挂断
//发送消息通知专家用户已挂断 //发送消息通知专家用户已挂断
//发送消息通知专家用户已挂断 //发送消息通知专家用户已挂断
YDLRTMClient.instances.cancelCall(listenerUid, channelId,object :CancelCallStatusListener{ YDLRTMClient.instances.cancelCall(
override fun onFailure(errorMsg: String?, errorCode: Int) { listenerUid,
YDLRTMClient.instances.cancelCall(listenerUid, channelId,null) channelId,
} object : CancelCallStatusListener {
override fun onFailure(errorMsg: String?, errorCode: Int) {
YDLRTMClient.instances.cancelCall(listenerUid, channelId, null)
}
override fun onSuccess() { override fun onSuccess() {
} }
}) })
leaveChannel() leaveChannel()
} }
} }
...@@ -840,6 +851,7 @@ class AudioHomeActivity : ...@@ -840,6 +851,7 @@ class AudioHomeActivity :
mPlayer!!.setDataSource(R.raw.audioim_hand_down_music) mPlayer!!.setDataSource(R.raw.audioim_hand_down_music)
mPlayer!!.switchPlayType(iv_hands_free.isSelected) mPlayer!!.switchPlayType(iv_hands_free.isSelected)
mPlayer!!.setCompletionListener(MediaPlayer.OnCompletionListener { mPlayer!!.setCompletionListener(MediaPlayer.OnCompletionListener {
LogUtil.e("播放结束")
//通话剩余时间不足60s时,默认 //通话剩余时间不足60s时,默认
if (localRemainTime!! < 60 && !TextUtils.isEmpty(commentUrl)) { if (localRemainTime!! < 60 && !TextUtils.isEmpty(commentUrl)) {
val h5Params = H5Params(commentUrl!!, "评价") val h5Params = H5Params(commentUrl!!, "评价")
...@@ -1001,6 +1013,7 @@ class AudioHomeActivity : ...@@ -1001,6 +1013,7 @@ class AudioHomeActivity :
//刷新h5页面 //刷新h5页面
EventBus.getDefault().post(RefreshWebEvent(false)) EventBus.getDefault().post(RefreshWebEvent(false))
stopPlaying() stopPlaying()
LogUtil.e("播放结束音频")
//播放结束音频 //播放结束音频
playFinishMusic() playFinishMusic()
} }
...@@ -1157,6 +1170,7 @@ class AudioHomeActivity : ...@@ -1157,6 +1170,7 @@ class AudioHomeActivity :
if (mPlayer != null) { if (mPlayer != null) {
mPlayer!!.clear() mPlayer!!.clear()
mPlayer = null
} }
} }
......
...@@ -140,9 +140,9 @@ class YDLavManager { ...@@ -140,9 +140,9 @@ class YDLavManager {
if (act is AudioHomeActivity) { if (act is AudioHomeActivity) {
act.runOnUiThread { act.runOnUiThread {
act.writeAgoraLog("呼叫失败:${errorCode}") act.writeAgoraLog("呼叫失败:${errorCode}")
//通话结束或挂断时,上传日志文件 // //通话结束或挂断时,上传日志文件
act.uploadLog() // act.uploadLog()
act.leaveChannel() // act.leaveChannel()
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment