2016-01-09, 19:49
Hi All,
i am developing a plug-in to watch a list of video streams.
Everything works well if i select single stream to play,but if i create a playlist with the XBMC.player and then use PAGE_DOWN AND PAGE_UP to move to the next or previous stream it is not working, in details if i click PAGE_UP i can go to the next stream but if i click PAGE_DOWN the seeking is actived instead of going to the previous item in the playlist.
Can someone help me? Here is the code used to create the playlist
playlist=xbmc.PlayList(xbmc.PLAYER_CORE_DVDPLAYER); playlist.clear();
listitem1 = xbmcgui.ListItem('Item1',thumbnailImage='XXXXXXXX')
url = 'MY_URL1'
playlist.add(url,listitem1);
listitem2 = xbmcgui.ListItem('Item2',thumbnailImage='XXXXXXX')
url = 'MY_URL2'
playlist.add(url,listitem2);
player_type=xbmc.PLAYER_CORE_DVDPLAYER; xbmcPlayer=xbmc.Player(player_type); xbmcPlayer.play(playlist)
i am developing a plug-in to watch a list of video streams.
Everything works well if i select single stream to play,but if i create a playlist with the XBMC.player and then use PAGE_DOWN AND PAGE_UP to move to the next or previous stream it is not working, in details if i click PAGE_UP i can go to the next stream but if i click PAGE_DOWN the seeking is actived instead of going to the previous item in the playlist.
Can someone help me? Here is the code used to create the playlist
playlist=xbmc.PlayList(xbmc.PLAYER_CORE_DVDPLAYER); playlist.clear();
listitem1 = xbmcgui.ListItem('Item1',thumbnailImage='XXXXXXXX')
url = 'MY_URL1'
playlist.add(url,listitem1);
listitem2 = xbmcgui.ListItem('Item2',thumbnailImage='XXXXXXX')
url = 'MY_URL2'
playlist.add(url,listitem2);
player_type=xbmc.PLAYER_CORE_DVDPLAYER; xbmcPlayer=xbmc.Player(player_type); xbmcPlayer.play(playlist)