Posts: 10
Joined: Jun 2020
Reputation:
3
plucka
Junior Member
Posts: 10
Hi,
Im trying to do a simple development that will simply
1. Startup automatically
2. Listen for Play, Pause, Resume Events
3. Hit a URL when it gets these events
Does anyone have a very simple structure of an addon that might help me gets started.
All the ones I've looked at are so complex that its hard to decipher.
Posts: 10
Joined: Jun 2020
Reputation:
3
plucka
Junior Member
Posts: 10
Thanks
Im almost there, that was very helpful.
The Stopped and Ended events never seem to fire however, any idea what im doing wrong?
class Kodi_Player(xbmc.Player):
def __init__( self, *args ):
pass
def onAVStarted(self):
debug('entering onAVStarted')
if self.isPlayingVideo():
xbmcgui.Dialog().ok('onAVStarted', 'Yes')
def onPlayBackPaused(self):
debug('entering onPlayBackPaused')
if self.isPlayingVideo():
xbmcgui.Dialog().ok('onPlayBackPaused', 'Yes')
def onPlayBackResumed(self):
debug('entering onPlayBackResumed')
if self.isPlayingVideo():
xbmcgui.Dialog().ok('onPlayBackResumed', 'Yes')
def onPlayBackEnded(self):
debug('entering onPlayBackEnded')
if self.isPlayingVideo():
xbmcgui.Dialog().ok('onPlayBackEnded', 'Yes')
def onPlayBackStopped(self):
debug('entering onPlayBackStopped')
if self.isPlayingVideo():
xbmcgui.Dialog().ok('onPlayBackStopped', 'Yes')
Posts: 63
Joined: Nov 2005
Reputation:
1
Any ideas on the best way to avoid multiple have multiple monitors going? A way to check if the plugin already has one open before starting another?