2014-01-23 3 views
0

Я хочу изменить значок воспроизведения в flowplayer, потому что, когда мое видео загружается, нажмите кнопку show bcoz автовоспроизведения: false и фон белый, поэтому кнопка игры не отображается правильно. Вот мой код:Изменить значок воспроизведения в flowplayer

<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, PNG или SWF.

Взятые из Flowplayer Docs

// 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

Смежные вопросы