1

我认为问题在于 flowplayer 没有识别出具有我想应用于播放器的属性的附加内容。但我尝试了很多组合,但似乎无法让它发挥作用

   /* custom player skin */
    .flowplayer { width: 100%; background-color: #000;}
    .flowplayer .fp-controls { display:none;}
    .flowplayer .fp-timeline { display:none;}
    .flowplayer .fp-progress { display:none;}
    .flowplayer .fp-buffer { display:none;}

    </style>

    <!-- flowplayer depends on jQuery 1.7.1+ -->
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

    <!-- flowplayer javascript component -->
    <script src="http://releases.flowplayer.org/5.3.2/flowplayer.min.js"></script>

 </head>

 <body>
    <div data-swf="http://releases.flowplayer.org/5.3.2/flowplayer.swf"
      class="flowplayer fixed-controls no-toggle no-time no-volume no-mute"
      data-ratio="0.416" data-embed="false" data-fullscreen="false" data-scaling="scale" data-keyboard="false">
      <script>
             flowplayer("player", "flowplayer.swf", {
        clip:  {
            autoPlay: true,
          autoBuffering: true
          scaling: scale
         }
         });
     </script>
        <video loop="loop">

         <source type="video/mp4" src="whitenoise.mp4"/>

         </video>

       </div>

     </body>
4

1 回答 1

2

根据这个文档 http://flash.flowplayer.org/documentation/configuration/clips.html 缩放参数是字符串。所以你应该使用引号。

scaling: 'scale'

'scale' 也是默认值,所以你不必写。如果您想了解此参数有何不同,请使用 16:9 视频

scaling: 'fit'
于 2013-03-12T17:05:23.723 回答