3
Contributors
8
Replies
24
Views
3 Years
Discussion Span
Last Post by peter_budo
2

There is no official API yet as this is still under development. However according to VLC forum you just need to do this

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setPackage("org.videolan.vlc.betav7neon"); // Use org.videolan.vlc for nightly builds
intent.setDataAndType(Uri.parse("http://example.com/media/test.mp4"), "application/mp4");
startActivity(intent);

My suggestion would be to check first for vlc in PackageManager to avoid crash if app not installed. You can follow discussion on intent here

0

Thanks @PETER BUDO , my first problem is I can't add VLC lib to my project because I need to compile it first using linux which I don't have :(, is there any .jar file so I cant import it easily?.

1

You are misunderstanding concept. This is not jar library that you add to your project, but rather expectation that user has this application installed on device and thereore with help of Android intent you can say "load this url with following application of this package name"

Votes + Comments
thanks
0

thanks buddy works like a charm after added check for if VLC installed .
problem solved.

Edited by OsaMasw

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.