jplayer how to display “buffering” text

后端 未结 1 944
长情又很酷
长情又很酷 2021-01-25 07:58

i have a question about jplayer.

this is my code:

$(\"#jquery_jplayer_1\").jPlayer({
        ready: function () {
            $(this).jPlayer(\"setMedia\         


        
相关标签:
1条回答
  • 2021-01-25 08:17
    $("#jquery_jplayer_1").bind($.jPlayer.event.progress, function (event){
       // If media loading is complete
       if (event.jPlayer.status.seekPercent === 100){        
         $(".jp-title .jp-title-loading").remove();
    
       // Otherwise, if media is still loading
       } else {
           if($(".jp-title .jp-title-loading").length == 0){
              $(".jp-title").prepend('<div class="jp-title-loading">Loading...</div>');
           }
        }
    });
    
    0 讨论(0)
提交回复
热议问题