抱歉,此视频无法在videoview播放?

编程入门 行业动态 更新时间:2024-10-09 06:21:54
本文介绍了抱歉,此视频无法在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 ="dev.hpac.dev-site/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.

推荐答案

尝试此链接

r00tsecurity/forums/topic/12059-android -videoview,例如/

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

更多推荐

抱歉,此视频无法在videoview播放?

本文发布于:2023-11-27 18:45:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639167.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:抱歉   视频   videoview

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!