listitem.setProperty impacting listitem.setInfo for music
#2
I've developed a workaround for this issue.  I added a context menu item if the bookmark for a music file is greater than 0 (i.e. bookmark is set).  This is equivalent of setting the ResumeTime.  Then if the user accesses the context menu and clicks on playing the music file with the bookmark value (i.e. Play From 00:03:00 etc.)  I then use the xbmc.Player().play(item=itemurl, listitem=lim) command to play the item and then use the bookmark value to seek with xbmc.Player().seekTime(mbookmark).  It works fine.  I had to set a short delay after starting the player before issuing the seek command otherwise seek would fail saying the player wasn't playing.  I now check to ensure the player is playing before doing the seek. 

The only downside of this approach is that since I am not setting the ResumeTIme (because it wipes out the display information) I don't see the icon letting me know there is a bookmark in the listitem display.  I am hoping one of the Kodi developers can look at why the li.setProperty command is wiping out the li.setInfo display for music files so long term I can avoid this workaround.  It works fine for video files.  For now this workaround is fine.


Jeff
Reply


Messages In This Thread
RE: listitem.setProperty impacting listitem.setInfo for music - by jbinkley60 - 2021-04-17, 22:50


Logout Mark Read Team Forum Stats Members Help
listitem.setProperty impacting listitem.setInfo for music0
This forum uses Lukasz Tkacz MyBB addons.