Terrible player bug fix
This commit is contained in:
parent
32b81e2a72
commit
c2042802d4
|
@ -68,7 +68,7 @@ var Audio = {
|
|||
|
||||
startListener: function() {
|
||||
Audio.killListener();
|
||||
Audio.tid = window.setTimeout(Audio.startListener, 100);
|
||||
Audio.tid = window.setTimeout(Audio.startListener, 300);
|
||||
Player.updateUI(
|
||||
Audio.getLoadedPercent(),
|
||||
Audio.getPlayedPercent()
|
||||
|
|
|
@ -22,7 +22,7 @@ var Player = {
|
|||
$('.playlist-tracks').sortable();
|
||||
},
|
||||
|
||||
setTrack: function(id) {
|
||||
setTrack: function(id) {console.log(1);
|
||||
var $obj = $('#i'+ id);
|
||||
var query = $obj.find('.title').text();
|
||||
var length = $obj.find('.duration').text();
|
||||
|
@ -31,7 +31,6 @@ var Player = {
|
|||
$('#player .now-playing').html(query);
|
||||
$('.playlist-tracks li').removeClass('now');
|
||||
$obj.addClass('now');
|
||||
Audio.startListener();
|
||||
$('#player .loaded, #player .played').width(0);
|
||||
|
||||
loadTracksData(tmp[0], tmp[1], length, Player.playSource);
|
||||
|
@ -78,7 +77,6 @@ var Player = {
|
|||
|
||||
reset: function() {
|
||||
Audio.pause();
|
||||
Audio.killListener();
|
||||
$('#player .loaded, #player .played').width(0);
|
||||
$('#player .now-playing').text('Select track');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue