Know the name of previous window or plugin during playback?
#1
Is there a way to know which plugin launched the video -while video is playing- ?
Or somwhow know the previous window?

Because I was wondering how can kodi (or skin) know when you hit the stop, what to show?
somehow it should be stored somewhere, right?
Reply
#2
To the best of my knowlegde, you can only track Addons (when addon is opened) and use the last one.

Something like:

Code:
class Navigation():
    def __init__(self):
        pass

    # Check if a user has navigated to a Plugin
    def checkPlugins(self):
        navPath = xbmc.getInfoLabel("Container.FolderPath")[:9]

        if navPath == 'plugin://':
            pluginName = xbmc.getInfoLabel("Container.FolderName")
            return pluginName
        else:
            return ''

navPosition = Navigation()
strPluginName = str(navPosition.checkPlugins())

Ofcourse, "strPluginName = str(navPosition.checkPlugins())" needs to be in a loop in order to update.
Reply

Logout Mark Read Team Forum Stats Members Help
Know the name of previous window or plugin during playback?0