[Ilugc] javascript - calling c functions

  • From: durairaj.p@xxxxxxxxx (durai raj)
  • Date: Wed Dec 1 12:34:12 2004

Hi all,
I am posting this query to this forum, because i am not able to get a more
appropriate place, Please redirect me if you find a correct place.

I am working on Video On Demand appliation, in which the pages are designed
using javascript. This script is calling some APIs which is available in windows
mediaplayer 9 services.

For example,

this.pl = document.getElementById("pcMediaPlayer");
this.pl.play();

Now I want to port the java script APIs to my custom linux platform. I am
having certain APIs which are in "c" language, which can play, pause
or stop the media. Can I call these APIs from a javascript. I think,
since javascipt is executed
in the client side, any native functions cannot be caled easily. What is the
alternate way of doing it.

I never worked on any scripting language before :-).

regards
durai

Other related posts: