debug
This commit is contained in:
parent
e11045ea82
commit
6044cda511
|
@ -107,11 +107,11 @@ class MainActivity : ComponentActivity() {
|
|||
}
|
||||
|
||||
override fun onRTMRoom(p0: Int, p1: Int) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onRTMRoom()")
|
||||
}
|
||||
|
||||
override fun onProducer(p0: Int, p1: MRTCAdapter.MRTCProducerInfo?) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onProducer()")
|
||||
}
|
||||
|
||||
override fun onConsumer(msgId: Int, roomId: String?, peerId: String?, p3: Any?) {
|
||||
|
@ -134,47 +134,47 @@ class MainActivity : ComponentActivity() {
|
|||
}
|
||||
|
||||
override fun onCustomData(p0: MRTCAdapter.MRTCCustomData?) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onCustomData()")
|
||||
}
|
||||
|
||||
override fun onDataProducer(p0: Int, p1: Int) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onDataProducer()")
|
||||
}
|
||||
|
||||
override fun onDataConsumer(p0: Int, p1: Int) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onDataConsumer()")
|
||||
}
|
||||
|
||||
override fun onMessager(p0: String?, p1: String?, p2: String?, p3: String?) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onMessager()")
|
||||
}
|
||||
|
||||
override fun onRender(p0: String?, p1: String?, p2: Int, p3: Int, p4: MRTCVideoFrame?) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onRender()")
|
||||
}
|
||||
|
||||
override fun onScreenShot(p0: Bitmap?) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onScreenShot()")
|
||||
}
|
||||
|
||||
override fun onLocalAudioStats(p0: MRTCAdapter.MRTCLocalAudioStats?) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onLocalAudioStats()")
|
||||
}
|
||||
|
||||
override fun onLocalVideoStats(p0: MRTCAdapter.MRTCLocalVideoStats?) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onLocalVideoStats()")
|
||||
}
|
||||
|
||||
override fun onRemoteAudioStats(p0: MRTCAdapter.MRTCRemoteAudioStats?) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onRemoteAudioStats()")
|
||||
}
|
||||
|
||||
override fun onRemoteVideoStats(p0: MRTCAdapter.MRTCRemoteVideoStats?) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onRemoteVideoStats()")
|
||||
}
|
||||
|
||||
override fun onSoundLevelUpdate(p0: String?, p1: String?, p2: Int, p3: Int, p4: Int) {
|
||||
TODO("Not yet implemented")
|
||||
println("MRTCDEBUG onSoundLevelUpdate()")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -182,13 +182,13 @@ class MainActivity : ComponentActivity() {
|
|||
println("MRTCDEBUG initMRTCEngine=======================")
|
||||
|
||||
val config = MRTCAdapter.Config().apply {
|
||||
// 设置必要参数(根据SDK文档补充)
|
||||
applicationId = applicationId_
|
||||
mAppSecrectKey = mAppSecrectKey_
|
||||
domain = domain_
|
||||
mPort = mPort_
|
||||
}
|
||||
|
||||
//MRTCEngine.setSDKLogDirectory("/Users/wangjiyu/StudioProjects/Log")
|
||||
var ret1 = MRTCEngine.getDefault().init(config, this)
|
||||
if (ret1 != 0) {
|
||||
println("MRTCDEBUG RTCContext::instance().init() failed, ret:$ret1")
|
||||
|
|
Loading…
Reference in New Issue