Embed videos in page and xhtml compliance

Has anyone had luck with embedding video in a page that is xhtml compliant? Been spending a lot of time on it today and thought I made some progress but… :frowning: I did find some resources by searching the web and my test page is here. It seems to work in FireFox until you go to play again, then the video disappears.

Curious to know how others may choose to display your time lapse videos. I currently just have a drop down menu from the home page but that’s not xhtml compliant.

Hmmmm Firefox/3.0.6 here and all went well, it loaded quickly, played with no problems, let me start it over and over, and is compliant!


Thanks for testing Jack. Not sure why it acts differently for me, using 3.0.6 as well. Will have to mess around with it some more later this week. And now with nightime and I only use webcam sr to ss, not showing anything anyway! :wink:


Not sure why you have the doublle entry in your code with the exclusion for IE…

The following should work for either without any IE check…

<object type="video/x-ms-wmv" data="/videolasthour.wmv"
    width="340" height="285" id="player" >
    <param name="src" value="/videolasthour.wmv"/>
    <param name="url" value="/videolasthour.wmv" />
    <param name="controller" value="true" />
    <param name="autostart" value="true" />
    <param name="showcontrols" value="true" />

Running either code just showed a black screen but that is most likley because it is dark outside there.

Thanks Kevin. :slight_smile: Made the change and will see how that works tomorrow.

Had to add the url to the video in order for it to work in FF. Still having that odd problem in FF when stopping and restarting the movie, my video disappears. Also changed the test video to yesterday so there will be something to watch after sunset.

I have no problem starting, restarting, staring over the yesterday video (only one I tried) with FF 3.06 or MSIE7 on your page though. Not sure why you are having issues.

I prefer flash videos to Windows Media Video though.

Hi Bill
Try this:

<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="player1" width="408" height="349">
      <param name="url" value="videolastday.wmv" />
      <param name="autostart" value="0" />
      <!--[if !IE]>-->
      <object type="video/x-ms-wmv" data="videolastday.wmv" width="480" height="410">
        <param name="src" value="videolastday.wmv" />
        <param name="autostart" value="0" />

:slight_smile: Krister

Worked fine for me in Opera 9.63 - very sweet and detailed pics of the clouds in the sky - loved it!! restarted ok too.

Well done! When the page opened, it sort of crashed open a second time - i’ll check again sometime.

Thos Axis cameras are great aren’t they, alkthough not the night vision capacity of the 211A but great colours and undistorted view.


Thanks everyone for the comments/suggestions and testing. Interesting as I checked some other web sites with embedded media player and have similar issues so it appears to be an issue with my FF. I read somewhere to adjust video acceleration. I think I’ll stick with what I have for the moment. I may look into the flash videos as well but others I’ve seen look more “blocky” compared to the wmv files.


I agree with you about the loss of quality with .swf movies there Bill… I tried to get the .wmv videos to work on my site when I first set it up but with no luck, so have been stuck with flash.

I’ll try Kristers code and see if that works…I’m always having problems with mpgtoflash, so if I can get the .wmv to work now it will be great!!