From ec735fa5f2541f700138af9f03600b19e75c0ea9 Mon Sep 17 00:00:00 2001 From: yangjunhui10 Date: Sat, 24 Jun 2023 17:56:58 +0800 Subject: [PATCH] demuxer seek demo add remark Signed-off-by: yangjunhui10 --- zh-cn/application-dev/media/audio-video-decapsulation.md | 1 + 1 file changed, 1 insertion(+) diff --git a/zh-cn/application-dev/media/audio-video-decapsulation.md b/zh-cn/application-dev/media/audio-video-decapsulation.md index 5123599f83..1aa9ae38f0 100644 --- a/zh-cn/application-dev/media/audio-video-decapsulation.md +++ b/zh-cn/application-dev/media/audio-video-decapsulation.md @@ -135,6 +135,7 @@ ``` c++ // 调整轨道到指定时间点,后续从该时间点进行解封装 + // 注意:mpegts格式文件使用OH_AVDemuxer_SeekToTime功能时,跳转到的位置可能为非关键帧。可在跳转后调用OH_AVDemuxer_ReadSample,判断是否为关键帧。若非关键帧影响应用侧显示等功能,可在跳转后,循环读取直到获取到关键帧后,再进行解码。 OH_AVDemuxer_SeekToTime(demuxer, 0, OH_AVSeekMode::SEEK_MODE_CLOSEST_SYNC); ``` -- GitLab