Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 31-08-2009
Member
 
Join Date: Aug 2009
Posts: 59
How to add WMV video file to web page using JavaScript

I am trying to embed a small 3 minute wmv video file on my web page using JavaScript. For this I first uploaded the wmv video file on my server and then I was trying to code for that. But I am not getting how to get it working. I am tried several times but when I click on the play button, it simply doesn't work. How to add a WMV video file to a web page using JavaScript?
Reply With Quote
  #2  
Old 31-08-2009
Member
 
Join Date: May 2008
Posts: 685
Re: How to add WMV video file to web page using JavaScript

The below code should do the trick:

HTML Code:
<object NAME="Player" WIDTH="320" HEIGHT="240" align="CENTER" hspace="10" type="application/x-oleobject"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">

<param NAME="URL" VALUE="filename.wmv"><param>
<param NAME="AUTOSTART" VALUE="false"></param>
<param name="showControls" value="true"></param>

<embed WIDTH="320" HEIGHT="240" align="CENTER" hspace="10" SRC="filename.wmv" TYPE="application/x-oleobject" AUTOSTART="false">
</embed>

</object>
Reply With Quote
  #3  
Old 31-08-2009
Member
 
Join Date: Nov 2008
Posts: 1,054
Re: How to add WMV video file to web page using JavaScript

You can add your wmv file in two ways:

1. As a link

HTML Code:
<a href="your_video_file.wmv">Click here to view the video</a>
2. Embedding the video

HTML Code:
<embed object src="your_video_file.wmv" width="320" height="240" />
Reply With Quote
  #4  
Old 31-08-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: How to add WMV video file to web page using JavaScript

VideoWebWizard 2.0 is a new software tool that allows you to easily and quickly convert videos into web format. The VideoWebWizard 2.0 software has a wizard-like functionality. It literally walks you through the few steps to converting video to website format.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to add WMV video file to web page using JavaScript"
Thread Thread Starter Forum Replies Last Post
Firefox 3 full page zoom from javascript HeerePanna Software Development 4 21-09-2010 06:52 AM
How to find out Current Page Url with the help of JavaScript? Kushan Software Development 3 21-11-2009 10:40 AM
Unable to scroll top page design in Javascript Benito Software Development 3 19-08-2009 12:23 PM
JavaScript code outside html page Gefry Software Development 3 30-04-2009 03:53 PM
How to add a date to my page using Javascript ? Anikait Software Development 2 23-03-2009 10:34 AM


All times are GMT +5.5. The time now is 06:39 AM.