473,386 Members | 1,796 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,386 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 1378

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.