禁用video.js中的flash [英] Disable flash in video.js

查看:1112
本文介绍了禁用video.js中的flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何阻止video.js不再使用闪存?我的意思是,如果浏览器支持HTML5,我只需要它就可以运行。

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

我使用Drupal的事实不应该是配置javascript库的问题,对吧?

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

推荐答案

覆盖techOrder以仅包含HTML5。将其添加到视频标记的数据设置属性中:

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

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

这篇关于禁用video.js中的flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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