2012-10-29 35 views
0

我有一個flowplayer設置可播放多個剪輯/視頻。但是,情況是,它沒有按照我打算執行的方式執行。對於我的生活,我無法弄清楚如何在第一個剪輯結束後自動播放第二個和/或後續視頻。有任何想法嗎?Flowplayer播放列表僅播放第一個剪輯

$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' 
     } 
    } 
} 

);

回答

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服務器就可以提供視頻。

0

我不知道,但它好像在第二物體懸掛逗號可能導致這可能會阻止你想要什麼樣的錯誤:

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

實際上,這是爲了將播放列表部分與插件部分分開所必需的。刪除該逗號會導致整個腳本崩潰。 –

相關問題