[vlc-devel] [Videolan-devel] [PATCH] Add Dynamic CSA update functionality

Kaloyan Kovachev kkovachev at varna.net
Wed Jun 11 18:02:01 CEST 2008

On Tue, 10 Jun 2008 14:59:38 +0300, Kaloyan Kovachev wrote
> ... will try to add command execution for the browsers instead of csa
I have successfully added varCommand method for the mozilla plugin and it is
possible to set the keys with the following HTML code:

KEY:<input id='KEY' value="ts-csa-ck"><BR>
CSA:<input id='CSA'><BR>
<script language="javascript" type="text/javascript">
var UseClient;

document.write("<EMBED id='xvlc2' name='xvlc2' type='application/x-vlc-plugin'
version='VideoLAN.VLCPlugin.2' autoplay='True' loop='yes' width='360'
height='288' target='udp://@' />\n");
UseClient = document.getElementById('xvlc2');

// -->
<input value="set CSA" onclick="javascript: UseClient.varCommand('ts',
document.getElementById('KEY').value, document.getElementById('CSA').value);
return false;" type="button">

The method does not rise an exception if the command succeeded, but any other
error (like command or object not found) will rise an exception.

I am attaching the 'Dynamic CSA' patch too as there were no changes required
and this should be the final version.

> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

More information about the vlc-devel mailing list