|
@@ -7,6 +7,7 @@ import com.swago.baseswago.R
|
|
import com.swago.baseswago.baseroom.RoleType
|
|
import com.swago.baseswago.baseroom.RoleType
|
|
import com.swago.baseswago.constant.UrlConstant
|
|
import com.swago.baseswago.constant.UrlConstant
|
|
import com.swago.baseswago.util.AppContext
|
|
import com.swago.baseswago.util.AppContext
|
|
|
|
+import com.swago.baseswago.util.LogProducer
|
|
import com.swago.baseswago.util.LogUtil
|
|
import com.swago.baseswago.util.LogUtil
|
|
import io.agora.rtc.Constants.*
|
|
import io.agora.rtc.Constants.*
|
|
import io.agora.rtc.IRtcEngineEventHandler
|
|
import io.agora.rtc.IRtcEngineEventHandler
|
|
@@ -233,6 +234,11 @@ object AgoraManager {
|
|
|
|
|
|
fun joinChannel(channelName: String, userId: Int, token: String = "", option: String = "") {
|
|
fun joinChannel(channelName: String, userId: Int, token: String = "", option: String = "") {
|
|
val result = mRtcEngine?.joinChannel(token, channelName, option, userId)
|
|
val result = mRtcEngine?.joinChannel(token, channelName, option, userId)
|
|
|
|
+ result?.let {
|
|
|
|
+ if (it < 0){
|
|
|
|
+ LogProducer.addLog("result:${result}", "joinChannel")
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|