简体   繁体   English

在所有手机和设备上禁用JW Player 6

[英]Disable JW player 6 on all mobile phones and devices

From my knowledge, flv can be played on Andriod phones. 据我所知,flv可以在Andriod手机上播放。 I want to customize the jwplayer 6 to play the video on web browsers only and disable the player on all mobile phones for publisher embedding option. 我想自定义jwplayer 6以仅在Web浏览器上播放视频,并禁用所有移动电话上的播放器以进行发布者嵌入选项。

  • If i use flv format, the video still can be played on Android phones. 如果我使用flv格式,则视频仍可以在Android手机上播放。

     file: 'http://www.example.com/media/trailer.flv', 
  • If i set Primary to "flash" and Fallback to "false" to disable fallback to html5 player, Android phones still can be played the video in flash player. 如果我将“主要”设置为“ flash”,并将“后备”设置为“ false”以禁用对HTML5播放器的后备,则Android手机仍可以在Flash Player中播放视频。

     primary: 'flash', fallback: 'false', 
  • PHP mobile detection is not secure enough, publisher can send a fake user-agent to fool the script. PHP移动检测不够安全,发布者可以发送伪造的用户代理来欺骗脚本。

Any solution for me? 有什么解决办法吗?

I'd try using Modernizr instead - http://modernizr.com/ 我会改用Modernizr- http://modernizr.com/

That way you're detecting if the browser is capable of the feature and not trying to keep up with the ever-changing and spoof-able world of browser headers. 这样,您就可以检测浏览器是否具有该功能,而不是试图跟上不断变化且具有欺骗性的浏览器标题世界。

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

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