Open rahul-kumawat-vts opened 1 month ago
The bug has been fixed. You can upgrade the version to 4.4.1 and then try again.
Thanks, it's working with version 4.4.1.
One more thing why onUserJoined callback executed again once any user left the channel in version 4.4.1. It was properly working fine with version 4.3.1
override fun onUserJoined(uid: Int, elapsed: Int) {
super.onUserJoined(uid, elapsed)
Log.d(TAG, "onUser-Joined: $uid")
try {
runOnUiThread {
viewModel.visitDetailsLiveData.value?.data?.data?.let { visitDetailsData ->
val hostUserId = visitDetailsData.host_user_id
val residenceUserId = visitDetailsData.residence_user_id
val isHostUser = uid.toString() == hostUserId
val isResidenceUser = uid.toString() == residenceUserId
if (isMultiVisit) {
handleMultiVisitUserJoined(uid, visitDetailsData, isHostUser)
} else {
handleSingleVisitUserJoined(uid, visitDetailsData, isHostUser, isResidenceUser)
}
}
}
} catch (e: Exception) {
e.printStackTrace()
}
}
override fun onUserOffline(uid: Int, reason: Int) {
Log.d(TAG, "onUser-Offline: $uid")
CoroutineScope(Dispatchers.Main).launch {
try {
if (isMultiVisit) {
handleMultiVisitUserOffline(uid)
} else if (mapHost["host1"] == uid) {
handleSingleVisitHostOffline(uid)
}
} catch (e: Exception) {
e.printStackTrace()
}
}
}
Can anyone please help update on above issue with latest Agora SDK version 4.4.1
https://github.com/AgoraIO/API-Examples/issues/401#issuecomment-2364282507
@weileifrank
I have tested it. there is no problem for onUserJoined callback with agora version 4.4.1, can you share your demo with me?
By the way, you can also run our demo first to see if the callback is normal
@rahul-kumawat-bigstep
@weileifrank Just checked in your demo as well when any user left the channel (Suppose UID - 452061665) onUserOffline callback executed. In next second for UID-452061665 onUserJoined callback executed.
Please check the logs of your demo App.
@weileifrank Can you please check on priority as our client is facing issue https://github.com/AgoraIO/API-Examples/issues/401#issuecomment-2383099563.
i have tested our JoinChannelVideoByToken
demo case with agora version 4.4.1 and the logs is as below:
anyway,can you share your demo with me for checking?
@rahul6924
Hi @weileifrank I have checked with your webdemo and app but still having same issue. Please check the video
https://drive.google.com/file/d/10tRGVG0b7JL5-TgGIr2S9mn-hxC9akhM/view?usp=sharing
@rahul6924
it's a pity,we did not reproduce it.
you can test the case with two android device and then export the sdk log for us ,the sdk path is sdcard/Android/data/io.agora.api.example/files/
@weileifrank I will check in two different phone but over use case is mobile and web video streaming. Can you please check the similar case at your end https://github.com/AgoraIO/API-Examples/issues/401#issuecomment-2391280798
@weileifrank I have tried with two mobile but the behaviour is still same also i didn't get any logs in storage. There is no application folder with package name inside storage directory
Do i need to add the below code in sample application.
val logConfig = LogConfig() logConfig.level = Constants.LogLevel.getValue(Constants.LogLevel.LOG_LEVEL_INFO) val ts: String = SimpleDateFormat("yyyyMMdd").format(Date()) logConfig.filePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORYDOWNLOADS).absolutePath + "/agora/agora"+ts+".log"
val config = RtcEngineConfig() config.mLogConfig = logConfig
In our application we have targeted the SDK 34 and we are using screen sharing SDK.
We have already using a foreground service in app manifest as per the doc https://docs.agora.io/en/video-calling/core-functionality/screen-sharing?platform=web
Do we need to do anything at our end to fix this crash.