Results 1 to 4 of 4

Thread: How to add WMV video file to web page using JavaScript

  1. #1
    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?

  2. #2
    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>

  3. #3
    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" />

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    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.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,939,209.53379 seconds with 16 queries