<div dir="ltr">Thank you, Jean-Paul,<br><div><br></div><div>Is this PHP code?</div><div><br></div><div>I am quite a novice - how do I use it?</div><div><br></div><div>Thanks!</div><div><br></div><div>Amichai<br><br><div class="gmail_quote">
On Mon, Feb 14, 2011 at 10:39, Jean-Paul Saman <span dir="ltr"><<a href="mailto:jpsaman@gmail.com">jpsaman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Sun, Feb 13, 2011 at 6:23 PM, Amichai Rotman<br>
<<a href="mailto:amichai@penguincsc.co.il">amichai@penguincsc.co.il</a>> wrote:<br>
> Hello,<br>
> I am running VLC 1.1.7 under Ubuntu 10.10 on a NetTop machine based on the<br>
> Atom Z530 and 1Gb RAM.<br>
> The VLC client plays movies and strams without any problems, but when I try<br>
> to watch a stream inside Firefox, it freezes every few seconds.<br>
> I had the same problem with the client and after changing some settings<br>
> (namely - the cache values for File, HTTP,UDP and TCP) it got better.<br>
> How do i optimize the settings for the plugin? I understand that since<br>
> version 0.90, the plugin doesn't read the settings from the VLC rc file...<br>
<br>
</div></div>You can still use the MRL way of providing options on your playlist<br>
items. Here is a snippit code:<br>
<br>
function doGo(targetURL)<br>
{<br>
var vlc = getVLC("vlc");<br>
<br>
if( vlc )<br>
{<br>
vlc.playlist.items.clear();<br>
while( vlc.playlist.items.count > 1 )<br>
{<br>
// clear() may return before the playlist has actually been cleared<br>
// just wait for it to finish its job<br>
}<br>
var options = [":rtsp-tcp"];<br>
var itemId = vlc.playlist.add(targetURL,"",options);<br>
options = [];<br>
if( itemId != -1 )<br>
{<br>
// play MRL<br>
vlc.playlist.playItem(itemId);<br>
}<br>
else<br>
{<br>
alert("cannot play at the moment !");<br>
}<br>
doItemCount();<br>
}<br>
}<br>
<br>
The "var options = [":rtsp-tcp"]; " can hold an array of options. In<br>
your case you can add http-caching=<ms>, for instance like this:<br>
var options = [":rtsp-tcp",":http-caching=1200","udp-caching=1200"];<br>
<br>
<br>
Kind regards,<br>
<font color="#888888">Jean-Paul Saman<br>
______________________________________________________<br>
vlc mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc" target="_blank">http://mailman.videolan.org/listinfo/vlc</a><br>
</font></blockquote></div><br></div></div>