添加C API on_record_ts 回调ts录像信息 (#3520)

用时合并on_record_mp4相关接口

Co-authored-by: 李道甫 <lidf@ahtelit.com>
This commit is contained in:
Lidaofu
2024-05-10 14:27:23 +08:00
committed by GitHub
parent 2eed284e61
commit 18c5bb3670
5 changed files with 67 additions and 43 deletions

View File

@@ -42,7 +42,13 @@ API_EXPORT void API_CALL mk_events_listen(const mk_events *events){
NoticeCenter::Instance().addListener(&s_tag,Broadcast::kBroadcastRecordMP4,[](BroadcastRecordMP4Args){
if(s_events.on_mk_record_mp4){
s_events.on_mk_record_mp4((mk_mp4_info)&info);
s_events.on_mk_record_mp4((mk_record_info)&info);
}
});
NoticeCenter::Instance().addListener(&s_tag, Broadcast::kBroadcastRecordTs, [](BroadcastRecordTsArgs) {
if (s_events.on_mk_record_ts) {
s_events.on_mk_record_ts((mk_record_info)&info);
}
});