简体   繁体   English

JWPlayer将无法在PhoneGap中播放流视频

[英]JWPlayer will not play streaming video in a PhoneGap

i try to implement a rtmp streaming into a android app using phonegap as container, but unlike the usual, jwplayer report this message "error loading player: no playable sources found" anyone know if depends for the android flash support? 我尝试使用phonegap作为容器来实现流向Android应用程序的rtmp流传输,但是与通常的情况不同,jwplayer报告此消息“错误加载播放器:未找到可播放的源”,有人知道是否依赖android flash支持吗? and in this case which is the best choice to follow to implement a rtmp/rtsp streaming... 在这种情况下,这是实现rtmp / rtsp流的最佳选择...

Thanks in advance Alvin 在此先感谢Alvin

You need to use another format/protocol like HLS using m3u8 etc. Flash is not the ideal solution for cross platform streaming. 您需要使用其他格式/协议,例如使用m3u8等的HLS。Flash并不是跨平台流传输的理想解决方案。 You need to read through jw docs to have a better understanding on why you need to shift toward this better technology and how to use it properly. 您需要通读jw文档,以更好地了解为什么需要转向该更好的技术以及如何正确使用它。

About HLS Streaming https://support.jwplayer.com/customer/en/portal/articles/1430189-about-hls-streaming 关于HLS流式传输https://support.jwplayer.com/customer/en/portal/articles/1430189-about-hls-streaming

Using HLS Streaming https://support.jwplayer.com/customer/en/portal/articles/1430218-using-hls-streaming 使用HLS流式传输https://support.jwplayer.com/customer/en/portal/articles/1430218-using-hls-streaming

HLS Adaptive Streaming https://support.jwplayer.com/customer/en/portal/articles/1430240-hls-adaptive-streaming HLS自适应流式传输https://support.jwplayer.com/customer/en/portal/articles/1430240-hls-adaptive-streaming

---- UPDATE ----- ---- 更新 -----

I personally don't use jwplayer for android I use a plugin called https://github.com/raulduran/VideoPlayer.git It uses the device native video player thus giving you a high level of compatibility and consistent performance. 我个人不为Android使用jwplayer,而是使用名为https://github.com/raulduran/VideoPlayer.git的插件。它使用设备本机视频播放器,从而为您提供高度的兼容性和一致的性能。 I find that there is an overwhelming number of differences between devices, versions and vendors when it comes to Androids...so I opted for a more native approach. 我发现在Android方面,设备,版本和供应商之间存在巨大的差异...因此,我选择了一种更本地化的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM