Skip to content

Commit

Permalink
docs: seekFlag params
Browse files Browse the repository at this point in the history
  • Loading branch information
ForeverSc committed Sep 24, 2024
1 parent ac5dcae commit 1190dec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<EncodedAudioChunk>
Expand All @@ -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<WebAVPacket>
Expand Down
2 changes: 2 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ seekEncodedVideoChunk(time: number, seekFlag?: AVSeekFlag): Promise<EncodedVideo

参数:
- `time`: 必填,单位为s
- `seekFlag`: 寻址标志, 默认值为1 (向后寻址). 详情请查看 `AVSeekFlag`

```typescript
seekEncodedAudioChunk(time: number, seekFlag?: AVSeekFlag): Promise<EncodedAudioChunk>
Expand All @@ -108,6 +109,7 @@ seekEncodedAudioChunk(time: number, seekFlag?: AVSeekFlag): Promise<EncodedAudio

参数:
- `time`: 必填,单位为s
- `seekFlag`: 寻址标志, 默认值为1 (向后寻址). 详情请查看 `AVSeekFlag`

```typescript
readAVPacket(start?: number, end?: number, streamType?: AVMediaType, streamIndex?: number, seekFlag?: AVSeekFlag): ReadableStream<WebAVPacket>
Expand Down

0 comments on commit 1190dec

Please sign in to comment.