1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

video playback check-ins

This commit is contained in:
Techywarrior 2013-03-26 14:32:01 -07:00
parent ac31d33c0c
commit e33fba75d5
3 changed files with 89 additions and 54 deletions

View file

@ -491,7 +491,7 @@ _V_.ResolutionMenuItem = _V_.MenuItem.extend({
var startTimeTicks = newSrc.match(new RegExp("StartTimeTicks=[0-9]+","g"));
var start_time = startTimeTicks[0].replace("StartTimeTicks=","");
newSrc = newSrc.replace(new RegExp("StartTimeTicks=[0-9]+","g"),"StartTimeTicks="+Math.floor((start_time)+(10000000*current_time)));
newSrc = newSrc.replace(new RegExp("StartTimeTicks=[0-9]+","g"),"StartTimeTicks="+Math.floor(parseInt(start_time)+(10000000*current_time)));
}else {
newSrc += "&StartTimeTicks="+Math.floor(10000000*current_time);
}