Skip navigation
Currently Being Moderated

Inserting a Windows Media Video file on an html page (using DW CS5, Windows 7)

Jan 13, 2012 2:35 PM

Tags: #dreamweaver_cs5

I know there were other with the same problem in earlier years. But here goes.

 

I inserted a Windows Media Video file (127mb). When I uploaded it on a new page and placed a nav link on my homepage to take me to it, the file opens in media player separate for me to play it. I want it to play in the page where the file image is placed. But all I have there is a white image box only.

 

http://www.harvestenterprises-sra.com/FiberDesignsByBenedict.html

 

Here's the code I have:

 

<embed src="images/FiberDesignsByBenedict-Slideshow.wmv" width="1033" height="814"> </embed>

 

I tried to embed Windows Media Player with the code below but kept having trouble with it. It showed the player controls and noted "ready" but couldn't start it or move the scroll bar either. the code must be wrong somehow. Help. Thanks.

 

</EMBED><OBJECT ID="MediaPlayer" WIDTH="1033" HEIGHT="814" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"

STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">

<PARAM NAME="FileName" VALUE="FiberDesignsByBenedict-Slideshow.wmv">

<PARAM name="ShowControls" VALUE="true">

<param name="ShowStatusBar" value="true">

<PARAM name="ShowDisplay" VALUE="true">

<PARAM name="autostart" VALUE="true"><EMBED TYPE="application/x-mplayer2" SRC="FiberDesignsByBenedict-Slideshow.wmv"

WIDTH="1033" HEIGHT="814" ShowControls="1" ShowStatusBar="1" ShowDisplay="1" autostart= "1"></EMBED></OBJECT>

 
Replies
  • Currently Being Moderated
    Jan 13, 2012 2:47 PM   in reply to SLBseeker

    Start here:

    http://www.mediacollege.com/video/format/windows-media/streaming/embed -examples.html

     

    NOTE: you'll need the plug-in installed for Firefox to play it on the page.

    Some versions of Firefox are not auto initializing the player plug-in so you may need to do it manually.

     

    This tells how:

    http://windows7forums.com/windows-7-support/36617-q-windows-media-play er-plugin-firefox.html

     

    Firefox Plug-ins Checker

    http://www.mozilla.org/en-US/plugincheck/

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 13, 2012 3:52 PM   in reply to SLBseeker

    As for you link, are you linking to the Web page? or are you linking to just the video?... so the anchor just opens the media player rather than the Web page?

    I needed to download an additional plugin to see the video in the link you posted... but then it played fine, with controls and all..... but I had to download the pluggin in both IE and FF...

    What you are seeing with the requirement to download an additional plugin is another good reason not to use .wmv files on the Internet. The compression is poor (your 127MB file shows that) and many visitors will not have the pluggin... nor will they make the effort to download it.

    I'd recommend that you convert your video to a .flv or mp4 file and use a more modern, cross browser friendly video file format.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 13, 2012 5:05 PM   in reply to SLBseeker

    Browser pluggins or "Add ons" have nothing to do with DW, they are browser Add ons and each different browser must have it's own.

    To see which pluggins a browser has as well as which version of pluggin, click the "Tools" link in the browser menu, then "Manage Add on's" (IE) or just "Add ons" (FF) depending on which browser you are using. Select the Add on you want and then down in lower left, "more info" to find out more info, including the folder location.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 15, 2012 7:12 AM   in reply to SLBseeker

    The mpg link on your web page is really a no-go... the file is HUGE and no-one will take the time to download it. I've sent you a Private Message here in the Forum with a couple options in it.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 15, 2012 11:40 AM   in reply to SLBseeker

    Thought a review of what "Video bitrate" is would be helpful. It's very important because the video bitrate must be less than the viewers Internet connection speed or the video will start/stop as the video buffers (download catches up to the display).

    Video bit rate

    Video bitrate is the minimum amount of data that must continually flow into the video player in order for the player to display that particular video uninterrupted. If that supply of data is not high enough, the video player will stop…. Wait for more data to download, then resume. The video bitrate is set as a parameter when the video is encoded.

    One of the principle of goal setting is to "Begin with the end in mind". In this case it'll be very hard to give good recommendations because the end is not defined. So I'll just make a few assumptions and you can correct me as needed.
    First, I'll assume that since you are converting to Flash, you want to deliver this video over the Internet. If that's true, then we'll have to make some assumptions on the Internet connection download speeds of your potential viewers. Let's just say that most have at least a 1.5Mb connection or faster.
    OK, that would mean that a video bitrate of half that should usually provide a video download that is not interupped by buffering (most of the time anyway). So assuming a video bitrate of 750kbps, what would the optimum display dimensions be?
    Before we decide, here's a little info about bitrate. For highest quality playback, the video bitrate is tied directly to the display dimensions. That is, the larger the display, the more incoming data is required to properly display the video. Think of bitrate in terms of a can of paint. If you have 1 quart of paint, you might be able to do a very nice job on a 32 X 24 foot area. But if you try to stretch that same amount of paint out over a 64 X 48 foot area, the coverage will not be nearly as good and you get poor results.
    In the same way, a video displayed at 640 X 480 pixels will require 4 times the bitrate as a video displayed at 320 X 240 pixels to produce the same quality. So for example a video with a bitrate of 100kbps, displayed at 160 X 120 will produce the same quality results as a video with a bitrate of 1600kbps if displayed at 640 X 480.
    So to boil it all down, video bitrates of 750kbps, even up to 1000kbps can usually get delivered of the Internet on most high speed connections. Higher bit rates may work for really fast connections but will cause problems for viewers with slower connections. Video display size has a direct bearing on the final quality. In the 750 to 1000kbps range, display size should be kept around 450 or 500 width max (and whatever height the aspect ratio calls for). Yes it can be displayed larger, but the quality will suffer.
    Sound like your audio settings are fine, especially for Internet delivery.
    As for framerate, maintain the original raw video framerate for best results. So if the video was shot at 24fps, leave it.
    As for video converters, do you have the Flash 8 Video Converter? It works just fine for video to be delivered over the Internet. Remember, you are taking a Cadillac version of video (h.264 HD) and stuffing it into a Chevy body to get it to work over the Internet.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 15, 2012 6:52 PM   in reply to SLBseeker

    Best of luck with your adventure!

    As for the statement about the newer player... you can remove that all together... not needed at all. There are a number of players with various "skins" available... search around a little... JWPlayer is one... FlowPlayer is another.

    The .m4v is the iProducts version of the mp4 (which is far removed from the plain old mpeg version, far better compression, etc.). I included that so you can make your video available on mobile products like the iPhone/iPad, etc.

    I really like the JWPlayer for playing those m4v files... they will play back on a PC or mobile device... check it out sometime:

    http://www.longtailvideo.com/players

    And as great as video is at getting your message across to viewers, video is terrible at getting your message across to Search Engines. So I'd suggest that if you go with the Flash version, learn to use swfobject for Flash detection and the ability to add alternate content... which in your case would be a detailed text description of exactly what's going on in the video, the complete narration... using lots of keywords, etc.

    http://code.google.com/p/swfobject/

    Don't worry about getting everything perfect when you frst start... we all go through a learning process... one step at a time.

    Best wishes,

    Adninjastrator

    PS... if you want to mark my post as helpful or an answer to your problem... I'd apprecitate it!

    Oh... and video bitrate of the .flv is 1000kbps + 96 for audio.

    video bitrate for the m4v is 900 + 96 for audio.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 15, 2012 7:09 PM   in reply to SLBseeker

    Open your web page in code view, find that stuff and just comment it out or remove it.

    <!-- this is a comment, anything between these comment tags will stay on the page source code but will not be visible...use comment tags so you can come back later and then remove the comment tags if needed. -->

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 16, 2012 9:24 AM   in reply to SLBseeker

    Looks like you are missing some of the files. Besides uploading the .flv to your server, you also need to upload the player.swf and the skin .swf.

    For example your player .swf is coded to be at:

    http://www.harvestenterprises-sra.com/FLVPlayer_Progressive.swf

    but returns file not found.... so either the file is not uploaded to the Web server or it was uploaded to the wrong folder.

    So be sure to upload all the flash related files, the .flv, the player .swf and the skin .swf (Clear_Skin_1.swf).

    Best wishes,

    Adninjastrator

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points