开发者

Loading flowplayer in overlay and adding clip programmatically

开发者 https://www.devze.com 2023-02-03 19:07 出处:网络
Flowplayer js version: 3.2.4 Flowplayer flash swf version: 3.2.5 I am loading up the flowplayer in an overlay as such

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

精彩评论

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

关注公众号