Kodi Community Forum
how to get the resume point when hit "resume from xx:xx:xx" - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: how to get the resume point when hit "resume from xx:xx:xx" (/showthread.php?tid=365092)



how to get the resume point when hit "resume from xx:xx:xx" - Rick987 - 2021-10-22

Image
How do i know when the user hit resume from or play from beginning option, and how do i get the resume point, when i call the play function?
python:

def PlayUrl(name, url):
    url = common.getFinalUrl(url)
    #xbmc.log('--- Playing "{0}". {1}'.format(name, url), 2)
    listitem = xbmcgui.ListItem(path=url)
    xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listitem)