Kodi Community Forum

Full Version: Add item to context menu and/or fire during playback?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to programmatically add a menu item to the context "C" menu for a movie, tv show, or tv episode? Or is this something that's not exposed or only available if I were making a complete skin?

Also, can anyone point me to an example that shows how to fire a function whenever a movie or tv episode is played? It looks like I need to subclass the Player.onPlaybackStarted() event, but I'm not sure exactly how to do that.

Any help would be greatly appreciated.
If you take a look at my Last.fm picture add-on's, there are examples of both. My not be exactly what your looking for but should help. Both are in the offical repo.