Playlist trouble with
#1
Sad 
I have a problem driving me nuts.
Background. In my plugin I display a long list of movies using
Code:
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=xurl, listitem=listitem, isFolder=folder)
. When selecting an item I have two modes (defined by a setting). Either to auto start playing a video or just list the available file.
When the auto mode is on, I display a cancelable progress dialog describing the background work and the strat the movie by
Code:
xbmc.executebuiltin("xbmc.PlayMedia("+raruri+")")
or
xbmc.Player( xbmc.PLAYER_CORE_DVDPLAYER ).play(raruri, item)
. In the background I'm adding the next movie part to the video playlist. However running playlist.getposition() gives -1 and selecting next in the UI just kicks me back to previously selected item. In someway xbmc treats the playing item outside or invalid in the playlist

In the other mode, when listing the available file (and adding item.setProperty("IsPlayable", "true") to the list item), playlist.getposition() gives 0 and I can select next and XBMC will play the next item in the playlist.

If I set item.setProperty("IsPlayable", "true") on the listed movies, xbmc hangs as soon as I try do display a progressDialog.

So, how should I get the auto mode to work?
Hope you understands what I'm trying to achieve..
Pneumatic | SABnzbd | XBMC that just works - openelec
Reply

Logout Mark Read Team Forum Stats Members Help
Playlist trouble with0