从URL在Android上播放MP4文件 [英] Play mp4 file from URL on android
问题描述
我已经研究了一段时间,和所有我能找到点到MP4的问题'暗示',但我有过的视频没有控制权。
I've been researching for some time now, and all the questions I can find point to mp4 'hinting' but I have no control over the videos.
我快要放弃的时候,我发现,在Android市场上的MX视频播放器能够以某种方式播放这些MP4的网址,我有。因此,在这一刻我使用的意图,在推出MX播放器的网址,但我宁愿我的应用程序中显示视频。
I was about to give up when i discovered that MX video player on the android market can somehow play these mp4 urls I have. So at the moment I use an intent to launch the urls in mx player but I'd much rather display the video within my app.
任何想法如何MX播放器,这将是巨大的,
Any ideas how mx player does this would be great,
感谢
推荐答案
转寄此的链接我已经贴了整个code通过创建一个videoview,你可能会小错误,你可以手动删除错误打在你的应用程序的MP4视频。
Refer this link i had pasted the whole code for playing the mp4 videos in your app by creating a videoview and you might minor error you can manually remove that error.
这篇关于从URL在Android上播放MP4文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!