473,320 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Javascript and Embedded Video

3
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.


Expand|Select|Wrap|Line Numbers
  1. <head>
  2. <style>
  3. #movie {}
  4. #img {}
  5. </style>
  6. </head>
  7. <body>
  8.  
  9. <embed type="application/x-vlc-plugin" name="VLC" target="mymovie.webm" id="movie" > </embed>
  10. <img src=myimage.jpg" id="img" />
  11.  
  12. <script>
  13.   var v = document.getElementById("movie");
  14.   var i = document.getElementById("img");
  15.   i.onclick = function() {
  16.      v.play();
  17. };
  18. </script>
  19. </body>
  20.  
  21.  
Jan 16 '11 #1
0 1376

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: b_naick | last post by:
I have an aspx page which embeds a video. Based on an input parameter id, the appropriate video is played. I've hard coded most the of "<object>" and "<embed"> paramters in the HTML. However,...
8
by: Nehmo | last post by:
When a page has a JavaScript "link" to a video, like http://www.msnbc.msn.com/id/10478942/ . How do you get the URL of the actual video? Isn't it in the source somewhere? -- )|:__ Nehmo __:|(
1
by: krimgelas | last post by:
Hello, I have a vcd sized movie file (dimensions 352x288) that I want to embed in my web page. For this I use the <object> element: ===== BEGIN <object width="240" height="196"> <param...
1
by: Rajesh Rao | last post by:
Hi guys, following url works in Fire Fox but not On IE. http://www.dell.com/content/topics/topic.aspx/global/hybrid/snp/en/storage_type?c=us&cs=19&l=en&ModelSelection=121317&s=dhs
3
by: pbd22 | last post by:
hi. i thought there would be volumes on this topinc on the internet, but i am having a tough time finding what i am looking for. i am trying to learn how to move a video from a cam corder or...
4
by: auslandt | last post by:
I have an HTML file that includes a JavaScript. I would like this JavaScript to be able to create an "onChange=<function>" attribute against the password element. Here is an example page of the...
1
by: Ernest | last post by:
Trying to launch my flash videos by passing their URL listed in a field on MYSQL via PHP script. Any help is greatly appreciated. 1) I am able to launch the video referenced directly in main...
5
by: TxAg03 | last post by:
I am looking for a way to play embedded videos using either Windows Media Player, or DirectX. I have tried using the url option with WMP, but can only play files off the HDD. I am running into the...
1
by: senthil3d | last post by:
Hi, I have a requirement that an html report is sent using outlook. This report is embedded in the outlook email. The problem Im facing is I've included some javascript functionalities within the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.