Hi Luzyano,<br>
<br>
In C++, try following code...it will initiate vlc player and close vlc
player after some time. You need to update request URL as per your
requirements...<br>
<br>
SHELLEXECUTEINFO *lpExecInfo = new SHELLEXECUTEINFO();<br>
memset(lpExecInfo, '\0', sizeof(SHELLEXECUTEINFO));<br>
lpExecInfo->cbSize = sizeof(SHELLEXECUTEINFO);<br>
lpExecInfo->dwHotKey = 0;<br>
lpExecInfo->fMask
= SEE_MASK_FLAG_NO_UI |
SEE_MASK_NOCLOSEPROCESS;<br>
lpExecInfo->lpFile
= aszVLCInstallPath; //Complete
path where vlc.exe resides<br>
lpExecInfo->lpParameters = aszRequestURL; //Request URL <br>
lpExecInfo->lpVerb = "Open";<br>
lpExecInfo->nShow = 0; //to hide vlc player UI<br>
<br>
//Execute Shell<br>
ShellExecuteEx(lpExecInfo);<br>
<br>
Sleep(nTimeOut); //time you want to wait<br>
<br>
TerminateProcess(lpExecInfo->hProcess, 0);<br>
CloseHandle(lpExecInfo->hProcess);<br>
<br>
Here Request URL i gave was rtsp://192.168.xxx.yyy/Filename.wav , you can include all possible options in this URL<br>
<br>
After this when you want to kill vlc player, just use same lpExecInfo structure's handle to process<br>
<br>
There is one more solution for this. You can embedd axvlc activex
control in your vc or VB application. there you will have all the
control on vlc and control to start stop and do everything with vlc.<br>
<br>
Regards,<br>
Nikhil Agrawal<br><br><div><span class="gmail_quote">On 3/5/08, <b class="gmail_sendername">Ke Tao</b> <<a href="mailto:kotao78@gmail.com">kotao78@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="ZH-CN">
<div>
<div>
<p><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-US">HI Silux,</span></font><font color="navy"><span style="color: navy;" lang="EN-US"></span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;" lang="EN-US"> </span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;" lang="EN-US">Check ./vlc –longhelp.</span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;" lang="EN-US"> </span></font></p>
<p><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-US">If you have any queries ,please
feel free to contact me.</span></font><font color="navy"><span style="color: navy;" lang="EN-US"></span></font></p>
<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;" lang="EN-US"> </span></font></p>
<p><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-US">Best Regards,</span></font><font color="navy"><span style="color: navy;" lang="EN-US"></span></font></p>
<p><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-US">Ke Tao</span></font><font color="navy"><span style="color: navy;" lang="EN-US"></span></font></p>
<p><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-US">E-mail:<a href="mailto:ke.tao78@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ke.tao78@gmail.com</a></span></font><font color="navy"><span style="color: navy;" lang="EN-US"></span></font></p>
<p><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-US">Mobile</span></font><font color="navy" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-US">:13085800364</span></font><span lang="EN-US"></span></p>
</div>
<div>
<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">
<hr align="center" size="2" width="100%">
</span></font></div>
<p><b><font face="宋体" size="2"><span style="font-size: 10pt; font-family: SimSun; font-weight: bold;">发件人<span lang="EN-US">:</span></span></font></b><font face="宋体" size="2"><span style="font-size: 10pt; font-family: SimSun;" lang="EN-US">
<a href="mailto:vlc-bounces@videolan.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vlc-bounces@videolan.org</a> [mailto:<a href="mailto:vlc-bounces@videolan.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vlc-bounces@videolan.org</a>] </span></font><b><font face="宋体" size="2"><span style="font-size: 10pt; font-family: SimSun; font-weight: bold;">代表 </span></font></b><font face="宋体" size="2"><span style="font-size: 10pt; font-family: SimSun;" lang="EN-US">luzyano silux<br>
</span></font><b><font face="宋体" size="2"><span style="font-size: 10pt; font-family: SimSun; font-weight: bold;">发送时间<span lang="EN-US">:</span></span></font></b><font face="宋体" size="2"><span style="font-size: 10pt; font-family: SimSun;" lang="EN-US"> 2008</span></font><font face="宋体" size="2"><span style="font-size: 10pt; font-family: SimSun;">年<span lang="EN-US">3</span>月<span lang="EN-US">5</span>日<span lang="EN-US">
9:57<br>
</span><b><span style="font-weight: bold;">收件人<span lang="EN-US">:</span></span></b><span lang="EN-US"> vlc list<br>
</span><b><span style="font-weight: bold;">主题<span lang="EN-US">:</span></span></b><span lang="EN-US"> [vlc] VLC script</span></span></font><span lang="EN-US"></span></p>
</div><div><span class="e" id="q_1187f90d06645acc_1">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">Hi All,</span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">Does anybody has a script to start, stop and restart
vlc as a daemon?</span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">For example:</span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">#vlc_script {start | stop | restart}</span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">The idea is to avoid the manual process, i mean to
kill vlc and then start it again, this should be done automatically.</span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">Thanks and regards,</span></font></p>
</div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">Silux</span></font></p>
</div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">
</span></font></p>
<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">
<hr align="center" size="1" width="100%">
</span></font></div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US"><br>
</span></font><font face="Verdana" size="1"><span style="font-size: 7.5pt; font-family: Verdana;" lang="EN-US">¡Capacidad ilimitada de almacenamiento en tu correo!<br>
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:<br>
<a href="http://correo.yahoo.com.mx/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://correo.yahoo.com.mx/</a></span></font><span lang="EN-US"></span></p>
</span></div></div>
</div>
<br>______________________________________________________<br>
vlc mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mailman.videolan.org/listinfo/vlc" target="_blank">http://mailman.videolan.org/listinfo/vlc</a><br>
<br></blockquote></div><br>