My script for now just open a dialog and show the video title.
I'm trying to also show the current video time.
This is what i have:
Code:
import xbmc, xbmcgui
#get actioncodes from keymap.xml
ACTION_PREVIOUS_MENU = 10
class MyClass(xbmcgui.WindowDialog):
def __init__(self):
self.strActionInfo = xbmcgui.ControlTextBox(10, 250, 800, 1080, 'font13', '0xFFFFFFFF')
self.addControl(self.strActionInfo)
self.strActionInfo.setText("You are now wathing: " + title)
mydisplay = MyClass()
mydisplay .doModal()
del mydisplayI've tried adding something like:
Code:
time = xbmc.Player().getTotalTime()what am i missing?

Search
Help