Move slider as audio plays
This commit is contained in:
parent
6945923ee0
commit
c6de7cd9eb
|
@ -62,9 +62,10 @@ div.slider.slider-horizontal {
|
||||||
width: 100%
|
width: 100%
|
||||||
}
|
}
|
||||||
#playerdrop > div.timeshow {
|
#playerdrop > div.timeshow {
|
||||||
width: 15%
|
width: 10%;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
#playerdrop > div.time {
|
#playerdrop > div.time {
|
||||||
width: 65%;
|
width: 70%;
|
||||||
padding: 5px 8px 5px 20px;
|
padding: 5px 8px 5px 20px;
|
||||||
}
|
}
|
|
@ -161,8 +161,8 @@ var behaviors = {
|
||||||
play:function() {
|
play:function() {
|
||||||
|
|
||||||
},
|
},
|
||||||
timeupdate:function() {
|
timeupdate:function(event) {
|
||||||
console.log("Time update")
|
$(".time-holder .player-slider").slider('setValue', event.jPlayer.status.currentTime)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue