我尝试以下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