This commit is contained in:
wangjiyu 2025-04-17 22:37:34 +08:00
parent e11045ea82
commit 6044cda511
1 changed files with 14 additions and 14 deletions

View File

@ -107,11 +107,11 @@ class MainActivity : ComponentActivity() {
} }
override fun onRTMRoom(p0: Int, p1: Int) { override fun onRTMRoom(p0: Int, p1: Int) {
TODO("Not yet implemented") println("MRTCDEBUG onRTMRoom()")
} }
override fun onProducer(p0: Int, p1: MRTCAdapter.MRTCProducerInfo?) { 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?) { override fun onConsumer(msgId: Int, roomId: String?, peerId: String?, p3: Any?) {
@ -134,47 +134,47 @@ class MainActivity : ComponentActivity() {
} }
override fun onCustomData(p0: MRTCAdapter.MRTCCustomData?) { override fun onCustomData(p0: MRTCAdapter.MRTCCustomData?) {
TODO("Not yet implemented") println("MRTCDEBUG onCustomData()")
} }
override fun onDataProducer(p0: Int, p1: Int) { override fun onDataProducer(p0: Int, p1: Int) {
TODO("Not yet implemented") println("MRTCDEBUG onDataProducer()")
} }
override fun onDataConsumer(p0: Int, p1: Int) { 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?) { 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?) { 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?) { override fun onScreenShot(p0: Bitmap?) {
TODO("Not yet implemented") println("MRTCDEBUG onScreenShot()")
} }
override fun onLocalAudioStats(p0: MRTCAdapter.MRTCLocalAudioStats?) { override fun onLocalAudioStats(p0: MRTCAdapter.MRTCLocalAudioStats?) {
TODO("Not yet implemented") println("MRTCDEBUG onLocalAudioStats()")
} }
override fun onLocalVideoStats(p0: MRTCAdapter.MRTCLocalVideoStats?) { override fun onLocalVideoStats(p0: MRTCAdapter.MRTCLocalVideoStats?) {
TODO("Not yet implemented") println("MRTCDEBUG onLocalVideoStats()")
} }
override fun onRemoteAudioStats(p0: MRTCAdapter.MRTCRemoteAudioStats?) { override fun onRemoteAudioStats(p0: MRTCAdapter.MRTCRemoteAudioStats?) {
TODO("Not yet implemented") println("MRTCDEBUG onRemoteAudioStats()")
} }
override fun onRemoteVideoStats(p0: MRTCAdapter.MRTCRemoteVideoStats?) { 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) { 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=======================") println("MRTCDEBUG initMRTCEngine=======================")
val config = MRTCAdapter.Config().apply { val config = MRTCAdapter.Config().apply {
// 设置必要参数根据SDK文档补充
applicationId = applicationId_ applicationId = applicationId_
mAppSecrectKey = mAppSecrectKey_ mAppSecrectKey = mAppSecrectKey_
domain = domain_ domain = domain_
mPort = mPort_ mPort = mPort_
} }
//MRTCEngine.setSDKLogDirectory("/Users/wangjiyu/StudioProjects/Log")
var ret1 = MRTCEngine.getDefault().init(config, this) var ret1 = MRTCEngine.getDefault().init(config, this)
if (ret1 != 0) { if (ret1 != 0) {
println("MRTCDEBUG RTCContext::instance().init() failed, ret:$ret1") println("MRTCDEBUG RTCContext::instance().init() failed, ret:$ret1")