是否可以使用 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
}
关于android - 从我的 Android 应用打开 VLC 直播,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28983797/