Kodi Community Forum
Add item to context menu and/or fire during playback? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Add item to context menu and/or fire during playback? (/showthread.php?tid=102624)



Add item to context menu and/or fire during playback? - ZebZ - 2011-05-31

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.


- divingmule - 2011-06-01

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.