diff --git a/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json b/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json index 737c1d69c1acb032adf610819f92e7f3204b0116..98f900d10a6afded30281cf9ffbe00ac3a073d10 100644 --- a/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json +++ b/multimedia/av_codec/codec_base/libnative_media_codecbase.ndk.json @@ -431,6 +431,10 @@ "first_introduced": "20", "name": "OH_MD_KEY_VIDEO_ENCODER_ROI_PARAMS" }, + { + "first_introduced": "20", + "name": "OH_MD_KEY_ENABLE_MOOV_FRONT" + }, { "first_introduced": "20", "name": "OH_MD_KEY_SQR_FACTOR" diff --git a/multimedia/av_codec/native_avcodec_base.h b/multimedia/av_codec/native_avcodec_base.h index 222155a1cb0bdedb9576620e6496858e510a02e8..7745ac2101f9066330942d3bd141a608a2ec70e2 100644 --- a/multimedia/av_codec/native_avcodec_base.h +++ b/multimedia/av_codec/native_avcodec_base.h @@ -1114,6 +1114,14 @@ extern const char *OH_MD_KEY_VIDEO_ENCODER_MAX_B_FRAMES; * @since 20 */ extern const char *OH_MD_KEY_VIDEO_ENCODER_ROI_PARAMS; +/** + * + * @brief Key for front moov of the mp4 and m4a media file, value type is int32_t (0 or 1):1 is enabled, 0 otherwise. + * This key may affect the performance of the stop function of the mp4 and m4a muxer. + * @syscap SystemCapability.Multimedia.Media.CodecBase + * @since 20 + */ +extern const char *OH_MD_KEY_ENABLE_MOOV_FRONT; /** * @brief Key for the desired encoding quality, value type is int32_t, this key is only * supported for encoders that are configured in Stable Quality RateControl, the higher