Jump to content

Resume


justpig

Recommended Posts

justpig

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

Angelblue05

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

Angelblue05

Really? Awesome! So I guess you can change this :)

 

 

Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

xnappo

Yep - that is why I marked it approved.  I will take a look soonish.

Edited by xnappo
  • Like 2
Link to comment
Share on other sites

Angelblue05

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

  • 1 month later...
justpig
@ xnappo

Regarding the issue of resuming the video from the exact point; is this still under review?

Link to comment
Share on other sites

CBers

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

Angelblue05

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

CBers

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

Angelblue05

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

xnappo

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

Angelblue05

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 by Angelblue05
  • Like 2
Link to comment
Share on other sites

im85288

Yup definitely not a kodi problem..glad you worked it out :)

  • Like 1
Link to comment
Share on other sites

Angelblue05

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...

 

55966f6779ea5_bookmark.jpg55966f5548b23_resume1.jpg

55966f5dafa17_resume2.jpg

Edited by Angelblue05
Link to comment
Share on other sites

ProphetSe7en

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 by svortevik
Link to comment
Share on other sites

Angelblue05

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

xnappo

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

Angelblue05

@@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.

  • Like 2
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...