android - 从我的 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.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/

相关文章:

android - 在运行时更改显示语言并重新创建所有 Activity

android - 德尔福 FMX And​​roid 应用程序。如何打开短信窗口

iphone - iOS - 为 iOS 构建 VLC - 请安装所需的 SDK,或手动设置 SDKROOT

Python VLC 不会播放音频?

java - 更新应用程序小部件显示不同的布局

java - 安卓 ButterKnife java.lang.NoClassDefFoundError : Failed resolution of: Lbutterknife/ButterKnife

Android 在每次测试开始时撤销权限

python - 使用 OpenCV 捕获的显微镜图像的解码问题

python - 如何让VLC点击通过