我认为问题在于,流量计算机无法识别具有我想要应用于播放器的属性的附加内容。但我已经尝试了很多组合,似乎无法使其发挥作用
/* 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>
答案 0 :(得分:2)
根据这份文件 http://flash.flowplayer.org/documentation/configuration/clips.html scaling参数是String。所以你应该使用引号。
scaling: 'scale'
而且'scale'也是默认值,所以你不必写。如果您想了解此参数如何产生差异,请使用16:9视频
scaling: 'fit'