加個唱片旋轉,pause同時暫停
#player-cover
{
position:relative;
animation-name:myfirst;
animation-duration:5s;
animation-timing-function:linear;
animation-delay:2s;
animation-iteration-count:infinite;
animation-play-state:running;
}
0% {left:0px; top:0px;}
25% {-webkit-transform: rotate(90deg);}
。。。
#player-cover
{
position:relative;
animation-name:myfirst;
animation-duration:5s;
animation-timing-function:linear;
animation-delay:2s;
animation-iteration-count:infinite;
animation-play-state:running;
}
0% {left:0px; top:0px;}
25% {-webkit-transform: rotate(90deg);}
。。。
2017-09-20
只需要
$('#player').jPlayer( "playHead", progress*100 );
就夠了
評論不能改動,有沒有大佬能說一下為什么
$('#player').jPlayer( "playHead", progress*100 );
就夠了
評論不能改動,有沒有大佬能說一下為什么
2017-09-15
$('#player').jPlayer( "playHead", progress*100 );
this.progress = progress
this.progress = progress
2017-09-15
辛辛苦苦照著一路做下來到這兒就是在跟不上了,感覺漏聽了一節(jié)課一樣,對于初學者來說跳躍幅度那么大,坑比課程
2017-09-15
暫停時調整進度會繼續(xù)播放解決方案。暫停時也能調整進度。
progressChangeHandler(progress){
if(this.state.isPlay){
$('#player').jPlayer('play', duration * progress); //play調用了timeupdate,導致state更改,ui更改
}else{
$('#player').jPlayer('play', duration * progress);
$('#player').jPlayer('pause');
}
}
progressChangeHandler(progress){
if(this.state.isPlay){
$('#player').jPlayer('play', duration * progress); //play調用了timeupdate,導致state更改,ui更改
}else{
$('#player').jPlayer('play', duration * progress);
$('#player').jPlayer('pause');
}
}
2017-09-13