2016-04-27, 23:37
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:
I could tail the log file and look for patterns like the above, but it's not a very elegant solution.
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.