How to open youtube URL in VLC from android application ?

  1. Start VLC activity from your android application as follows
Intent i = new Intent(Intent.ACTION_MAIN);
i.setComponent(new ComponentName("org.videolan.vlc", ""));
String url = 'Your youtube url';
i.putExtra("url", url);
i.setDataAndType(Uri.parse(url), "video/*");

3. Wait for some time, it will starts play your youtube url in VLC.



Providing simple solutions for complex problems.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store