加个唱片旋转,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
辛辛苦苦照着一路做下来到这儿就是在跟不上了,感觉漏听了一节课一样,对于初学者来说跳跃幅度那么大,坑比课程
2017-09-15
暂停时调整进度会继续播放解决方案。暂停时也能调整进度。
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