diff --git a/flutter_vlc_player/android/src/main/java/software/solid/fluttervlcplayer/FlutterVlcPlayer.java b/flutter_vlc_player/android/src/main/java/software/solid/fluttervlcplayer/FlutterVlcPlayer.java index e4850791..e5fc3d94 100644 --- a/flutter_vlc_player/android/src/main/java/software/solid/fluttervlcplayer/FlutterVlcPlayer.java +++ b/flutter_vlc_player/android/src/main/java/software/solid/fluttervlcplayer/FlutterVlcPlayer.java @@ -281,6 +281,8 @@ void setStreamUrl(String url, boolean isAssetUrl, boolean autoPlay, long hwAcc) Media media; if (isAssetUrl) media = new Media(libVLC, context.getAssets().openFd(url)); + else if(url.startsWith("content://")) + media = new Media(libVLC, context.getContentResolver().openFileDescriptor(Uri.parse(url), "r").getFileDescriptor()); else media = new Media(libVLC, Uri.parse(url)); final HwAcc hwAccValue = HwAcc.values()[(int) hwAcc];