![]() |
Event fired on channel change? - 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) +---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136) +---- Thread: Event fired on channel change? (/showthread.php?tid=271593) |
Event fired on channel change? - jgivings - 2016-04-27 I'm writing an add-on that needs to perform some actions when a TV channel is changed. I could poll getPlayingFile() in Player but I'd rather listen for it. Is there any way to do this? I've tested all the on* methods in Player but they don't fire on channel change. I've noticed the following is logged when a channel is changed: Code: NOTICE: PVRManager - PerformChannelSwitch - switched to channel 'TEN Digital' I could tail the log file and look for patterns like the above, but it's not a very elegant solution. |