@@ -22,9 +22,10 @@ class KTVGiantChorusApiImpl(
22
22
23
23
companion object {
24
24
private val scheduledThreadPool: ScheduledExecutorService = Executors .newScheduledThreadPool(5 )
25
- const val tag = " KTV_API_LOG"
26
- const val version = " 1_android_4.3.0"
27
- const val lyricSyncVersion = 2
25
+ private const val tag = " KTV_API_LOG_GIANT"
26
+ private const val messageId = " agora:scenarioAPI"
27
+ private const val version = " 1_android_4.3.0"
28
+ private const val lyricSyncVersion = 2
28
29
}
29
30
30
31
private val mainHandler by lazy { Handler (Looper .getMainLooper()) }
@@ -190,7 +191,7 @@ class KTVGiantChorusApiImpl(
190
191
// 数据上报
191
192
private fun reportCallScenarioApi (event : String , params : JSONObject ) {
192
193
mRtcEngine.sendCustomReportMessage(
193
- " scenarioAPI " ,
194
+ messageId ,
194
195
version,
195
196
event,
196
197
params.toString(),
@@ -199,12 +200,12 @@ class KTVGiantChorusApiImpl(
199
200
200
201
// 日志输出
201
202
private fun ktvApiLog (msg : String ) {
202
- Logging .i(KTVApiImpl . tag, " [GiantChorus] $msg " )
203
+ Logging .i(tag, " [GiantChorus] $msg " )
203
204
}
204
205
205
206
// 日志输出
206
207
private fun ktvApiLogError (msg : String ) {
207
- Logging .e(KTVApiImpl . tag, " [GiantChorus] $msg " )
208
+ Logging .e(tag, " [GiantChorus] $msg " )
208
209
}
209
210
210
211
override fun renewInnerDataStreamId () {
@@ -251,6 +252,9 @@ class KTVGiantChorusApiImpl(
251
252
mRtcEngine.setParameters(" {\" rtc.enable_tds_request_on_join\" : true}" )
252
253
// mRtcEngine.setParameters("{\"rtc.remote_path_scheduling_strategy\": 0}")
253
254
// mRtcEngine.setParameters("{\"rtc.path_scheduling_strategy\": 0}")
255
+
256
+ // 数据上报
257
+ mRtcEngine.setParameters(" {\" rtc.direct_send_custom_event\" : true}" )
254
258
}
255
259
256
260
override fun addEventHandler (ktvApiEventHandler : IKTVApiEventHandler ) {
0 commit comments