Hoe to use the xbmc.player events
#1
Question 
Hy,
i want to run a function after starting the player and after stopping the player. I tried with

def onPlayBackStarted():
print 'startet'

but nothing happens in the log

Can someone tell me how i can ceck if a file is playing and how i can get info about it like id and media (movie, audio, tvshow)?

Thx for help or tips
Reply
#2
Some docs on the case:
http://passion-xbmc.org/gros_fichiers/XB...tml#Player

You might want to look into script.watchlist/ how it handles player events
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
zpanderson did some cool work for the upcoming Icefilms release

Search thru the default.py for the class MyPlayer

https://github.com/Eldorados/icefilms-addon
Reply
#4
That was great but does not helped me, but i made it on other way.

I used the isPlaying() in a loop to show if a file is playing

Can someone tell me how i can access what season and what episode the playing file has if it is a episode? Like it is season 5 and episode 6.
Reply

Logout Mark Read Team Forum Stats Members Help
Hoe to use the xbmc.player events0