Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Object ID embed and validation??

 
Thread Tools Search this Thread
Old 01-18-2005, 03:48 AM   #1
Default Object ID embed and validation??


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
  Reply With Quote
Old 01-18-2005, 04:20 AM   #2
Mark Parnell
 
Posts: n/a
Default Re: Object ID embed and validation??

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
  Reply With Quote
Old 01-18-2005, 05:54 AM   #3
Roy Schestowitz
 
Posts: n/a
Default Re: Object ID embed and validation??

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
  Reply With Quote
Old 01-18-2005, 06:53 AM   #4
Jim Roberts
 
Posts: n/a
Default Re: Object ID embed and validation??

"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
  Reply With Quote
Old 01-18-2005, 07:59 AM   #5
Toby Inkster
 
Posts: n/a
Default Re: Object ID embed and validation??

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

  Reply With Quote
Old 01-18-2005, 08:51 PM   #6
Leif K-Brooks
 
Posts: n/a
Default Re: Object ID embed and validation??

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?
  Reply With Quote
Old 01-18-2005, 09:00 PM   #7
Christopher Richards
 
Posts: n/a
Default Re: Object ID embed and validation??

"Toby Inkster" <> wrote in message
news .uk...
> 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.


  Reply With Quote
Old 01-18-2005, 09:17 PM   #8
Steve Pugh
 
Posts: n/a
Default Re: Object ID embed and validation??

"Christopher Richards" <>
wrote:
>"Toby Inkster" <> wrote in message
>news o.uk...
>>
>> <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

  Reply With Quote
Old 01-18-2005, 10:07 PM   #9
Toby Inkster
 
Posts: n/a
Default Re: Object ID embed and validation??

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

  Reply With Quote
Old 01-18-2005, 10:35 PM   #10
Spartanicus
 
Posts: n/a
Default Re: Object ID embed and validation??

"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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump