From dce0a93d03c09c97b02fbaed86cdc39132c0d34f Mon Sep 17 00:00:00 2001 From: ForeverSc Date: Tue, 16 Jul 2024 23:54:45 +0800 Subject: [PATCH] docs: update streamType detail info --- README.md | 6 +++--- README_CN.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2e099f3..be570fb 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ Returns a `ReadableStream` for streaming packet data. Parameters: - `start`: The start time for reading, in seconds, defaults to 0, reading packets from the beginning. - `end`: The end time for reading, in seconds, defaults to 0, reading until the end of the file. -- `streamType`: The type of media stream, defaults to 0, which is the video stream. +- `streamType`: The type of media stream, defaults to 0, which is the video stream. 1 is audio stream. See `AVMediaType` for more details. - `streamIndex`: The index of the media stream, defaults to -1, which is to automatically select. ```typescript @@ -127,7 +127,7 @@ getAVStream(streamType?: AVMediaType, streamIndex?: number): Promise