[英]PhoneGap Play m3u8 Video
I have an index.html
with an iframe
and inside that iframe
I have the following code: 我有一个带iframe
的index.html
,在该iframe
我有以下代码:
<a id="watch-live-btn" href="http://the.location.to/playlist.m3u8" target="_parent"></a>
The video plays fine on iOS and when I hit "Done" I'm sent back to the app with no problems. 该视频在iOS上可以正常播放,当我点击“完成”时,我会毫无问题地被发送回应用程序。 When I try this on Android it just sits there for some time doing nothing. 当我在Android上尝试此功能时,它会停滞不前。 The app is still active in the mean time. 该应用在此期间仍处于活动状态。
iOS: 6.1 Android 4.0.4 iOS:6.1 Android 4.0.4
You can make use of a phonegap plugin. 您可以使用phonegap插件。 There is one already created here for playing videos: 此处已经创建了一个用于播放视频的视频:
https://github.com/macdonst/VideoPlayer https://github.com/macdonst/VideoPlayer
If you want to stream on android pre 3.0 you can modify the plugin to use the Vitamio library as well: 如果要在android pre 3.0上流式传输,则可以修改插件以使用Vitamio库:
http://www.vitamio.org/en/Download/ http://www.vitamio.org/en/Download/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.