Posts: 15
Joined: May 2015
Reputation:
0
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?
Posts: 1,607
Joined: Apr 2016
2017-01-28, 13:14
(This post was last modified: 2017-01-28, 13:17 by User 325245.)
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.