[mythtv-users] HDMI keep alive, maybe via sending silent audio?
Hika van den Hoven
hikavdh at gmail.com
Mon May 16 14:00:57 UTC 2016
Hoi John,
Monday, May 16, 2016, 3:41:27 PM, you wrote:
> On 16/05/2016 14:25, Hika van den Hoven wrote:
>
>
> I'd still rather find a software fix. A loop like "while [
> true ] ; do aplay -q silent.wav ; done" is something I could
> try. If it works, I would make the wav file a few seconds long,
> and add a "sleep 120" or similar in there, so that it's not
> using too much CPU. What I don't know is whether this will
> nicely mix with Myth's output.
>
> John
>
>
> You could add in an api call to check if anything is already played on
> the frontend.
>
> Thanks Hika. Can anyone give me a simple example on how to do
> that? Would it return True that something was currently playing,
> if in fact playback was paused? If so, that would be a problem.
>
> John
>
You should look at this frontend api call:
https://www.mythtv.org/wiki/Frontend_Service#GetStatus
There is a state field but I can not find all it's possible values. I
see idle and WatchingPreRecorded so far.
Else you could look at changes in playedtime
Tot mails,
Hika mailto:hikavdh at gmail.com
"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"
De lerende Mens
More information about the mythtv-users
mailing list