diff --git a/README.md b/README.md index e8b8de6..09e9b71 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ Retrieves the video data at the specified time point (default keyframe), and the Parameters: - `time`: Required, in seconds. +- `seekFlag`: The seek flag, defaults to 1 (seek backward). See `AVSeekFlag` for more details. ```typescript seekEncodedAudioChunk(time: number, seekFlag?: AVSeekFlag): Promise @@ -107,6 +108,7 @@ Retrieves the audio data at the specified time point, and the return value can b Parameters: - `time`: Required, in seconds. +- `seekFlag`: The seek flag, defaults to 1 (seek backward). See `AVSeekFlag` for more details. ```typescript readAVPacket(start?: number, end?: number, streamType?: AVMediaType, streamIndex?: number, seekFlag?: AVSeekFlag): ReadableStream diff --git a/README_CN.md b/README_CN.md index da479a1..fbba8c8 100644 --- a/README_CN.md +++ b/README_CN.md @@ -100,6 +100,7 @@ seekEncodedVideoChunk(time: number, seekFlag?: AVSeekFlag): Promise @@ -108,6 +109,7 @@ seekEncodedAudioChunk(time: number, seekFlag?: AVSeekFlag): Promise