Ver código fonte

update readme

Caijinglong 6 anos atrás
pai
commit
c749f69867
4 arquivos alterados com 22 adições e 9 exclusões
  1. 9 2
      README-EN.md
  2. 7 1
      README.md
  3. 3 3
      example/pubspec.lock
  4. 3 3
      pubspec.lock

+ 9 - 2
README-EN.md

@@ -18,6 +18,7 @@ Before using library, you can star and download the code to try the example.
   - [Menu](#menu)
   - [Install](#install)
   - [Build](#build)
+    - [Custom compile library](#custom-compile-library)
     - [iOS](#ios)
     - [Android](#android)
   - [Simple Example](#simple-example)
@@ -52,13 +53,17 @@ dependencies:
 
 ## Build
 
+### Custom compile library
+
 Current config file see [url](https://gitee.com/kikt/ijkplayer_thrid_party/blob/master/config/module.sh).
 
 For custom configuration options, refer to the [bibibili/ijkplayer](https://github.com/bilibili/ijkplayer) or [ffmpeg](http://ffmpeg.org/).
 
-Custom compilation options:
+Custom compilation source document:
 https://github.com/CaiJingLong/flutter_ijkplayer/blob/master/compile.md
 
+Because I edit some source, so you must see the compile.md to customize your library.
+
 ### iOS
 
 Because the libraries of some iOS codes are large, a pod-dependent ijkplayer library for hosting iOS is created.
@@ -70,7 +75,7 @@ On this basis, rotation notification is added.
 
 ### Android
 
-Now, use [GSYVideoPlayer](https://github.com/CarGuo/GSYVideoPlayer) `.so` library.
+Now, use compilation options in [GSYVideoPlayer](https://github.com/CarGuo/GSYVideoPlayer).
 
 ## Simple Example
 
@@ -234,6 +239,8 @@ var provider = MemoryImage(uint8List);
 Widget image = Image(image:provider);
 ```
 
+**This is not always the same as the video on display. This is because it intercepts the decoded full video frame, which may be 1-2 frames faster than the current play.** If you can't accept it, please don't use this feature or submit a viable PR.
+
 #### Observer for resource
 
 Broadcasting changes in information outward in the form of streams, in principle the attributes ending with streams are monitorable.

+ 7 - 1
README.md

@@ -23,6 +23,7 @@ android 模拟器 mac android sdk 自带的 emulator(API28 android9)可用,其
   - [English Readme](#english-readme)
   - [安装](#%E5%AE%89%E8%A3%85)
   - [原生部分说明](#%E5%8E%9F%E7%94%9F%E9%83%A8%E5%88%86%E8%AF%B4%E6%98%8E)
+    - [自定义编译](#%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BC%96%E8%AF%91)
     - [iOS](#ios)
     - [Android](#android)
   - [入门示例](#%E5%85%A5%E9%97%A8%E7%A4%BA%E4%BE%8B)
@@ -64,9 +65,11 @@ dependencies:
 
 ## 原生部分说明
 
+### 自定义编译
+
 编译规则可以参考[这个](https://gitee.com/kikt/ijkplayer_thrid_party/blob/master/config/module.sh),如果你有自己的特定需求,可以修改编译选项,这个参考 [bilibili/ijkplayer](https://github.com/bilibili/ijkplayer) 或 [ffmpeg](http://ffmpeg.org/)
 
-自定义编译选项可以看[这里](https://github.com/CaiJingLong/flutter_ijkplayer/blob/master/compile-cn.md)
+自定义编译选项的完整过程请看[文档](https://github.com/CaiJingLong/flutter_ijkplayer/blob/master/compile-cn.md),否则不保证编译出来的代码不报错
 
 ### iOS
 
@@ -261,6 +264,9 @@ var provider = MemoryImage(uint8List);
 Widget image = Image(image:provider);
 ```
 
+这个和显示中的视频不总完全一样, 这个是因为截取的是解码后的完整视频帧, 可能比当前播放的**略快 1~2 帧**.
+如果你不能接受这种不同步,请不要使用这个功能,或提交可行的 PR
+
 #### 资源监听
 
 使用 stream 的形式向外广播一些信息的变化,原则上以 stream 结尾的属性都是可监听的

+ 3 - 3
example/pubspec.lock

@@ -21,7 +21,7 @@ packages:
       name: async
       url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.1.0"
+    version: "2.2.0"
   boolean_selector:
     dependency: transitive
     description:
@@ -204,7 +204,7 @@ packages:
       name: quiver
       url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.0.2"
+    version: "2.0.3"
   sky_engine:
     dependency: transitive
     description: flutter
@@ -251,7 +251,7 @@ packages:
       name: test_api
       url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "0.2.4"
+    version: "0.2.5"
   typed_data:
     dependency: transitive
     description:

+ 3 - 3
pubspec.lock

@@ -7,7 +7,7 @@ packages:
       name: async
       url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.1.0"
+    version: "2.2.0"
   boolean_selector:
     dependency: transitive
     description:
@@ -73,7 +73,7 @@ packages:
       name: quiver
       url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "2.0.2"
+    version: "2.0.3"
   sky_engine:
     dependency: transitive
     description: flutter
@@ -120,7 +120,7 @@ packages:
       name: test_api
       url: "https://pub.flutter-io.cn"
     source: hosted
-    version: "0.2.4"
+    version: "0.2.5"
   typed_data:
     dependency: transitive
     description: