Android 上的 JW Player 无法播放视频

发布于 2024-12-14 03:41:46 字数 611 浏览 3 评论 0原文

我无法让 JW Player 在 Android 设备(真实设备或模拟设备)上播放任何内容。事实上,即使是 JW Player 中打包的默认视频和默认设置下载< /a> 不会玩!我尝试过重新编码视频...不行。我尝试过优先考虑 HTML5 播放器而不是 Flash 播放器...不。我不断收到错误:

无法播放视频

抱歉,该视频无法播放。

值得注意的是,它在网络和 iPhone 上运行良好。

更新:以下是直接从 JW Player 下载的未经修改的默认播放器的示例:http:// /sambot.com/jw/。在你的 Android 上试试...

我在这里做错了什么?

I cannot get JW Player to play anything on an Android device (real or emulated). In fact, even the default video and default setup that comes packaged in the JW Player download will not play! I've tried re-encoding the video... nope. I've tried prioritizing the HTML5 player over the Flash player... nope. I keep getting the error:

Cannot play video

Sorry, this video cannot be played.

Worth noting, it works fine on the web and in an iPhone.

UPDATE: Here's an example of the unmodified default player directly from the JW Player download: http://sambot.com/jw/. Try it on your Android...

What am I doing wrong here?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

盛夏已如深秋| 2024-12-21 03:41:46

您的视频文件位于哪里?如果它位于您的资产文件夹中,我认为它不会运行。尝试将其放在其他目录中,例如您的 SD 卡或数据文件夹

希望这有帮助

where is your video file located? if it's located in your assets folder I think it won't run. try putting it in other directory like your sdcard or data folder

hope this helps

音盲 2024-12-21 03:41:46

就像 gilsaints88 所说的那样,从 WebView 中的资源文件夹中播放根本行不通。

我最近在 jPlayer 上遇到了这个问题,我的直接解决方案是在应用程序启动时将我的音频/视频内容复制到 SD 卡,然后从那里播放 - 当然,这仍然存在问题,从长远来看,我可能只是不使用 WebView 来播放音频。

Much as gilsaints88 said, playing from your assets folder in a WebView simply will not work.

I recently had this issue with jPlayer, and my immediate solution was to copy my audio/video content to the sdcard when the app is launched, then play it from there - this still has issues, of course, and in the long term I probably will just not use WebViews for playing audio.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文