PhoneGap的播放M3U8视频 [英] PhoneGap Play m3u8 Video

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

问题描述

我有一个 index.html的 IFRAME IFRAME 我有以下的code:

I have an index.html with an iframe and inside that iframe I have the following code:

<a id="watch-live-btn" href="http://the.location.to/playlist.m3u8" target="_parent"></a>

视频播放iOS上的罚款,当我点击完成我送回,没有任何问题的应用程序。当我尝试这在Android上它只是坐在那里一段时间无所事事。该应用程序仍处于平均时间活跃。

The video plays fine on iOS and when I hit "Done" I'm sent back to the app with no problems. When I try this on Android it just sits there for some time doing nothing. The app is still active in the mean time.

iOS版:6.1
Android的4.0.4

iOS: 6.1 Android 4.0.4

推荐答案

您可以使用一个PhoneGap的插件。这里有已经创建播放一个视频:

You can make use of a phonegap plugin. There is one already created here for playing videos:

https://github.com/macdonst/VideoPlayer

如果你想在Android pre 3.0流可以修改插件使用Vitamio库,以及:

If you want to stream on android pre 3.0 you can modify the plugin to use the Vitamio library as well:

http://www.vitamio.org/en/Download/

这篇关于PhoneGap的播放M3U8视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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