Playing Playlist of videos not working
#1
I am using playlist to play all video I found.. But it's not working. Only playing individual video is working

I am using video URLs like plugin://plugin.video.youtube/?action=play_video&videoid=p5CRTjjVinQ


This function used to play video

def PlayVideo(url):
print '************************************* in PlayVideo'
print "url is %s" % url
try:
addon.resolve_url(url)
#xbmcPlayer = xbmc.Player()
#xbmcPlayer.play(url)
except:
traceback.print_exc()
print 'error while trying to PlayVideo'



This function is used to play video list

def PlayVideoList(urlList,listitem):
print '************************************* in Play Video List '
#urlList = unicodedata.normalize('NFKD', urlList).encode('ascii','ignore')
urlList = map(str, urlList[1:-1].split(','))
#print "URLList is "+urlList
playlist.clear()
liz=xbmcgui.ListItem("title", iconImage="DefaultFolder.png")
liz.setInfo( type="Video", infoLabels={ "Title": "title" } )
for url in urlList:
#url = unicodedata.normalize('NFKD', url).encode('ascii','ignore')
url = url.replace('\\r', '').replace("u'", "").replace("'", "").strip()
print "URL:"+url
playlist.add(url=url,listitem=liz)
xbmcPlayer = xbmc.Player()
xbmcPlayer.play(playlist)
if not xbmcPlayer.isPlayingVideo():
d = xbmcgui.Dialog()
d.ok('VIDEO QUEUE EMPTY', 'The XBMC video queue is empty.','Add more links to video queue.')

Full Debug Log
http://pastebin.com/WRp8qq3p
Reply

Logout Mark Read Team Forum Stats Members Help
Playing Playlist of videos not working0