无法播放此视频。由Android设备录制的Android videoView mp4

编程入门 行业动态 更新时间:2024-10-10 12:18:48
本文介绍了无法播放此视频。由Android设备录制的Android videoView mp4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我' ve用其他格式寻找现有的潜在解决方案,那些仍然会回答上述错误。

I've looked for existing potential solutions with other formats and those still responds with mentioned error.

最后,记录了视频使用相同的设备,并将其用作此应用程序的资源,它仍然无法正常工作。

Finally, recorded the video with the same device and used it as a resource for this app and it still doesn't work.

设备: SGS2 ,lenovo a820

Devices: SGS2, lenovo a820

视频类型: MPEG-4视频(视频/ mp4 )

videoView = (VideoView)findViewById(R.id.videoView); videoView.setVideoPath("android.resource://raw/sample.mp4"); videoView.start();

推荐答案

看看我的下面代码是否正常...问题在pathe声明..

just see my below code it works...problem in pathe declaration..

String uriPath = "android.resource://"+getPackageName()+"/"+R.raw.aha_hands_only_cpr_english; Uri uri = Uri.parse(uriPath); mVideoView.setVideoURI(uri);

多数民众赞成......

Thats it...

更多推荐

无法播放此视频。由Android设备录制的Android videoView mp4

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

发布评论

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

>www.elefans.com

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