抱歉,此视频无法在videoview播放? [英] sorry, this video cannot be played in videoview?

查看:236
本文介绍了抱歉,此视频无法在videoview播放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

freinds,

我使用以下code,以显示我的应用程序中的MP4视频
和面临以下问题

i am using following code to display a mp4 video in my application and facing following problems

我已经看到了与此相关的问题对谷歌这么多的职位,但计算器每一位给他自己的建议,并没有常见的答案。

i have seen so many posts related to this issue on google and stackoverflow but every one giving his own suggestions and there is no common answer.

1)我不能看到视频模拟器
2)在不同的手机有时rarly视频播放,大部分时间它给上述消息。

1) i cannot see video in emulator 2) in different phone sometime rarly video is played and most of the time it give above message.

我的code

VideoView myVideoView = (VideoView)findViewById(R.id.videoview);

      String viewSource ="http://dev.hpac.dev-site.org/sites/default/files/videos/about/mobile.mp4";

      myVideoView.setVideoURI(Uri.parse(viewSource));
      myVideoView.setMediaController(new MediaController(this));
      myVideoView.requestFocus();
      myVideoView.start();

任何一个指导我该如何解决这个问题
任何帮助将是AP preciated。

any one guide me what is the solution to this problem any help would be appreciated.

推荐答案

尝试此链接

http://r00tsecurity.org/forums/topic/12059-android -videoview,例如/

http://www.helloandroid.com/tutorials/如何播放视频和音频功能的Andr​​oid

这篇关于抱歉,此视频无法在videoview播放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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