[vlc] Re: Needing help with vlc, mozilla, and javascript
Travis Johnson
Travis.Johnson at nwea.org
Wed Nov 2 23:45:11 CET 2005
No worries... we all get busy eh :)
I think it may be too late. I figured out how to circumvent the problem
I was initially having (by using the API functions rather changing the
src/target properties.) I used a Javascript function that would always
call clear_playlist, and then add the new clip to be played.
However, we noticed that if a user rapidly clicked an icon that would
play an audio clip, it caused VLC (and the rendering engine, and then
our application) to crash.
Our target audience will be Kindergarten and First-graders, so this is a
very real problem.
I ended up creating a small Flash movie (less than 300bytes!) that
handles our mp3 clip playback. Unfortunately this method has had its
own problems (Javascript to Flash-plugin communication on the Mac). I
think we finally have something working using this method.
We're also looking at the possibility of including something directly
into our host application (as opposed to relying on the web engine and
its related plugins). Might this be possible with VLC? How/where might
I best investigate this?
Tj
-----Original Message-----
From: Jean-Paul Saman [mailto:jean-paul.saman at planet.nl]
Sent: Wednesday, November 02, 2005 2:18 PM
To: vlc at videolan.org
Subject: Re: [vlc] Needing help with vlc, mozilla, and javascript
Travis, first I want to apologize for my late reaction. I have been very
busy the last weeks. Hopefully it is not too late, but here is my answer
to your question.
Travis Johnson wrote:
> Greetings,
>
> I am trying to use a single embed object, and just change the
src/target
> properties via Javascript in an html page.
Travis,
Have a look at this documentation:
http://www.videolan.org/doc/play-howto/en/ch04.html#id295973
It tells you all you need. VLC has an option: autoplay="no" in th
JavaScript tag.
Kind greetings,
Jean-Paul Saman.
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
More information about the vlc
mailing list