Kodi Community Forum
playlist support - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+--- Thread: playlist support (/showthread.php?tid=55967)



playlist support - dragonmood - 2009-08-06

Hi,
I would like to create a playlist, seems like the code works but when it runs, it bufferize the first url and then it freeze (like it is busy downloading or something)

Code:
playlist = xbmc.PlayList( xbmc.PLAYLIST_VIDEO )
playlist.clear()

listitem1 = xbmcgui.ListItem('RTBF-1-3')
listitem1.setInfo('video', {'Title': 'RTBF-1-3h', 'Genre': 'News'})
playlist.add( URL[0], listitem1 )

listitem2 = xbmcgui.ListItem('RTBF-2-3')
listitem2.setInfo('video', {'Title': 'RTBF-2-3h', 'Genre': 'News'})
playlist.add( URL[1], listitem2 )

listitem3 = xbmcgui.ListItem('RTBF-3-3')
listitem3.setInfo('video', {'Title': 'RTBF-3-3h', 'Genre': 'News'})
playlist.add( URL[2], listitem3 )

xbmcPlayer = xbmc.Player().play(playlist)

Can you tell what I am missing?
Should I create a file playlist before playing it?

thanks,


- dragonmood - 2010-01-16

anyone an idea about the problem?