如何播放MP4视频文件,机器人 [英] How to play mp4 video files, android
本文介绍了如何播放MP4视频文件,机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试以下code。但无法使用ACTION_VIEW播放mp4文件。但我能够发挥M4V文件。如何播放mp4文件。
I tried the following code. But unable to play mp4 files using ACTION_VIEW. But I am able to play m4v files. How to play mp4 files.
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
Uri data = Uri.parse(filePath);
intent.setDataAndType(data, "video/*");
startActivity(intent);
谢谢
苏尼尔·库马尔Sahoo
Thanks Sunil Kumar Sahoo
推荐答案
我发现问题是与特定文件类型的视频文件的流。 http://developer.android.com/guide/appendix/media-formats.html
I found the issue is with streaming of video file with certain file types. http://developer.android.com/guide/appendix/media-formats.html
我找到了替代的解决方案,以降低FIEL到SD卡,然后从SD卡
I found the alternate solution as to down fiel into sdcard and then play the file from SD-Card
谢谢
苏尼尔·库马尔Sahoo
Thanks Sunil Kumar Sahoo
这篇关于如何播放MP4视频文件,机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文