如何设置flowplayer全屏选项为false(不是iframe)

How to set flowplayer fullscreen option to false (not iframe)

本文关键字:选项 不是 iframe false flowplayer 何设置 设置      更新时间:2023-09-26

你能帮我回答一下如何在flowplayer中设置全屏为FALSE吗?

我使用的代码是:

 $(document).ready(function () { 
 $("#player").flowplayer({ 
    playlist: [ 
       [{ webm: "http://.../file.webm "},
       { mp4: "http://.../file.mp4 "}] 
    ]
 }); 
 });

我应该在哪里以及如何写选项(全屏:false)?

你可以通过覆盖全局flowplayer对象的默认设置来禁用全屏模式。对于您的示例,它看起来像这样:

$(document).ready(function () {
  //overwrites fullscreen: true in flowplayer.defaults
  flowplayer.config = { fullscreen: false; }
  $("#player").flowplayer({ 
    playlist: [ 
      [
        { webm: "http://.../file.webm"},
        { mp4 : "http://.../file.mp4 "}
      ] 
    ]
  }); 
});

我不确定是否有一个简单的方法来改变单个球员的设置。

谢谢你的回答,Phil !!但不幸的是,你的变体不工作在我的脚本(

)

下面的脚本可以工作:

<script>$(document).ready(function () {
$("#player").flowplayer({
playlist: [
[{ webm: "http://.../file.webm "},
{ mp4: "http://.../file.mp4 "}] 
],
fullscreen: false,
tooltip: false
}); 
});</script>