libcec option to 'Stop'
#1
Hi all,
I have a CEC TV and a Raspberry Pi, but I'm looking for a way to Stop playback on the Pi, when the TV is switched off.

I tried <power>Stop</power> option in remote.xml, but after enabling debug I can't see the Power command being passed through from the TV.

Ideally, I'd like an option from the libcec peripheral configuration to 'Stop Playback' alongside the Suspend/Shutdown/Ignore options that we have currently.
Where exactly does this fit - is it part of libcec or part of the Kodi integration?

Another option appears to be a polling script with cec-client watching TV state, and then stopping playback after it spots the TV is switched off.

Anyone else got any solutions? I don't like to leave Live TV or streams running if the TV is actually switched off.

Thanks,
Tom
Reply
#2
The code is here.
If you can build kodi, then it should be quite easy to change the action to stop playback.
Reply

Logout Mark Read Team Forum Stats Members Help
libcec option to 'Stop'0