Commit 6b58a93b by YKai

feat:8改为声网对应数字编码

parent cf7dd130
...@@ -34,6 +34,7 @@ import com.yidianling.user.api.event.UserLogoutEvent ...@@ -34,6 +34,7 @@ import com.yidianling.user.api.event.UserLogoutEvent
import com.yidianling.user.api.service.IUserService import com.yidianling.user.api.service.IUserService
import de.greenrobot.event.EventBus import de.greenrobot.event.EventBus
import io.agora.rtm.RtmStatusCode import io.agora.rtm.RtmStatusCode
import io.agora.rtm.RtmStatusCode.ConnectionChangeReason.CONNECTION_CHANGE_REASON_REMOTE_LOGIN
import io.reactivex.Observable import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers import io.reactivex.schedulers.Schedulers
...@@ -536,7 +537,7 @@ class YDLavManager { ...@@ -536,7 +537,7 @@ class YDLavManager {
* 当reason=8的时候,是远端用户以相同UID登录RTM * 当reason=8的时候,是远端用户以相同UID登录RTM
* 如果正在通话中,则不进行退出操作 * 如果正在通话中,则不进行退出操作
* */ * */
if(reason==8&&!activityIsExists(ConsultantAudioHomeActivity::class.java)&&!activityIsExists(AudioHomeActivity::class.java)){ if(reason==CONNECTION_CHANGE_REASON_REMOTE_LOGIN&&!activityIsExists(ConsultantAudioHomeActivity::class.java)&&!activityIsExists(AudioHomeActivity::class.java)){
logout() logout()
} }
} }
......
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