Skip to content

Commit

Permalink
Bugfix open MRL (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchross authored May 26, 2020
1 parent 47cbfd5 commit 8979997
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'com.android.tools.build:gradle:3.6.3'
}
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 8979997

Please sign in to comment.