为什么我无法在 Galaxy Ace 中播放该视频,但可以在 Galaxy SII 中播放?

发布于 2024-12-28 07:48:36 字数 645 浏览 5 评论 0原文

这是两个视频文件属性: 在此处输入图像描述

我正在两台设备 Samsung Galaxy Ace 和 Samsung Galaxy SII 上播放此视频。

当我运行 Alone.mp4 时,它在两个设备上都能正常播放。但同样,如果我运行 Pfront.mp4 视频,那么它只能在 Galaxy SII 中播放,而不能在 Galaxy Ace 中播放。那次在 Galaxy Ace 中,它给了我这样的消息:抱歉,该视频无法播放。

视频文件的配置是否有问题? 这里出了什么问题?为什么我无法在 Galaxy Ace 中播放视频?

谢谢。

使用代码编辑

我使用下面的代码来播放视频

case R.id.playVideoBtn:
        File file2 = new File("/sdcard/Pfront.mp4");
        Uri video = Uri.fromFile(file2);

        myVideoView.setVideoURI(video);
        myVideoView.start();
        break;
    }

Here is the two video file properties :
enter image description here

I am playing this video in to both device, Samsung Galaxy Ace and Samsung Galaxy SII.

While i run Alone.mp4 then it play fine for both the device. But as same if i run the Pfront.mp4 video then it only play in to galaxy SII and not play in Galaxy Ace. and that time in Galaxy Ace it gives me message like: Sorry, this video cannot be played.

Is there a Problem with the configuration of the Video File ?
Whats wrong here ? Why i am not able to play the Video in to Galaxy Ace ?

Thanks.

Edited with code

I am using below code to play the Video

case R.id.playVideoBtn:
        File file2 = new File("/sdcard/Pfront.mp4");
        Uri video = Uri.fromFile(file2);

        myVideoView.setVideoURI(video);
        myVideoView.start();
        break;
    }

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文