Click to See Complete Forum and Search --> : Streaming video: HTML 4.01 strict valide?!


B-Twien Bytes
11-20-2006, 09:18 AM
Hello all,

I valided my video - website (as awhole) HTML 4.01 strict and there was no problem.

If I take my video-page though separately, it will give 19 errors (at least ;-) HTML 4.01 strict does not except the embedded-streaming-code if I understood right.

How can I change/solve that?

Here is my code as it is in my page:

<p class="video">
<OBJECT id="mediaPlayer" width="320" height="285"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="fileName" value="http://www.voorbeeld.wmv">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="loop" value="true">
<EMBED type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="-1"
bgcolor="darkblue" showcontrols="true" showtracker="-1"
showdisplay="0" showstatusbar="-1" videoborder3d="-1" width="320" height="285"
src="http://www.voorbeeld.wmv" autostart="true" designtimesp="5311" loop="true">
</EMBED>
</OBJECT>
</p>

<p class="video">
<!-- ...end embedded WindowsMedia file -->
<!-- begin link to launch external media player... -->
<a href="http://www.voorbeeld.wmv"><b>Launch in external player</b></a><br>
<!-- ...end link to launch external media player... -->
<br>
This size of this video is <b>8.663 MB</b>. Please allow approximately a couple of minutes to download via high-speed broadband internet connection. This video
will begin playing directly in this window automatically once the download is complete.<br>
<br>
or<br>
<br>
<a href="http://www.voorbeeld.wmv">right click on this text and select Save Target As to download the video and view later...</a>
</p>

Thanks for the help/ideas...

tasneem
11-20-2006, 01:59 PM
Hi
Check out this article: http://www.alistapart.com/articles/byebyeembed, or another discussion here: http://www.webmaster-talk.com/html-forum/64586-how-add-flash-video-audio-web.html
Thanks

B-Twien Bytes
11-21-2006, 08:47 AM
@ tasneem

Thanks, interesting stuff..

B-Twien Bytes
11-21-2006, 10:31 AM
This is really cool!!!

It works totally fine, without the embed tag...thanks a lot for sending me the link to this e-mail..It saved me a lot of time.

B-Twien Bytes
11-22-2006, 04:36 AM
@ tasneem and others...

The article "Bye bye embed (http://www.alistapart.com/articles/byebyeembed) " talks about two methods if it comes to "playing wmv clips...

1)
one object for Windows Media Player (page 2) and

2)
embedding wmv. files with the classid (page 5)

I chose method 1, but wonder how compatible this is with different versions of different browsers? Does any one have some information on that part?

B-Twien Bytes
11-22-2006, 01:55 PM
@ tasneem and others...

I was too quick in thinking it worked well... :confused:

The page with url click here for short video clip (http://www.voorbeeld.html)

did work ok before changing it to this code (see below):

<p class="video">

<object type="video/x-ms-wmv" data="http://www.voorbeeld.wmv" width="320" height="260">
<param name="src" value="http://www.voorbeeld.wmv">
<param name="autostart" value="true">
<param name="controller" value="true">
</object>

</p>

I copied this code of the article mentioned before...

My other code worked OK, but was not a valid code. I do like valid codes and websites ;-)

But anyway, with the code above it won't start automatically any more in either IE 6 or FF 2.0 (newest), why?? Is it the p class that mixes it up?

Oh wait, it does work, but takes forever to start ??
Hmm, can not get it quite figured out. Any suggestions?

.video {
font-family:arial,verdana,serif;
font-size:10px;
text-align:center;
}

_Aerospace_Eng_
11-22-2006, 03:28 PM
Its not the CSS. There isn't much you can do with a video that size. Try this
<object type="video/x-ms-wmv" data="http://www.cmamali.org/video/jessica_s.wmv" width="320" height="260">
<param name="src" value="http://www.cmamali.org/video/jessica_s.wmv">
<param name="controller" value="true">
<param name="uiMode" value="full">
<param name="autoStart" value="1">
<param name="playCount" value="9999">
<param name="ShowStatusBar" value="1">
</object>
It shows the status bar telling you that the video is still buffering before it plays so users will know that something is trying to play.

B-Twien Bytes
11-23-2006, 05:21 AM
@ _Aerospace_Eng_

Thanks for your answer, I will try it today ;-)

But does this mean you could play the short video clip well?
I am curious though, why with my former non-valuable W3C code it worked so much faster than with the new valuable code??

_Aerospace_Eng_
11-23-2006, 05:26 AM
The codebase may have had something to do with it not sure. Personally though I would use flash video. It has the ability to progressive stream meaning it can start playing with just even part of the video downloaded. The flash video controls can be pretty customizable as well.