Skip to content

Commit 8979997

Browse files
authored
Bugfix open MRL (#53)
1 parent 47cbfd5 commit 8979997

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.0.1
2+
* Fix a bug on Android with URL parsing. See (https://github.com/solid-software/flutter_vlc_player/issues/52),
3+
credits to pharshdev (https://github.com/pharshdev) and Mitch Ross (https://github.com/mitchross)
4+
15
## 3.0.0
26
* Migrated to Swift, thanks to Mitch Ross (https://github.com/mitchross),
37
Amadeu Cavalcante (https://github.com/amadeu01) and pharshdev (https://github.com/pharshdev).

android/src/main/java/software/solid/fluttervlcplayer/FlutterVideoView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void onMethodCall(MethodCall methodCall, @NonNull MethodChannel.Result re
165165
vout.attachViews();
166166

167167
String initStreamURL = methodCall.argument("url");
168-
Media media = new Media(libVLC, Uri.parse(Uri.decode(initStreamURL)));
168+
Media media = new Media(libVLC, Uri.parse(initStreamURL));
169169
mediaPlayer.setMedia(media);
170170

171171
result.success(null);
@@ -178,7 +178,7 @@ public void onMethodCall(MethodCall methodCall, @NonNull MethodChannel.Result re
178178

179179
mediaPlayer.stop();
180180
String newURL = methodCall.argument("url");
181-
Media newMedia = new Media(libVLC, Uri.parse(Uri.decode(newURL)));
181+
Media newMedia = new Media(libVLC, Uri.parse(newURL));
182182
mediaPlayer.setMedia(newMedia);
183183

184184
result.success(null);

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.6.1'
8+
classpath 'com.android.tools.build:gradle:3.6.3'
99
}
1010
}
1111

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_vlc_player
22
description: A VLC-powered alternative to Flutter's video_player. Supports multiple players on one screen.
3-
version: 3.0.0
3+
version: 3.0.1
44
homepage: https://github.com/solid-software/flutter_vlc_player
55

66
environment:

0 commit comments

Comments
 (0)