我想让JW Player在Fancy Box中工作。 Fancy Box在下面设置的尺寸下打开OK,但视频不显示(这是在服务器上)。我正在页面上使用的示例链接(与脚本和内容处理器位于同一级别 - mp4位于内容目录中)
<a href='content/brat.mp4' class='video' data-width="600" data-height="345" title='me'>Robot</a>
并在页面中:
$(".video").fancybox({
fitToView: false, // to show videos in their own size
content: '<span></span>', // create temp content
scrolling: 'no', // don't show scrolling bars in fancybox
afterLoad: function () {
// get dimensions from data attributes
var $width = $(this.element).data('width');
var $height = $(this.element).data('height');
// replace temp content
this.content = "<embed src='scripts/jwplayer/jwplayer.swf?file=" + this.href + "&autostart=true&wmode=opaque' type='application/x-shockwave-flash' width='" + $width + "' height='" + $height + "'></embed>";
}
});
在scripts / jwplayer /中有jwplayer.flash.swf,jwplayer.js和jwplayer.html5.js
答案 0 :(得分:0)
排序......问题是jwplayer 6.我下载了第5版,一切正常!
http://developer.longtailvideo.com/trac/browser/tags/mediaplayer-5.3#js
哇呀,