Add loadMP4File respond "durations" (#4262 #4260)

This commit is contained in:
PioLing
2025-04-26 19:58:48 +08:00
committed by GitHub
parent 444aeceacc
commit ab14adb94d

View File

@@ -2207,6 +2207,7 @@ void installWebApi() {
// sample_ms设置为0从配置文件加载file_repeat可以指定如果配置文件也指定循环解复用那么强制开启 [AUTO-TRANSLATED:23e826b4]
// sample_ms is set to 0, loaded from the configuration file; file_repeat can be specified, if the configuration file also specifies loop demultiplexing, then force it to be enabled
reader->startReadMP4(0, true, allArgs["file_repeat"]);
val["data"]["duration_ms"] = (Json::UInt64)reader->getDemuxer()->getDurationMS();
});
#endif