mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
I forgot a zero when handling the cache timer causing some lag for people with slower network corrections. Whoops
This commit is contained in:
parent
4d739ceee7
commit
63754e4694
@ -50,7 +50,7 @@ var MSTREAMPLAYER = (function () {
|
||||
// setCachedSong(mstreamModule.positionCache.val + 1);
|
||||
|
||||
clearTimeout(cacheTimer);
|
||||
cacheTimer = setTimeout(function(){ setCachedSong(mstreamModule.positionCache.val + 1) } , 3000);
|
||||
cacheTimer = setTimeout(function(){ setCachedSong(mstreamModule.positionCache.val + 1) } , 33000);
|
||||
}
|
||||
|
||||
return true;
|
||||
@ -164,7 +164,7 @@ var MSTREAMPLAYER = (function () {
|
||||
}else if( position === (mstreamModule.positionCache.val + 1) ){
|
||||
// setCachedSong(mstreamModule.positionCache.val + 1);
|
||||
clearTimeout(cacheTimer);
|
||||
cacheTimer = setTimeout(function(){ setCachedSong(mstreamModule.positionCache.val + 1) } , 3000);
|
||||
cacheTimer = setTimeout(function(){ setCachedSong(mstreamModule.positionCache.val + 1) } , 33000);
|
||||
}
|
||||
}
|
||||
|
||||
@ -359,7 +359,7 @@ var MSTREAMPLAYER = (function () {
|
||||
// The timer prevents excessive cachign when the user starts button mashing
|
||||
// setCachedSong(position + 1);
|
||||
clearTimeout(cacheTimer);
|
||||
cacheTimer = setTimeout(function(){ setCachedSong(position + 1) } , 3000);
|
||||
cacheTimer = setTimeout(function(){ setCachedSong(position + 1) } , 33000);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user