我需要通过使用视频链接在jquery j-player中创建显示缩略图图像的海报。我在论坛上寻找过,但没有得到与缩略图相关的有用信息。是否有人能给我一些实现的想法?
提前感谢。
$("#jquery_jplayer_2"+playid).jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
/*m4v: "media/tokyo.m4v",
ogv: "media/tokyo.ogv",
poster: "media/poster.jpg"*/
m4v: playpath,
ogv: playpath,
poster: playpath
});
},
ended: function (event) {
$("#jquery_jplayer_2"+playid).jPlayer("play", 0);
},
swfPath: "swf",
supplied: "m4v, ogv",
cssSelectorAncestor: "#jp_interface_2"
})
.bind($.jPlayer.event.play, function() { // pause other instances of player when current one play
$(this).jPlayer("pauseOthers");
});
poster: "media/poster.jpg"
来安排图片。 - Anant Dabhi