justpig 27 Posted May 20, 2015 Share Posted May 20, 2015 Hello I am not sure how to address this issue. Resume is always seen as a round number; that is to say if I stop the video at say 28:20 it resumes at 28:00 which is not a problem. But if I stop at say 28:45 it resumes at 29:00 which is a problem because it has progressed 15 seconds. I would appreciate any help with fixing this. Thanks. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted May 20, 2015 Share Posted May 20, 2015 This is Kodi native behavior and I don't know if we are able to create a more precise resume point. I'll look to see, but don't expect to be able to do much. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
xnappo 1593 Posted May 20, 2015 Share Posted May 20, 2015 We can set it back a second. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted May 20, 2015 Share Posted May 20, 2015 Really? Awesome! So I guess you can change this Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
xnappo 1593 Posted May 20, 2015 Share Posted May 20, 2015 (edited) Yep - that is why I marked it approved. I will take a look soonish. Edited May 20, 2015 by xnappo 2 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted May 20, 2015 Share Posted May 20, 2015 Ah, sorry I'm on my phone... I do not see tags or I'm blind? Hehe Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
xnappo 1593 Posted May 20, 2015 Share Posted May 20, 2015 Must not show on the phone version.. Link to comment Share on other sites More sharing options...
justpig 27 Posted July 2, 2015 Author Share Posted July 2, 2015 @ xnappoRegarding the issue of resuming the video from the exact point; is this still under review? Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 3, 2015 Share Posted July 3, 2015 (edited) I've added it to the trello board: https://trello.com/c/P4rhNN6q/106-precise-resume-time-instead-of-rounded I don't mind looking into it, if xnappo doesn't. I have a good idea of how to accomplish this now. Edited July 3, 2015 by Angelblue05 Link to comment Share on other sites More sharing options...
CBers 6766 Posted July 3, 2015 Share Posted July 3, 2015 I always thought I was being lucky always stopping on the minute So is this Kodi just not grabbing the correct resume point to update Emby server, or is it Kodi rounding up/down the information it gets back from Emby server? Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 3, 2015 Share Posted July 3, 2015 The resume point is set by Kodi. It rounds up the resume point by default....Emby always has the precise resume point. Link to comment Share on other sites More sharing options...
CBers 6766 Posted July 3, 2015 Share Posted July 3, 2015 Does a standard Kodi install, without the Emby Addon, do the same? Link to comment Share on other sites More sharing options...
CBers 6766 Posted July 3, 2015 Share Posted July 3, 2015 So this needs raising with the Kodi team rather than you guys ?? It's not an addon problem. Link to comment Share on other sites More sharing options...
CBers 6766 Posted July 3, 2015 Share Posted July 3, 2015 Has the issue been raised on the Kodi forums ?? Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 3, 2015 Share Posted July 3, 2015 Well, let me make 100% sure of this by testing right now. I will let you know CBers. Link to comment Share on other sites More sharing options...
xnappo 1593 Posted July 3, 2015 Share Posted July 3, 2015 In the old addon I simply subtracted a second from the resume time. This is pretty desireable and easy when we were using our own resume code. Since then we went back and forth on native vs custom resume and I never got around to this, and in fact don't know where we are, but will look. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 3, 2015 Share Posted July 3, 2015 (edited) It might just be the value we are setting? As long integer? During my quick testing, I somehow manage to get Resume from 28:12....instead of 28:00 but can't reproduce it now! lol @@xnappo, that's it! The resume point needs formatted as 00.0 (float is it?) instead of 00.000000. So turns out I was wrong, not Kodi after all which is a relief because it would make no sense as to why they would decide to do such a thing hah. Edited July 3, 2015 by Angelblue05 2 Link to comment Share on other sites More sharing options...
im85288 1493 Posted July 3, 2015 Share Posted July 3, 2015 Yup definitely not a kodi problem..glad you worked it out 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 3, 2015 Share Posted July 3, 2015 (edited) After digging even more, I've noticed two resume points are being created for the same content....it is really odd. I will try to wipe my database to see if it stops this...Edit: It still happens... I'll keep digging... Edited July 3, 2015 by Angelblue05 Link to comment Share on other sites More sharing options...
xnappo 1593 Posted July 3, 2015 Share Posted July 3, 2015 Why not just jump back a second anyway? Link to comment Share on other sites More sharing options...
ProphetSe7en 15 Posted July 3, 2015 Share Posted July 3, 2015 (edited) When I resume a video from a widget on home screen in Kodi it always jumps back 10 seconds from where I left off. It doesn't matter if I stopped the movie at 12:15 or 12:50, it always starts 10 seconds earlier. 12:05 and 12:40. If I start a video from movie library it behaves like you already described here. If I stop it at 12:15 it starts at 12:00, and if I stop it at 12:50 it starts at 13:00 Maybe that`s why it creates two different resume points, one for widget playback and one for playback from library? Edited July 3, 2015 by svortevik Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 3, 2015 Share Posted July 3, 2015 No, there's two resume points. One created by Kodi using the actual filename to store the resume point. The other is created by our add-on using the plugin path to store the resume point. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
xnappo 1593 Posted July 3, 2015 Share Posted July 3, 2015 So.. Again what I was going to do is subtract time here: if seekTime: PlaybackUtils().seekToPosition(int(seekTime)) else: seekTime = 0 This is really simple to me though, so I must be missing something?? Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted July 3, 2015 Share Posted July 3, 2015 @@xnappo Because the effect of seeking combined with Kodi resume looks pretty bad. Anyway, the answer is replacing this: resume = int(round(float(timeInfo.get("ResumeTime"))))*60 total = int(round(float(timeInfo.get("TotalTime"))))*60 with this: resume = float(timeInfo.get("ResumeTime"))*60 total = float(timeInfo.get("TotalTime"))*60 The int round cuts off the seconds. I've also discovered some other stuff, but still need to check it out. 2 Link to comment Share on other sites More sharing options...
im85288 1493 Posted July 3, 2015 Share Posted July 3, 2015 Nice spot Link to comment Share on other sites More sharing options...
Recommended Posts