2015-03-22, 23:10
Hi,
I'm writing a small service addon which needs to get notification when playback state changes.
Everything is generally working fine, with one exception: I fail to find a way how to detect switched PVR channels.
I've subclassed xbmc.Player and do get proper notifications when I switch files, i.e. onPlayBackStarted() is called everytime a new file starts playing.
However, this is not the case when I'm playing back Live TV (via the VNSI plugin in my case). onPlayBackStarted() is called the first time I start playing Live TV, but not upon a channel switch. It seems that actually none of the notification methods in Player is called on a channel switch. If I stop and restart Live TV playback, I get the expected notifications onPlayBackStopped and onPlayBackStarted.
Am I overlooking something?
Best Regards,
Olli
Version: Kodi (14.2-RC1 Git:20150311-e7ba06f). Platform: Windows NT x86 32-bit
Full log from test run: http://pastebin.com/Mn2jvGiQ
I'm writing a small service addon which needs to get notification when playback state changes.
Everything is generally working fine, with one exception: I fail to find a way how to detect switched PVR channels.
I've subclassed xbmc.Player and do get proper notifications when I switch files, i.e. onPlayBackStarted() is called everytime a new file starts playing.
However, this is not the case when I'm playing back Live TV (via the VNSI plugin in my case). onPlayBackStarted() is called the first time I start playing Live TV, but not upon a channel switch. It seems that actually none of the notification methods in Player is called on a channel switch. If I stop and restart Live TV playback, I get the expected notifications onPlayBackStopped and onPlayBackStarted.
Am I overlooking something?
Best Regards,
Olli
Version: Kodi (14.2-RC1 Git:20150311-e7ba06f). Platform: Windows NT x86 32-bit
Full log from test run: http://pastebin.com/Mn2jvGiQ