从我的 Android 应用打开 VLC 直播
Open VLC live streaming from my Android app
是否可以使用 Intent
或任何其他方式从我的 Android 应用程序打开 VLC 直播 link?
类似这样的东西可能对你有用:
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
}
是否可以使用 Intent
或任何其他方式从我的 Android 应用程序打开 VLC 直播 link?
类似这样的东西可能对你有用:
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
}