如何将 VLC 媒体播放器嵌入我的 Android 应用程序 [英] How to embed VLC media player to my Android App

查看:73
本文介绍了如何将 VLC 媒体播放器嵌入我的 Android 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将 VLC 媒体播放器嵌入到 Android 应用程序中?我有几个问题:

Is there a way to embed VLC media player to Android Application? I have several issues:

1) 我有一个视频流摄像头(来自 RTSP),但我无法在我的常规视频视图面板上播放它的流(对不起,这个视频无法播放错误).但是,我安装了适用于 Android(测试版)的 VLC 应用程序,并且能够播放它.2)我的主要目标是将使用 VLC 插件的桌面 Java 应用程序移植到 Android.我想以最少的努力完成这项任务(我有一些时间问题).

1) I have a video streaming Camera (from RTSP) and I cannot play its stream on my regular videoview panel (Sorry this video cannot be played error). However, I installed the VLC application for Android (beta version) and I was able to play it. 2) My main objective is to port a desktop java application which uses VLC plugin to Android. I want to accomplish this task with minimum effort (I have some time issues).

另一种选择,有没有办法将 VLC 使用的编解码器嵌入到我的应用程序中?因为对于我的视频视图,结果根据视频的格式而有所不同.我可以在我的视频视图上播放通过 RTSP 流式传输的其他一些视频.

Another alternative, is there a way to embed codecs used by VLC to my application? Because with my videoview, the result varies according to the format of the video. I can play some other videos streamed through RTSP on my videoview.

我在互联网上搜索并找到了一个libvlc",但也有一些关于 android 的 libvlc 的注释不完整(但这些注释属于过去的时间,即使在 stackoverflow 中).

I search through internet and found a "libvlc" but also some notes about that libvlc for android is not complete (but those notes belong to a past time, even in stackoverflow).

推荐答案

是的,如果你已经有了 vlc-sdk.7z(Android 的 libVLC),此处 是将 VLC 嵌入您的 android 应用程序的示例项目.

Yes, if you already have the vlc-sdk.7z (libVLC for android), here is the sample project to embedded VLC into your android apps.

如果您没有 libVLC,这里是构建一个的步骤.(sh compile.sh"完成后,make vlc-sdk.7z"创建vlc-sdk.7z并解压到demo工程中.

If you do not have libVLC, here are the steps to build one. (After "sh compile.sh" finished, "make vlc-sdk.7z" to create the vlc-sdk.7z and unzip to the demo project.

我把 vlc-sdk.7z(只包含 armeabi-v7a)这里 用于测试.

I put the vlc-sdk.7z(only armeabi-v7a is included) here for testing.

这篇关于如何将 VLC 媒体播放器嵌入我的 Android 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆