Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Object ID embed and validation??

Reply
Thread Tools

Object ID embed and validation??

 
 
Christopher Richards
Guest
Posts: n/a
 
      01-18-2005
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.


 
Reply With Quote
 
 
 
 
Mark Parnell
Guest
Posts: n/a
 
      01-18-2005
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
 
 
 
 
Roy Schestowitz
Guest
Posts: n/a
 
      01-18-2005
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
 
Jim Roberts
Guest
Posts: n/a
 
      01-18-2005
"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
 
Toby Inkster
Guest
Posts: n/a
 
      01-18-2005
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
 
Leif K-Brooks
Guest
Posts: n/a
 
      01-18-2005
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
 
Christopher Richards
Guest
Posts: n/a
 
      01-18-2005
"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
 
Steve Pugh
Guest
Posts: n/a
 
      01-18-2005
"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
 
Toby Inkster
Guest
Posts: n/a
 
      01-18-2005
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
 
Spartanicus
Guest
Posts: n/a
 
      01-18-2005
"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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
about embed and object tag jackchang1@gmail.com Javascript 1 04-13-2007 11:36 PM
object to object -- embed instead code_wrong HTML 4 05-23-2006 10:05 PM
Firefox/Opera and Object/Embed tag Andy Tang HTML 3 05-10-2006 11:31 PM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
embed object and no DL to browser cache ray ASP General 0 07-18-2003 04:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57