<div dir="ltr">omxplayer uses a direct video output (it don't create a X window), so, your program still have focus. See the command line options for more information... </div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-07-23 5:59 GMT-03:00 Dennis Poon <span dir="ltr"><<a href="mailto:dennis@avidsoft.com.hk" target="_blank">dennis@avidsoft.com.hk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="">
<br>
<br>
Fabio Luis Girardi wrote:
<blockquote type="cite">
<p dir="ltr">Start omxplayer with tprocess and use pipes to do
this</p>
<div class="gmail_quote">Em 22/07/2014 08:30, "Dennis Poon" <<a href="mailto:dennis@avidsoft.com.hk" target="_blank">dennis@avidsoft.com.hk</a>>
escreveu:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
what library (e.g. ffmpeg) should I call?<br>
any example e.g. of it?<br>
<br>
Actually, the target platform is Raspberry Pi (raspbian OS).
It comes with a video player that does it (omxplayer) but I
don't know how to interface with it apart from launching it.<br>
After launch, I don't know how to pause it from my free pascal
program.<br>
<br>
The goal is to have my program play an advertisement video as
a screen saver. When someone touches the mouse or keyboard,
the video pause and return to my program.<br>
<br>
Thanks in advance.</blockquote>
</div>
</blockquote></div>
Thanks.<br>
But how do I detect that any mouse or keyboard changes by user now
that the omxplayer is fullscreen has the focus?<br>
I need to detect user interaction to pause the omxplayer and put my
program back to the front.<br>
The question in other words is how does a non-front program detect
user inputs?<br>
<br>
Thanks.<span class="HOEnZb"><font color="#888888"><br>
<br>
Dennis<br>
</font></span></div>
<br>_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>
The best regards,<br><br>Fabio Luis Girardi<br>PascalSCADA Project<br><a href="http://sourceforge.net/projects/pascalscada" target="_blank">http://sourceforge.net/projects/pascalscada</a><br><a href="http://www.pascalscada.com" target="_blank">http://www.pascalscada.com</a>
</div>