How to open youtube URL in VLC from android application ?
- Install VLC player in your android device (I used amazone firetv stick)
- 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.