![]() |
|
|
|||||||
![]() |
HTML - Object ID embed and validation?? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Is it possible to correctly validate an xhtml page with the object ID and
embed necessary to implant a windows media player in an html page? Here is the code suggested by http://www.streamalot.com/embed.shtml. This validator http://validator.w3.org/file-upload.html doesn't like it at all. Christopher Richards |
|
|
|
|
#2 |
|
Posts: n/a
|
Previously in alt.html, Christopher Richards
<> said: > Is it possible to correctly validate an xhtml page with the object ID and > embed necessary to implant a windows media player in an html page? I've seen it done with Flash, so probably. Doesn't mean it's a good idea though. http://www.spartanicus.utvinternet.ie/embed.htm -- Mark Parnell http://www.clarkecomputers.com.au |
|
|
|
#3 |
|
Posts: n/a
|
Christopher Richards wrote:
> Is it possible to correctly validate an xhtml page with the object ID and > embed necessary to implant a windows media player in an html page? > Here is the code suggested by http://www.streamalot.com/embed.shtml. This > validator http://validator.w3.org/file-upload.html doesn't like it at all. ================================================== ============== <!-- BEGIN GENERIC ALL BROWSER FRIENDLY HTML FOR WINDOWS MEDIA PLAYER --> <object id="MediaPlayer1" width=180 height=200 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" align="middle"> <param name="FileName" value="Server/file"> <param name="ShowStatusBar" value="True"> <param name="DefaultFrame" value="mainFrame"> <embed type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/" src="Server/File" align="middle" width=176 height=144 defaultframe="rightFrame" showstatusbar=true> </embed> </object> <!-- END GENERIC ALL BROWSER FRIENDLY HTML FOR WINDOWS MEDIA PLAYER --><br> <a href="Server/file"><font size="2">Click here for standalone player</font></a><br> <a href="http://www.microsoft.com/windows/windowsmedia/en/default.asp"><font size="1">Download Windows Media Player Here</font></a></p> ================================================== ============== Without trying the validation, I can already spot some tags that do not close, e.g. replace <br> with <br />. The code above was probably intended for HTML, not XHTML. Roy -- Roy Schestowitz http://schestowitz.com |
|
|
|
#4 |
|
Posts: n/a
|
"Christopher Richards" <>
wrote in news:CG%Gd.12704$ m: > Is it possible to correctly validate an xhtml page with the object ID > and embed necessary to implant a windows media player in an html page? > Here is the code suggested by http://www.streamalot.com/embed.shtml. > This validator http://validator.w3.org/file-upload.html doesn't like > it at all. > > Some of the attributes, such as "align" and "pluginspage" aren't valid attributes. About the best I could do using xhtml is the following: <p><object id="mediaplayer1" width="180" height="200" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2 inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" > <param name="FileName" value="Server/file" /> <param name="ShowStatusBar" value="true" /> <param name="DefaultFrame" value="mainFrame" /> <!-- For other browsers * Windows Media Player --> <!--[if !IE]> <--> <object width="180" height="200" type="application/x-mplayer2"> <param name="FileName" value="Server/file" /> <param name="ShowStatusBar" value="true" /> <param name="DefaultFrame" value="mainFrame" /> </object> <!--> <![endif]--> </object></p> It works for IE and Gecko based browsers and does validate as xhtml strict. Not sure about others, but I don't think Opera supports the object element. There's probably a better method. You might consider using an html doctype. -- regards, Jim Roberts |
|
|
|
#5 |
|
Posts: n/a
|
Christopher Richards wrote:
> Is it possible to correctly validate an xhtml page with the object ID and > embed necessary to implant a windows media player in an html page? What's wrong with: <object data="myfilm.avi" height="120" width="180" type="video/x-msvideo"> <p>Your browser doesn't appear to support emebedded AVI video files, so please download <a href="myfilm.avi">my film</a> and view it in your favourite media player.</p> <p>Here is a still image from the film to whet your appetite:<br/> <img src="mystill.png" style="height:120px;width:180px"/></p> </object> ??? -- Toby A Inkster BSc (Hons) ARCS Contact Me ~ http://tobyinkster.co.uk/contact |
|
|
|
#6 |
|
Posts: n/a
|
Toby Inkster wrote:
> What's wrong with: > > <object data="myfilm.avi" height="120" width="180" type="video/x-msvideo"> > <p>Your browser doesn't appear to support emebedded AVI video files, so > please download <a href="myfilm.avi">my film</a> and view it in your > favourite media player.</p> > <p>Here is a still image from the film to whet your appetite:<br/> > <img src="mystill.png" style="height:120px;width:180px"/></p> > </object> Missing alt attribute? Using CSS for specifying an image's height and width instead of the HTML height and width attributes? |
|
|
|
#7 |
|
Posts: n/a
|
"Toby Inkster" <> wrote in message
news > Christopher Richards wrote: > >> Is it possible to correctly validate an xhtml page with the object ID and >> embed necessary to implant a windows media player in an html page? > > What's wrong with: > > <object data="myfilm.avi" height="120" width="180" type="video/x-msvideo"> > <p>Your browser doesn't appear to support emebedded AVI video files, so > please download <a href="myfilm.avi">my film</a> and view it in your > favourite media player.</p> > <p>Here is a still image from the film to whet your appetite:<br/> > <img src="mystill.png" style="height:120px;width:180px"/></p> > </object> Thanks for the response Toby. First, I wouldn't try streaming an AVI or downloading video. AVI is just no good for the web. It is great format for editing but not final web output. I wouldn't want the user to take any action apart from clicking and viewing. The other problem, as I see it, that Mozilla/Netscape needs that embed tag. |
|
|
|
#8 |
|
Posts: n/a
|
"Christopher Richards" <>
wrote: >"Toby Inkster" <> wrote in message >news >> >> <object data="myfilm.avi" height="120" width="180" type="video/x-msvideo"> >> <p>Your browser doesn't appear to support emebedded AVI video files, so >> please download <a href="myfilm.avi">my film</a> and view it in your >> favourite media player.</p> >> <p>Here is a still image from the film to whet your appetite:<br/> >> <img src="mystill.png" style="height:120px;width:180px"/></p> >> </object> > >Thanks for the response Toby. First, I wouldn't try streaming an AVI or >downloading video. AVI is just no good for the web. It is great format for >editing but not final web output. I wouldn't want the user to take any >action apart from clicking and viewing. Then use another format, the above technique will work with other formats. >The other problem, as I see it, that >Mozilla/Netscape needs that embed tag. Netscape 4 does, but Mozilla/Netscape 6+ certainly do not. You probably once tried the MS mangled version of <object> rather than the standards compliant version used above. Steve |
|
|
|
#9 |
|
Posts: n/a
|
Leif K-Brooks wrote:
> Toby Inkster wrote: >> What's wrong with: >> >> <object data="myfilm.avi" height="120" width="180" type="video/x-msvideo"> >> <p>Your browser doesn't appear to support emebedded AVI video files, so >> please download <a href="myfilm.avi">my film</a> and view it in your >> favourite media player.</p> >> <p>Here is a still image from the film to whet your appetite:<br/> >> <img src="mystill.png" style="height:120px;width:180px"/></p> >> </object> > > Missing alt attribute? Correct. > Using CSS for specifying an image's height and width instead of the > HTML height and width attributes? Presentational crap best handled by CSS. -- Toby A Inkster BSc (Hons) ARCS Contact Me ~ http://tobyinkster.co.uk/contact |
|
|
|
#10 |
|
Posts: n/a
|
"Christopher Richards" <>
wrote: >First, I wouldn't try streaming an AVI or >downloading video. AVI is just no good for the web. It is great format for >editing but not final web output. AVI is a "wrapper" format, as such it can contain any known compression format. You may be thinking of uncompressed AVI. -- Spartanicus |
|