javascript - Flowplayer 的嵌套条件语句

标签 javascript html

为什么下面提到的代码不起作用?

<script>
flowplayer("player", "flowplayer-3.2.8.swf", {
    onLoad: function() { 
        this.setVolume(100); 
    },
    clip: {   
        autoBuffering: true,  
    },
var screenwidth = screen.width;
var screenheight = screen.height;
if (screenwidth / screenheight < 1.34) {
    <!--[if IE]>
         <plugins: {
     controls: null
     }/>
    <![endif]-->
    <!--[if !IE]><!-->
         <plugins: {
     controls: true
     }/>
    <!--<![endif]-->
});
</script>

最佳答案

 flowplayer("player", "flowplayer-3.2.8.swf", {

        onLoad: function() { 
            this.setVolume(100); 
        },
        clip: {   
            autoBuffering: true,
    url: video_path  
        },

here video_path is the path of your video

关于javascript - Flowplayer 的嵌套条件语句,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15848114/

相关文章:

javascript - 在 ngOnInit 中调用函数时的 Angular5 typescript

javascript - 防止实例变量在js文件中编码为html

javascript - 刷新页面时标题外观不起作用

javascript - 克隆 div 和在循环中创建的 div 之间有什么区别吗?

javascript - AngularJS - Firebase 登录后路由到不同的 View

javascript - 使用 node.js 覆盖文件中的一行

javascript - jQuery/Javascript - 仅显示与数组匹配的 tr 和 td

html - 如何在html中添加工具提示?

javascript - jQuery 表格的每一行

javascript - 使用 Vanilla javascript 将元素高度设置为等于宽度