Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playlist information #60

Closed
bigretromike opened this issue Feb 2, 2016 · 4 comments
Closed

Playlist information #60

bigretromike opened this issue Feb 2, 2016 · 4 comments
Labels
Enhancement Improving on what's there Notes Notes for devs to keep ideas straight and/or remembered

Comments

@bigretromike
Copy link
Owner

playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
    playlist.clear()
    url = "http://ip:port/videolocal/id/file.mkv"
    listitem2 = xbmcgui.ListItem('tytul 01', iconImage="DefaultFolder.png", thumbnailImage="http://" + addon.getSetting("ipaddress") + ":" + addon.getSetting("port") + "/jmmserverkodi/GetSupportImage/plex_others.png")
    listitem2.setInfo('video', {'Title': 'Title 01'})
    listitem2.setProperty('IsPlayable', 'true')
    playlist.add( url, listitem2 )
    listitem2 = xbmcgui.ListItem('tytul 02', iconImage="DefaultFolder.png", thumbnailImage="http://" + addon.getSetting("ipaddress") + ":" + addon.getSetting("port") + "/jmmserverkodi/GetSupportImage/plex_others.png")
    listitem2.setInfo('video', {'Title': 'Title 02'})
    listitem2.setProperty('IsPlayable', 'true')
    playlist.add( url, listitem2 )
    listitem2 = xbmcgui.ListItem('tytul 03', iconImage="DefaultFolder.png", thumbnailImage="http://" + addon.getSetting("ipaddress") + ":" + addon.getSetting("port") + "/jmmserverkodi/GetSupportImage/plex_others.png")
    listitem2.setInfo('video', {'Title': 'Title 03'})
    listitem2.setProperty('IsPlayable', 'true')
    playlist.add( url, listitem2 )

Playlist is seperated object it dosn't work in background.
Menu from left > Current playlist > Success populating playlist

Problems:
Other support for items in playlist than the one in view

@bigretromike bigretromike added the Notes Notes for devs to keep ideas straight and/or remembered label Feb 2, 2016
@da3dsoul
Copy link
Contributor

I saw something about this when I was looking for getting a setting

@da3dsoul
Copy link
Contributor

@bigretromike
Copy link
Owner Author

to not duplicate amount of time to populate new object which is playlist we could instead of making directore when build_episodes make playlist that would navigate same as directory (? this one need verification so we could watch one after another episode instead of one by one) or make setting to make directories or playlist instead.

@bigretromike bigretromike added this to the v2.2.0 - Future awaits milestone Aug 17, 2016
@bigretromike bigretromike added the Enhancement Improving on what's there label Aug 17, 2016
@bigretromike
Copy link
Owner Author

bigretromike commented Nov 1, 2016

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

playlist.add(...
playlist.add(...

xbmc.Player().play(playlist)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improving on what's there Notes Notes for devs to keep ideas straight and/or remembered
Projects
None yet
Development

No branches or pull requests

2 participants