从我的Android应用程序打开VLC实时流媒体
是否可以使用从我的Android应用程序打开VLC实时流媒体,android,vlc,Android,Vlc,是否可以使用Intent或任何其他方式从我的Android应用程序打开VLC实时流媒体链接?类似的方法可能适合您: try { Intent i = new Intent(Intent.ACTION_VIEW); //get an intent i.setPackage("org.videolan.vlc.betav7neon"); //set the package name i.setDataAndType(Uri.parse("https://www
Intent
或任何其他方式从我的Android应用程序打开VLC实时流媒体链接?类似的方法可能适合您:
try
{
Intent i = new Intent(Intent.ACTION_VIEW);
//get an intent
i.setPackage("org.videolan.vlc.betav7neon");
//set the package name
i.setDataAndType(Uri.parse("https://www.linkofvideo.com"), "video/h264");
//replace https://www.linkofvideo.com with the link or IP
//replace video/h264 with the type of video
startActivity(i);
//start the activity
}
catch (PackageManager.NameNotFoundException e) {
//app is NOT installed
}