Putting WMV movie files onto web site

Posted on 2006-05-06
Last Modified: 2007-12-19
Hi all,

I was given some wmv files to put on a website for a friend. At first I just made a page and listed links to them, so when people click on the links Media Player opens up and starts playing them. This worked fine locally, on my hard drive, but when I uploaded everything to his site, clicking on the links opens Media Player but the movie won't play.

I tried embedding the movie into the page, and again it worked great locally, but wouldn't work after uploading to the site. The player would appear on the site, but the movie wouldn't load.

I also tried using a pointer wvx file and the same thing happes - works locally but not on the site.

The page used is in the same directory as the movie file, so there shouldn't be a problem of me putting the wrong location in, should there? I say this because when I just had them as links, they still wouldn't play.

Is there a certain way they have to be uploaded, or is this a problem with the hosting server settings?

Something I've just noticed, is when I right click on the link and choose Save Target As... the movie is saved but its size is only 5.7kb, when it should be 3.78mb.
I checked the file with my FTP program and that says that the full 3.78mb file is there in the web space. I uploaded it again to make sure, but it still saves it as 5.7kb.

What am I doing wrong?
Thanks =)

Question by:Ali_B

    Author Comment

    I've just been looking at it again, and it seems to be that it is VERY temperamental. Occasionally the movie will load up, but most often it will not.
    I just tried right clicking the link and save target as... again, and this time it did start saving the whole file, but in the download box it said
    "Estimated time left: Not known (opened so far...300kb)"  or whatever size it had opened so far. Usually when you download a file it tells you what the total size is as it's being saved. So I'm not really sure what's going on.

    Any help greatly appreciated. Thanks.
    LVL 49

    Accepted Solution


    Probably it is best to take this up with your hosting company as it seems to be a server configuration problem rather than something you can influence from your html.
    When your paths are correct, and you have uploaded the files in binairy mode to the right directories, it should just be fine.

    LVL 3

    Expert Comment

    You can probably upload the link and let us examine what's wrong.

    LVL 11

    Assisted Solution

    Hi Ali_B.
    .wmv is a fine format for streaming media and the support is wide. I suggest you to try and embedd a mediaplayer on your website. When you embed the videoplayer on your website, in order to make it work in Netscape or Firefox you cannot use class for windows media player higher than 6.4. Also, make a metafile (.wvx). Reasons for this: Video becomes streamable, you are able to make playlists, and also it hides the url to the actual videofile, making the users unable to find and download the video. Ok? Ready for some code? This one is tested working on IE 5.5, NS 7, FF 1.04 and Opera 8:
    1. Compress your video to streaming wmv:
    I think you have got this step covered already, but If you have movies that are NOT in .wmv format you have to compress them. Since streaming is really important here, this part is important. There are many tools and programs out there that compresses video to wmv. I strongly recommend using discreet Cleaner XL, available in a free 30-day trial here: This program is easy to use and will do all the necessary streaming settings for you (important!). However, if you already have a bunch of .wmv files, simply skip this step.

    Compress and save your videofile as myvideo.wmv

    2. Put this HTML in player page:
    <!-- comments by John Modig -->
    <!-- embeded windows media player, tested in IE 6.0, NS 7.0, FF 1.04 and Opera 8.0 -->
    <!-- CLSID:22D6f31... = Windows Media Player 6.4 - higher versions not compatible with other browsers than IE -->
    <!-- it is important to use BOTH object and embed tag for multi-browser support -->
    <!-- object tag = IE, embed tag = NS, Opera, FF -->
    <object id="MediaPlayer" width="400" height="300" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player..."
    type="application/x-oleobject" codebase=",4,7,1112">
    <!-- param tag = only for object tag, meaning only for IE -->
    <param name="autoStart" value="True">
    <param name="filename" value="">
    <param name="ShowControls" value="True">
    <param name="AutoRewind" value="True">
    <param name="ShowStatusBar" value="True">
    <!-- src tag have to be FULL url to work with NS -->
    <!-- video/x-ms-wvx has better support (note! only for wvx files!) in FF and NS than application/x-mplayer2 -->
    <embed type="video/x-ms-wvx" src="" name="MediaPlayer" width="400" height="300" autostart="true">

    3. Create the metafile, open notepad and type this:

    <asx version = "3.0">
    <!-- comments by John Modig -->
    <!-- tags for the playlist -->
    <title>My playlist title</title>
    <author>My name</author>
    <abstract>© Copyright My Name</abstract>
    <!-- clip no 1 -->
    <title>My clip title</title>
    <author>My name</author>
    <abstract>© Copyright My Name</abstract>
    <!-- path to your video file, does not have to be full url, it is still compatible with NS 7.0, FF 1.04 and Opera 8 -->
    <ref href="myvideo.wmv" />

    Save the textfile as myvideo.wvx and put in the same directory as the videofile.

    More info on metafiles here:

    That should do it! Good luck and let me know how it went.


    Author Comment

    Thanks for the replies!

    I split the points because it was a server config problem which I connected the hosting company about, but the metafile method suggested by JohnModig worked really well once everything was going.

    So thanks again!

    Author Comment

    *which I CONTACTED the hosting company about
    LVL 11

    Expert Comment

    You are welcome. Glad to help out :)

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
    In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now