diff --git a/CHANGELOG.md b/CHANGELOG.md index 659dd630..7d11ad3b 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.0.1 +* Fix a bug on Android with URL parsing. See (https://github.com/solid-software/flutter_vlc_player/issues/52), +credits to pharshdev (https://github.com/pharshdev) and Mitch Ross (https://github.com/mitchross) + ## 3.0.0 * Migrated to Swift, thanks to Mitch Ross (https://github.com/mitchross), Amadeu Cavalcante (https://github.com/amadeu01) and pharshdev (https://github.com/pharshdev). diff --git a/android/src/main/java/software/solid/fluttervlcplayer/FlutterVideoView.java b/android/src/main/java/software/solid/fluttervlcplayer/FlutterVideoView.java index 77918b92..56e791a0 100755 --- a/android/src/main/java/software/solid/fluttervlcplayer/FlutterVideoView.java +++ b/android/src/main/java/software/solid/fluttervlcplayer/FlutterVideoView.java @@ -165,7 +165,7 @@ public void onMethodCall(MethodCall methodCall, @NonNull MethodChannel.Result re vout.attachViews(); String initStreamURL = methodCall.argument("url"); - Media media = new Media(libVLC, Uri.parse(Uri.decode(initStreamURL))); + Media media = new Media(libVLC, Uri.parse(initStreamURL)); mediaPlayer.setMedia(media); result.success(null); @@ -178,7 +178,7 @@ public void onMethodCall(MethodCall methodCall, @NonNull MethodChannel.Result re mediaPlayer.stop(); String newURL = methodCall.argument("url"); - Media newMedia = new Media(libVLC, Uri.parse(Uri.decode(newURL))); + Media newMedia = new Media(libVLC, Uri.parse(newURL)); mediaPlayer.setMedia(newMedia); result.success(null); diff --git a/example/android/build.gradle b/example/android/build.gradle index 4874c0a6..91c94778 100755 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.6.1' + classpath 'com.android.tools.build:gradle:3.6.3' } } diff --git a/pubspec.yaml b/pubspec.yaml index 92ded1c0..9a28f6db 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_vlc_player description: A VLC-powered alternative to Flutter's video_player. Supports multiple players on one screen. -version: 3.0.0 +version: 3.0.1 homepage: https://github.com/solid-software/flutter_vlc_player environment: