Javascript and Embedded Video

  • 1
  • Question
  • Updated 8 years ago
  • Answered
I wrote a script that allows me to start a video when an image is clicked. It works fine for html5 video but not embedded video (VLC+Webm). How do i make my script recognize the embedded video?

Testing this in FF3.6 and FF4b9.

Edit: im getting a black box where my script should be. Ive also posted this here if you would like to see it

http://bytes.com/topic/javascript/ans...
Photo of l.breyers

l.breyers

  • 3 Posts
  • 0 Reply Likes
  • frustrated

Posted 8 years ago

  • 1
Photo of Nazlie

Nazlie

  • 1721 Posts
  • 51 Reply Likes
Hi l.breyers

I think the reason you may be having problems on FF3x and not FF4x is because HTML4 do not support WebM files. I found this articles on Mozilla site, which explains it more detail: Firefox, YouTube and WebM.

You may need to change the codec so that your video displays in earlier versions of FF.

Thank you
Nazlie