Kodi Community Forum

Full Version: xbmc.playlist not playing the first part
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, 
Im still learning to code.
Im stuck with this, the playlist playing continously, but its always start with the 2nd part, sometimes, it will play the 1st part for just a secs. then jump to 2nd part

Thanks


Code:

pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
pl.clear()

for mylist in source:
       pl.add(mylist,xbmcgui.ListItem(),index=-1)
xbmc.Player().play(pl,windowed=False, startpos= -1)