How to open youtube URL in VLC from android application ?

  1. Install VLC player in your android device (I used amazone firetv stick)
  2. Start VLC activity from your android application as follows
Intent i = new Intent(Intent.ACTION_MAIN);
i.setComponent(new ComponentName("org.videolan.vlc", "org.videolan.vlc.gui.video.VideoPlayerActivity"));
String url = 'Your youtube url';
i.putExtra("url", url);
i.setDataAndType(Uri.parse(url), "video/*");
context.startActivity(i);

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

Providing simple solutions for complex problems.

Providing simple solutions for complex problems.