From 1113cebf8b87cc75410201980b77b0736d5a59a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E8=88=AA?= <33210899+HarrisonQi@users.noreply.github.com> Date: Wed, 10 Nov 2021 10:52:49 +0800 Subject: [PATCH] Update chinese.md Adjust some Chinese grammar to make it smooth --- doc/chinese.md | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/doc/chinese.md b/doc/chinese.md index 514dbc3..f4fa5ec 100644 --- a/doc/chinese.md +++ b/doc/chinese.md @@ -4,7 +4,7 @@ # flutter_video_compress -压缩视频生成新路径,选择保留源视频或删除它。从视频路径获取视频缩略图并提供视频信息。方便的处理压缩视频。考虑减少应用程序大小不在IOS中使用FFmpeg +压缩视频并保存至新目录位置(可选择压缩后删除源文件). 获取视频缩略图及视频属性. 轻松处理压缩视频. (考虑到应用大小, 不在 IOS 中使用 FFmpeg 组件)
@@ -23,13 +23,13 @@
## 用户指南
**安装**
-添加[flutter_video_compress](https://pub.dartlang.org/packages/flutter_video_compress)到你的pubspec.yaml文件中.
+添加[flutter_video_compress](https://pub.dartlang.org/packages/flutter_video_compress)到`pubspec.yaml`:
```yaml
dependencies:
flutter_video_compress: ^0.3.x
```
-**创建一个实例**
+**创建一个 FlutterVideoCompress 实例**
```dart
final _flutterVideoCompress = FlutterVideoCompress();
```
@@ -52,7 +52,7 @@ final thumbnailFile = await _flutterVideoCompress.getThumbnailWithFile(
);
```
-**转换视频为gif**
+**视频转 Gif**
```dart
final file = await _flutterVideoCompress.convertVideoToGif(
videoFile.path,
@@ -63,8 +63,8 @@ final file = await _flutterVideoCompress.convertVideoToGif(
debugPrint(file.path);
```
-**获取媒体信息**
-> 现在支持持视频
+**获取音视频信息**
+> 现在支持视频
```dart
final info = await _flutterVideoCompress.getMediaInfo(file.path);
@@ -72,7 +72,7 @@ debugPrint(info.toJson().toString());
```
**压缩视频**
-> 移动端平台及web平台视频格式是兼容的
+> 同时兼容移动端和Web端
```dart
final info = await _flutterVideoCompress.compressVideo(
@@ -83,26 +83,26 @@ final info = await _flutterVideoCompress.compressVideo(
debugPrint(info.toJson().toString());
```
-**检查压缩状态**
+**获取压缩状态**
```dart
_flutterVideoCompress.isCompressing
```
**停止压缩**
-> Android 会打印 InterruptedException 错误, 但是不会影响使用
+> Android 会报 `InterruptedException` , 但不影响使用
```dart
await _flutterVideoCompress.cancelCompression()
```
-**删除所有缓存文件**
-> 删除这个插件生成的所有文件,我想你应该知道你在做什么
+**清理缓存**
+> 清理插件生成的所有缓存文件
```dart
await _flutterVideoCompress.deleteAllCache()
```
-**订阅转换流**
+**监听转换流**
```dart
class ... extends State