Ignore:
Timestamp:
06/27/12 09:52:46 (8 years ago)
Author:
kent1
Message:

Les images du slider de volume horizontal passent en sprite

On utilise l'équivalent de #PRODUIRE dans insert_head sur les js

On répare un mini bug sur le lecteur html5 sur webkit

Location:
plugins_spip/html5/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • plugins_spip/html5/trunk/css/html5_controls.css

    r6591 r6722  
    408408        height: 76px;
    409409        width: 14px;
    410         background:url(images/back_slider_volume_vertical_empty.png) repeat-y 0 5px transparent;
     410        background:url(images/back_slider_volume_vertical_empty.png) repeat-y 0 16px transparent;
    411411        margin:3px 3px 0 3px;
    412412        border:none;
     
    427427.media_wrapper .volume_slider_container.horizontal .ui-slider-horizontal{
    428428        width: 76px;
    429         height: 21px;
    430         background:url(images/back_slider_volume_empty.png) repeat-x 0 5px transparent;
     429        height: 15px;
     430        background:url(images/back_slider_volume_sprite.png) repeat-x 0 -19px transparent;
    431431        float:right;
    432         margin:1px 2px;
     432        margin:6px 2px;
    433433        display:block;
    434434        border:none;
     
    437437.media_wrapper .volume_slider_container .ui-slider-horizontal .ui-slider-range{
    438438        height:100%;
    439         background:transparent url(images/back_slider_volume_full.png) repeat-x 0 5px;
     439        background:transparent url(images/back_slider_volume_sprite.png) repeat-x 0 0px;
    440440        position:relative;
    441441        display:block;
     
    443443
    444444.media_wrapper .volume_slider_container .ui-slider-horizontal.ui-disabled .ui-slider-range{
    445         background:transparent url(images/back_slider_volume_disabled.png) repeat-x 0 5px;
     445        background:transparent url(images/back_slider_volume_sprite.png) repeat-x 0 -36px;
    446446}
    447447
  • plugins_spip/html5/trunk/javascript/mediaspip_player.js

    r6615 r6722  
    479479                                elapsed_time.text(mediaspip_second_to_time(id.currentTime));
    480480                                media.mediaspip_resize_controls();
    481                                 if((typeof(id.buffered) != 'undefined') && (typeof(id.buffered.end(0)) == 'number')){
     481                                if((id.networkState == 2) && (typeof(id.buffered) != 'undefined') && (typeof(id.buffered.end(0)) == 'number') && id.buffered.end(0) > 0){
    482482                                        var percent_load = mediaspip_anything_to_percent(id.buffered.end(0),id.duration);
    483483                                        control.find('.progress_buffered').css('width',percent_load+'%');
  • plugins_spip/html5/trunk/mediaspip_player_pipelines.php

    r6597 r6722  
    2323 */function mediaspip_player_insert_head($flux){
    2424        $flux .= '
    25 <script src="'.generer_url_public('mediaspip_medias_init.js').'" type="text/javascript"></script>
    26 <script src="'.generer_url_public('mediaspip_player_lang.js').'" type="text/javascript"></script>
     25<script src="'.produire_fond_statique('mediaspip_medias_init.js').'" type="text/javascript"></script>
     26<script src="'.produire_fond_statique('mediaspip_player_lang.js').'" type="text/javascript"></script>
    2727';
    2828        return $flux;
Note: See TracChangeset for help on using the changeset viewer.