开发者

Loading flowplayer in overlay and adding clip programmatically

Flowplayer js version: 3.2.4 Flowplayer flash swf version: 3.2.5

I am loading up the flowplayer in an overlay as such

$(function() {

    var pp = $f(
        "videoContent", 
        "http://releases.flowplayer.org/swf/flowplayer-3.2.5.swf"
    );

    var p = $("#overlay").overlay({
开发者_如何转开发        api:true,
        onLoad: function() {
            var c = {url:'http://vod01.netdna.com/vod/demo.flowplayer/flowplayer-960.mp4'};                 
            pp.addClip(c, 0);
            pp.load();
        },
        onClose: function(){
            pp.unload();
        }
    });

    $("#open").click(function(){
        p.load();
    });

});

Everything but the add-clip functionality is standard set by flowplayer as an example on their site. Note sure why the clip is not being added.


Try this

pp.play({'url':'videos/file-name.mp4'},0);

The addClip method doesn't work the way it should seem to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜