0

flowplayer複数のクリップ/ビデオを再生するためのセットアップがあります。ただ、思ったように動いていないのが現状です。私の人生では、最初のクリップが終了したら、2番目以降のビデオを自動的に再生する方法がわかりません。何か案は?

$f("player", "/flowplayer/flowplayer.commercial-3.2.11.swf", {
key: '#$*******************',
logo: {
    url: 'logo.png',
    fullscreenOnly: false,
    displayTime: 11,
    top: 195,
    left:  400.25,
    fadeSpeed: 1100,
    opacity: 0,
    linkUrl: 'http://www.mysite.com',
    linkWindow: '_blank'

},

clip: {
    autoPlay: true,
    autoBuffering: true,

    onCuepoint: [[00,5000,13000,30000,39000,47000,53000,67000,75000,86000,100000,110000,118000], function(clip, point) {
        info.innerHTML = '<iframe src="cue_player.php?id=3716&time='+ point+'" height="490" width="730" frameborder="0" scrolling="no"></iframe>'
    }],

    // track start event for this clip
    onStart: function(clip) {
        _tracker._trackEvent("Videos", "Play", "");
    },

    // track pause event for this clip. time (in seconds) is also tracked
    onPause: function(clip) {
        _tracker._trackEvent("Videos", "Pause", "", parseInt(this.getTime()));
    },

    // track stop event for this clip. time is also tracked
    onStop: function(clip) {
        _tracker._trackEvent("Videos", "Stop", "", parseInt(this.getTime()));
    },

    // track finish event for this clip
    onFinish: function(clip) {
        _tracker._trackEvent("Videos", "Finish", "");
    },

    provider: 'rtmp'
}, 
playlist:[      {                 
        url: 'first_clip.mp4', 
        start: '0'
        },
        {
            url:'second_clip.mp4',
        }],  

    plugins: {
        rtmp: {
            url: '/flowplayer/flowplayer.rtmp-3.2.10.swf',
            netConnectionUrl: 'rtmp://video.mysite.com/videostream'
        }
    }
}

);

4

2 に答える 2

0

よくわかりませんが、2 番目のオブジェクトのカンマがぶら下がっているとエラーが発生し、必要なものが妨げられる可能性があるようです。

playlist:[      {                 
        url: 'first_clip.mp4', 
        start: '0'
        },
        {
            url:'second_clip.mp4', //does removing this comma help?
        }],  
于 2012-10-29T20:11:35.020 に答える
0

わかりました、それで私はついにそれを理解しました。これは私がそれを持っていた方法です:

playlist:[{                 
    url: 'first_clip.mp4', 
    start: '0'
    },
    {
        url:'second_clip.mp4', //does removing this comma help?
    }],

しかし、解決策は、ファイル名の直前に「/mp4:」を配置することでした。したがって、次のようになり、機能します。

playlist:[{                 
    url: 'mp4:first_clip.mp4', 
    start: '0'
    },
    {
        url:'mp4:second_clip.mp4', //does removing this comma help?
    }],

違いがあるかどうかはわかりませんが、ビデオを提供するために Web サーバーの代わりにビデオ サーバーを使用しています。

于 2012-10-30T13:44:29.623 に答える