For many reasons, webmasters want to place a video on their website to sell products or to teach something. There are many ways to embed videos into a web page. This tutorial will only touch on 3 ways to embed videos. Below are 3 ways we will embed a video:

  • Mediaplayer.swf (Adobe Flash)
  • Embed .wmv (Windows Media)
  • Embed .mp4 (Apple Quicktime)

Each way you embed your video will depend on the video format and the type of player you want to use. You can use Windows Media in your browser to watch .wmv files. If you have an mp4 file format video, you can use the mediaplayer.swf method or the .mp4 Quicktime method. To use these video codes, you will need to be able to insert code into your website. Below are the steps to embed your videos into your website.

Important! Where you put the code will depend on how you are editing your website. If you are using the Premium Web Builder, you will need to use the "Script module". If you are using a Content Management System (CMS) like Drupal or Joomla, there is a different way to insert code. You will want to consult the software developer on how to insert code in your particular webs site building program.

Video Embed with mediaplayer.swf (Flash)

The following steps will explain how to use the "madiaplayer.swf" player in your website code. In this example, we will link to a file called "video.mp4".

Download the mediaplayer.swf fileImportant! You will need to download the mediaplayer.swf file from Google and upload it to your websites directory. The following is the link to the mediaplayer.swf file at Google.

http://code.google.com/p/youplayer/downloads/detail?name=mediaplayer.swf

After you download your mediaplayer.swf file and upload it to your server, follow the steps below to embed the video in your website.

  1. Edit your page in your website that you want to insert the video into.
  2. Code for mediaplayer.swfAdd the following line to your code in your site where you want the video to display.
    <embed src="/support/mediaplayer.swf?file=video.mp4" width="325" height="230" allowfullscreen="true" />

    Save the file.

  3. Mediaplayer.swf video in websiteVisit your website. You may need to clear your browser cache to see the changes. The Video will look like the snapshot to the right.

Video Embed .wmv files (Windows Media)

Another way to embed a video into your website is to use the Windows Media Player code. The following example will link your code to a file called "video.wmv".

Important! Needs Windows Media Player Plugin installed in the browser to see it.

You will need to upload your video into the directory for your website and follow the steps below to link the code to it.

  1. Edit your page in your website that you want to insert the video into.
  2. Windows media embed video codePlace the following code in your web page where you want the video to appear.
    <object width="325" height="250" type="video/x-ms-asf" url="video.wmv"
    data="video.wmv" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    <param name="url" value="video.wmv">
    <param name="filename" value="video.wmv">
    <param name="autostart" value="1">
    <param name="uiMode" value="full">
    <param name="autosize" value="1">
    <param name="playcount" value="1">
    <embed type="application/x-mplayer2" src="/support/video.wmv" width="325" 
    height="250" autostart="true" showcontrols="true"
    pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"></embed>
    </object>

    Save the page.

  3. Windows Media Player embedded videoVisit your website to see the video in your site. The video should look like the snapshot to the right. If you get a plugin error, you will need to download the Windows Media Plugin for your browser. Also, you may need to clear your browser cache to see the changes.

Video Embed .mp4 files (Apple Quicktime)

Below are the steps to insert a Quicktime .mp4 code into your website. The file we are using is called "video.mp4".

Important! Needs Apple Quicktime installed for browser.

Your .mp4 video will need to be uploaded to the server in order for you to link to it.

  1. Edit your page in your website that you want to insert the video into.
  2. Quicktime player code for embedding videoPaste the code into your site where you want the video to display.
    <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="200" 
    HEIGHT="180" > <PARAM NAME="SRC" VALUE="video.mp4" /> <PARAM NAME="autoplay" VALUE="true" /> <EMBED SRC="video.mp4" TYPE="image/x-macpaint" PLUGINSPAGE="http://www.apple.com/quicktime/download" WIDTH="320" HEIGHT="200" AUTOPLAY="true"></EMBED> </OBJECT>

    Save the changes.

  3. Quicktime player embedded videoWhen you visit your site you will see the video load in the Quicktime format. If your changes are not showing, you may need to clear your browser cache to see the changes.
Like this Article?
Showerbasics 2012-08-05 3:39 am
Here is a reasonably easy way to add a video to an InMotion website using the builder for non-commercial sites. It involves downloading some free software and using a free video application onto your website.

First you will need to convert your video to flash. Go to http://www.dvdvideosoft.com/free-dvd-video-software-download.htm/ and download their free video to Flash
Converter

Convert your video to flash. Ensure you have no spaces in the name.

Log into the cPanel and upload your video to your file manager.

Now you need a flash player added to your file manager. Go to JW Player as it is free for non-commercial use.
http://www.longtailvideo.com/players/jw-flv-player/

After you extract the files, upload player.swf to your file manager. You may also want to upload a preview picture which is what people will see when they first land on your page. You can use the one that comes with the JW Player, use your own or don’t use any. Upload a jpeg image if you would like.

Now go to JW Player wizard at http://www.longtailvideo.com/support/jw-player-setup-wizard/ and get the code you will need to show a video on your website. I will use a video I added to my website as an example.

My website is http://www.showerbasics.com

I have a video which will have the address http://www.showerbasics.com followed by the name of the flash file. In this case, the flash file is called ShowerSqueegeeMovie.flv so the address is
http://www.showerbasics.com/ShowerSqueegeeMovie.flv

The address of the JW Player is http://www.showerbasics.com/player.swf
Using the JW Player wizard for a basic video do the following:

Under Select an example setup choose flvplayer with a single video

Under Embed parameters change the source to where your player is located. In my case I use http://www.showerbasics.com/player.swf

Under File properties change the file to your video file location. In my case I will use http://www.showerbasics.com/ShowerSqueegeeMovie.flv

You can add an image under File properties if you would like. You can also add information about the video and a title under File properties.

Now Update Preview & Code

You should see your video in the Preview Your Player section.

Under Copy Your Code, go with the simple embed code. I have not been able to get the other codes to work. Copy the code onto a webpage and put it into Script. One error that I see a lot is that in the original code it says "embed type" (2 words). However, when you copy the code over it normally ends up as "embedtype" (1 word). Just split embedtype back to embed type and you should be fine.

You can see an example of this at http://www.showerbasics.com/shower-squeegee.php

Hopefully, the short instructions above will allow you to enjoy movies on your website.

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm Brad Markle, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

We've been listening!

2013-02-04 02:52 pm
This article was completely revamped per customer request. Added Windows Media and Quicktime.
2013-01-22 10:19 am
Restructured some content into a table for easier reading.

Latest Questions

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Ask a Question!
Recent Questions
  1. I can't access my website
  2. we-creation.com server down
  3. How do I delete the DNS entry?

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!