Disable flash in video.js

↘锁芯ラ 提交于 2019-12-10 18:58:28

问题


How can i prevent video.js to not use flash anymore ? I mean i only need it to run if the browser supports HTML5.

The fact that i am using Drupal it should not be a problem with configuring the javascript library , right ?


回答1:


Override the techOrder to include only HTML5. Add this to the data-setup attribute of the video tag:

<video … data-setup='{"techOrder": ["html5"]}'>


来源:https://stackoverflow.com/questions/15508563/disable-flash-in-video-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!