Browse Source

update README

Taner Sener 6 years ago
parent
commit
33435d0d4a
3 changed files with 4 additions and 4 deletions
  1. 1 1
      README.md
  2. 1 1
      example/android/app/build.gradle
  3. 2 2
      example/lib/flutter_ffmpeg_example.dart

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 # flutter_ffmpeg 
 # flutter_ffmpeg 
 
 
-![GitHub release](https://img.shields.io/badge/release-v0.1.1-blue.svg) 
+![GitHub release](https://img.shields.io/badge/release-v0.2.0-blue.svg) 
 ![](https://img.shields.io/pub/v/flutter_ffmpeg.svg)
 ![](https://img.shields.io/pub/v/flutter_ffmpeg.svg)
 
 
 FFmpeg plugin for Flutter. Supports iOS and Android.
 FFmpeg plugin for Flutter. Supports iOS and Android.

+ 1 - 1
example/android/app/build.gradle

@@ -33,7 +33,7 @@ android {
 
 
     defaultConfig {
     defaultConfig {
         applicationId "com.arthenica.flutter.ffmpeg.FlutterFFmpegExample"
         applicationId "com.arthenica.flutter.ffmpeg.FlutterFFmpegExample"
-        minSdkVersion 21
+        minSdkVersion 24
         targetSdkVersion 28
         targetSdkVersion 28
         versionCode flutterVersionCode.toInteger()
         versionCode flutterVersionCode.toInteger()
         versionName flutterVersionName
         versionName flutterVersionName

+ 2 - 2
example/lib/flutter_ffmpeg_example.dart

@@ -405,7 +405,7 @@ class FlutterFFmpegTestAppState extends State<MainPage> with TickerProviderState
     String ffmpegCodec = _currentCodec;
     String ffmpegCodec = _currentCodec;
 
 
     // VIDEO CODEC MENU HAS BASIC NAMES, FFMPEG NEEDS LONGER LIBRARY NAMES.
     // VIDEO CODEC MENU HAS BASIC NAMES, FFMPEG NEEDS LONGER LIBRARY NAMES.
-    if (ffmpegCodec == "h264") {
+    if (ffmpegCodec == "x264") {
       ffmpegCodec = "libx264";
       ffmpegCodec = "libx264";
     } else if (ffmpegCodec == "x265") {
     } else if (ffmpegCodec == "x265") {
       ffmpegCodec = "libx265";
       ffmpegCodec = "libx265";
@@ -452,7 +452,7 @@ class FlutterFFmpegTestAppState extends State<MainPage> with TickerProviderState
     List<DropdownMenuItem<String>> items = new List();
     List<DropdownMenuItem<String>> items = new List();
 
 
     items.add(new DropdownMenuItem(value: "mpeg4", child: new Text("mpeg4")));
     items.add(new DropdownMenuItem(value: "mpeg4", child: new Text("mpeg4")));
-    items.add(new DropdownMenuItem(value: "h264", child: new Text("h264")));
+    items.add(new DropdownMenuItem(value: "x264", child: new Text("x264")));
     items.add(new DropdownMenuItem(value: "x265", child: new Text("x265")));
     items.add(new DropdownMenuItem(value: "x265", child: new Text("x265")));
     items.add(new DropdownMenuItem(value: "xvid", child: new Text("xvid")));
     items.add(new DropdownMenuItem(value: "xvid", child: new Text("xvid")));
     items.add(new DropdownMenuItem(value: "vp8", child: new Text("vp8")));
     items.add(new DropdownMenuItem(value: "vp8", child: new Text("vp8")));