2014-01-23 59 views
0

我想更改播放器中的播放圖標,因爲當我的視頻加載時,播放按鈕顯示自動播放的bcoz:false和背景爲白色,這就是爲什麼播放按鈕無法正常顯示。這裏是我的代碼:更改播放器中的播放圖標

<a href="http://localhost/project/videos/ydraw_vip_video.mp4" id="player"></a> 
<script src="http://localhost/project/js/flowplayer/flowplayer-3.2.5.js"></script> 
<script> 
flowplayer("player", "http://localhost/project/js/flowplayer-3.2.5.swf", { 
    // a clip object 
    clip: {   
     autoPlay: false, 
     autoBuffering: true, 
    }, 
    play: { 
     url: 'http://localhost/project/img/play_button_flowplayer.png', 
     width: 84, 
     height: 84 
    } 
}); 
</script> 

請幫我

回答

2

這是爲了顯示自己的播放圖標的正確方法。圖標可以是JPG,PNGSWF

從文檔的Flowplayer採取

// default settings for the play button 
play: { 
    // relative path to the play button, this can be a JPG, PNG or SWF 
    // file. NOTE: the button can only be changed in the commercial 
    // versions 
    url: 'play.swf', 

    // all display properties, except the z-index, can be modified in 
    // all versions 
    opacity: 0.8, 

    // label text; by default there is no text 
    label: null, 

    // label text at end of video clip 
    replayLabel: 'Play again', 

    // progress indicator - this is shown while video is being 
    // loaded. it is always in the same place as the play button. 

    // how fast progress indicator fades out after video is loaded 
    fadeSpeed: 500, 

    // how fast buffering animation rotates 
    rotateSpeed: 50 
} 

欲瞭解更多詳細信息,請參閱的Flowplayer branding docs