473,385 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to play different types of audio-video files in the browser?

When the user chooses an AV file to play, based upon the type of file,
I want to use the default installed media player to play it.

I am wondering if this is a good way - any alternatives, suggestions or
improvements?

if( wmv file)
document.write("<OBJECT id=Player
classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height="354"
width="479">
<PARAM NAME="autoStart" VALUE="true">
</OBJECT>
");

if( swf file)
document.write("flash classid")

if(rm file)
document.write("real audio classid")
Qs:
1) How to tell which players are installed on the system?
2) How to make reentrant ie. let user play flash now, then afterwards
in the same browser, play wmv etc.
3) Is it possible to minimise or make invisible the players that are
not being played?
4) what if a player is not installed - will the OBJECT tag fail
gracefully?

thanks,
Anil

Dec 25 '06 #1
13 4827

an*******@gmail.com wrote:
When the user chooses an AV file to play, based upon the type of file,
I want to use the default installed media player to play it.

I am wondering if this is a good way - any alternatives, suggestions or
improvements?

if( wmv file)
document.write("<OBJECT id=Player
classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height="354"
width="479">
<PARAM NAME="autoStart" VALUE="true">
</OBJECT>
");
The above and the 2 objects below use an ActiveX classid and thus these
are all thus ActiveX objects. Thus they will not work on most non-IE
browsers as written. In many cases you can use an ordinary object for
both IE and other browsers and avoid invalid embed paths for other
browsers.
if( swf file)
document.write("flash classid")

if(rm file)
document.write("real audio classid")
Qs:
1) How to tell which players are installed on the system?
Complicated at best, and subject to change without notice on player
upgrades. Avoid when possible
2) How to make reentrant ie. let user play flash now, then afterwards
in the same browser, play wmv etc.
I will give you an example below.
3) Is it possible to minimise or make invisible the players that are
not being played?
Yes, an example follows below.
4) what if a player is not installed - will the OBJECT tag fail
gracefully?
Yes, if the code is properly written - no player = no display

See my page at http://www.cwdjr.info/temp/video_multiFormat2.php and be
sure to read the comments in the source. The page is written mainly to
stream for a high broadband connection. A connection that will not
support over 2Mbps will cause long buffering on some files. It is
possible to offer multiple bitrates for high broadband, low, broadband,
and dialup. See http://www.cwdjr.info/temp/video_multiBR3.php . for an
example of this. Notice that I am using playlist files such as .wax
(for WMP), .rpm for Real players etc. These can contain one or more
video url references to urls for files that WMP, Real, or other player
can play. The SMIL program is directed to the Real player, because Real
has builtin support for most of SMIL2. Some other players have very
limited SMIL support, so you don't want the SMIL file getting directed
to these. The .mov file required the most complex object, and here I
had to use both ActiveX and object paths as determined by Microsoft
conditional comments.

There is a recent complication for the WMP that everyone who embeds
videos using this player should be aware of. The new WMP11 can be
installed only on Windows XP(and likely Vista) OSs, but there are a
huge number of such OSs out there that may be viewing your videos. If
you embed a video and the width of the video called for in the object
is greater than the actual width for a .wmv file, the width is
stretched to the width called for in the code, but the height is not on
non-IE browsers including recent Opera, Firefox, Mozilla, Netscape, and
Seamonkey. However the image is normal viewed on an IE browser. If you
have a Windows XP OS, the new WMP11 installed, and script turned on,
you can see an example at
http://www.cwdjr.info/temp/video_multiFormat.php. It will view as
normal on IE and distorted on the mentioned non-IE browsers. Hopefully
Microsoft will correct this bug. Until then the way to avoid it is to
call for the same width in the object code as the actual width of the
..wmv or other video files played by the WMP11. If the actual width of
the video is not what you need for your page layout, then the video
should be re-encoded at the desired width. If you do not heed the above
and have a commercial site, your viewers of slim young ladies in swim
wear you wish to sell may stretch the ladies to the width of Henry VIII
for those using the WMP11 on a non-IE browser until,and if, Microsoft
fixes this bug.!

Dec 26 '06 #2
Hello cwdjrxyz,
Thank you for the pointers.
Reading through video_multiformat2 source,
I am having difficulty with the following:
<object data="http://www.cwdjr.net/ram/realmix.rpm"
type="audio/x-pn-realaudio-plugin" ....

The plugin is loaded from a remote url.
Is there any way to load the player that is installed on the local
desktop instead?
When disconnected from the internet, the user should still be able to
play the AV files.

thanks,
Anil
On Dec 25, 8:01 pm, "cwdjrxyz" <spamtr...@cwdjr.infowrote:
anil.r...@gmail.com wrote:
When the user chooses an AV file to play, based upon the type of file,
I want to use the default installed media player to play it.
I am wondering if this is a good way - any alternatives, suggestions or
improvements?
if( wmv file)
document.write("<OBJECT id=Player
classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height="354"
width="479">
<PARAM NAME="autoStart" VALUE="true">
</OBJECT>
");The above and the 2 objects below use an ActiveX classid and thus these
are all thus ActiveX objects. Thus they will not work on most non-IE
browsers as written. In many cases you can use an ordinary object for
both IE and other browsers and avoid invalid embed paths for other
browsers.
if( swf file)
document.write("flash classid")
if(rm file)
document.write("real audio classid")
Qs:
1) How to tell which players are installed on the system?Complicated at best, and subject to change without notice on player
upgrades. Avoid when possible
2) How to make reentrant ie. let user play flash now, then afterwards
in the same browser, play wmv etc.I will give you an example below.
3) Is it possible to minimise or make invisible the players that are
not being played?Yes, an example follows below.
4) what if a player is not installed - will the OBJECT tag fail
gracefully?Yes, if the code is properly written - no player = no display

See my page athttp://www.cwdjr.info/temp/video_multiFormat2.phpand be
sure to read the comments in the source. The page is written mainly to
stream for a high broadband connection. A connection that will not
support over 2Mbps will cause long buffering on some files. It is
possible to offer multiple bitrates for high broadband, low, broadband,
and dialup. Seehttp://www.cwdjr.info/temp/video_multiBR3.php. for an
example of this. Notice that I am using playlist files such as .wax
(for WMP), .rpm for Real players etc. These can contain one or more
video url references to urls for files that WMP, Real, or other player
can play. The SMIL program is directed to the Real player, because Real
has builtin support for most of SMIL2. Some other players have very
limited SMIL support, so you don't want the SMIL file getting directed
to these. The .mov file required the most complex object, and here I
had to use both ActiveX and object paths as determined by Microsoft
conditional comments.

There is a recent complication for the WMP that everyone who embeds
videos using this player should be aware of. The new WMP11 can be
installed only on Windows XP(and likely Vista) OSs, but there are a
huge number of such OSs out there that may be viewing your videos. If
you embed a video and the width of the video called for in the object
is greater than the actual width for a .wmv file, the width is
stretched to the width called for in the code, but the height is not on
non-IE browsers including recent Opera, Firefox, Mozilla, Netscape, and
Seamonkey. However the image is normal viewed on an IE browser. If you
have a Windows XP OS, the new WMP11 installed, and script turned on,
you can see an example athttp://www.cwdjr.info/temp/video_multiFormat.php. It will view as
normal on IE and distorted on the mentioned non-IE browsers. Hopefully
Microsoft will correct this bug. Until then the way to avoid it is to
call for the same width in the object code as the actual width of the
.wmv or other video files played by the WMP11. If the actual width of
the video is not what you need for your page layout, then the video
should be re-encoded at the desired width. If you do not heed the above
and have a commercial site, your viewers of slim young ladies in swim
wear you wish to sell may stretch the ladies to the width of Henry VIII
for those using the WMP11 on a non-IE browser until,and if, Microsoft
fixes this bug.!
Dec 26 '06 #3

an*******@gmail.com wrote:
Hello cwdjrxyz,
Thank you for the pointers.
Reading through video_multiformat2 source,
I am having difficulty with the following:
<object data="http://www.cwdjr.net/ram/realmix.rpm"
type="audio/x-pn-realaudio-plugin" ....

The plugin is loaded from a remote url.
Is there any way to load the player that is installed on the local
desktop instead?
When disconnected from the internet, the user should still be able to
play the AV files.
The rpm, with the mime type for it given, is just a standard type of
Real playlist file. It points to where the actual media file or files
are stored. This is just standard procedure, and ensures that the
actual media file gets sent to the real player. The Real developer site
has more details on Real than most people ever will wish to know,
including SMIL that Real will play if a SMIL file is directed to it.

The rpm file is:
http://www.cwdjr.net/ram/realmix.smil

In this case it points to the SMIL file at the given url.

If you want to play the smill file locally, you just feed the local
address on the computer where it is stored into the Real Player that
you have brought up. The SMIL2 file is a type of xml file, and in this
case is:

<smil xmlns="http://www.w3.org/2001/SMIL20/Language">
<head>
<layout>
<root-layout width="500" height="450" backgroundColor="blue" />
<region id="video_region" backgroundColor="blue" z-index="1" />
<regPoint id="middle" left="50%" top="50%" regAlign="center" />
<region id="brush_region_1" width="25%" height="50%" left="0" top="0"
z-index="2" />
<region id="brush_region_2" width="25%" height="50%" left="25%" top="0"
z-index="2" />
<region id="brush_region_3" width="25%" height="50%" left="50%" top="0"
z-index="2" />
<region id="brush_region_4" width="25%" height="50%" left="75%" top="0"
z-index="2" />
<region id="brush_region_5" width="25%" height="50%" left="0" top="50%"
z-index="2" />
<region id="brush_region_6" width="25%" height="50%" left="25%"
top="50%" z-index="2" />
<region id="brush_region_7" width="25%" height="50%" left="50%"
top="50%" z-index="2" />
<region id="brush_region_8" width="25%" height="50%" left="75%"
top="50%" z-index="2" />
</layout>
<transition id="fromBlue" type="spiralWipe" subtype="topLeftClockwise"
dur="5s" />
<transition id="fromStar" type="starWipe" subtype="fivePoint" dur="5s"
/>
<transition id="fromKeyhole" type="miscShapeWipe" subtype="keyhole"
dur="5s" />
<transition id="fromHexagon" type="hexagonWipe" subtype="vertical"
dur="5s" />
<transition id="fromBarnZigZag" type="barnZigZagWipe"
subtype="vertical" dur="10s" />
<transition id="fromFourBox" type="fourBoxWipe" subtype="cornersIn"
dur="10s" />
<transition id="fromPinWheel" type="pinWheelWipe" subtype="fourBlade"
dur="5s" />
<transition id="fromSnake" type="snakeWipe" subtype="topLeftHorizontal"
dur="10s" />
<transition id="toBlue" type="fade" subtype="fadeToColor"
fadeColor="blue" dur="5s" />
<transition id="toRed" type="fade" subtype="fadeToColor"
fadeColor="red" dur="5s" />
<transition id="toGreen" type="fade" subtype="fadeToColor"
fadeColor="green" dur="5s" />
<transition id="toYellow" type="fade" subtype="fadeToColor"
fadeColor="yellow" dur="5s" />
</head>
<body>
<seq>
<img src="chttp://www.cwdjr.net/ram/roach.gif" id="image1"
region="video_region" dur="34s" width="256" height="256" left="0"
top="0" fill="hold" title="The SMIL Bug">
<animate targetElement="image1" attributeName="width" from="256"
to="128" begin="3s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="height" values="256;128"
calcMode="linear" begin="4s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="left" to="196"
begin="9s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="top" to="196"
begin="14s" dur="4s" fill="freeze" />
<animateMotion targetElement="image1" to="-128,-128" begin="19s"
dur="4s" fill="freeze" />
<set targetElement="image1" attributeName="left" to="64" begin="24s"
fill="freeze" />
<set targetElement="image1" attributeName="top" to="64" begin="24s"
fill="freeze" />
<animate targetElement="image1" attributeName="height" to="256"
begin="26s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="width" to="256"
begin="26s" dur="4s" fill="freeze" />
<animateMotion targetElement="image1" to="0,0" begin="30s" dur="4s"
fill="freeze" />
</img>
</seq>
<seq>
<par>
<audio
src="chttp://www.cwdjr.net/souopera/Tetrazzini_CaroNome_1911.rmj"
title="Caro Nome RA" author="Tetrazzini" />
<img src="chttp://www.cwdjr.net/picsnap/roscoe_foil2.jpg"
region="video_region" regPoint="middle" transIn="fromBarnZigZag"
transOut="toGreen" begin="2s" fill="remove" dur="240s" z-index="3" />
</par>
</seq>
<!-- remove comment tags from around below code to play midi. It is not
included here as Real may ask you to install the Crescendo plugin to
play the midi. -->
<!--
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/cancan.mid" title="Cancan mid" />
<img src="chttp://www.cwdjr.net/picani/dancer_blacktights.gif"
region="video_region" regPoint="middle" transIn="fromStar"
transOut="toYellow" begin="2s" fill="remove" dur="120s" />
</par>
</seq>
-->
<seq>
<par>
<audio src="chttp://www.cwdjr.net/souearly/ColumbiaExpositionMarch.wma"
title="Columbia Exposition March WMA" author="Sousa" />
<img src="chttp://www.cwdjr.net/picsnap/roscoe.jpg"
region="video_region" regPoint="middle" transIn="fromFourBox"
transOut="toYellow" begin="2s" fill="remove" dur="148s" />
</par>
</seq>
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/SidewalksOfNewYork.mp3"
title="Sidewalks Of New York MP3" />
<img src="chttp://www.cwdjr.net/pic3/burlesque_house2.jpg"
region="video_region" regPoint="middle" transIn="fromSnake"
transOut="toRed" begin="2s" fill="remove" dur="95s" />
</par>
</seq>
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/ZarahLeander.ram" title="Zarah
Leander RA" />
<img src="chttp://www.cwdjr.net/ram/aurora5f.jpg" region="video_region"
regPoint="middle" transIn="fromStar" transOut="toBlue" begin="2s"
fill="remove" dur="158s" />
</par>
</seq>
<seq>
<video src="chttp://www.cwdjr.net/ram/eyeslicesmall.ram"
region="video_region" regPoint="middle" title="eye slice - RM"
transIn="fromPinWheel" transOut="toRed" begin="2s" fill="remove"
dur="70s" />
</seq>
<seq>
<video src="chttp://www.cwdjr.net/ram/pianopullsmall.ram"
region="video_region" regPoint="middle" title="piano pull - RM"
transIn="fromHexagon" transOut="toRed" begin="2s" fill="remove"
dur="119s" />
</seq>
<seq>
<video src="chttp://www.cwdjr.net/ram/Nosferatu.rmvb"
region="video_region" regPoint="middle" title="Nosferatu - RM"
transIn="fromStar" transOut="toRed" begin="2s" fill="remove" dur="175s"
/>
</seq>
<seq>
<par>
<video src="chttp://www.cwdjr.net/ram/caligari.rmvb"
region="video_region" regPoint="middle" title="Cabinet Of Dr Caligari -
RM" begin="4s" />
<brush color="teal" region="brush_region_1" begin="0s" end="7s" />
<brush color="fuchsia" region="brush_region_2" begin="0.5s" end="9s" />
<brush color="olive" region="brush_region_3" begin="1s" end="5s" />
<brush color="red" region="brush_region_4" begin="1.5s" end="11s" />
<brush color="purple" region="brush_region_5" begin="2s" end="12s" />
<brush color="blue" region="brush_region_6" begin="2.5s" end="8s" />
<brush color="maroon" region="brush_region_7" begin="3s" end="10s" />
<brush color="navy" region="brush_region_8" begin="3.5s" end="6s" />
</par>
</seq>
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/donkey.wav" title="donkey wav"
begin="7s" />
<img src="chttp://www.cwdjr.net/pic/horse_fanny3.jpg"
region="video_region" regPoint="middle" transIn="fromBlue"
transOut="toRed" begin="2s" fill="remove" dur="15s" />
</par>
</seq>
</body>
</smil>

Of course you would also have to point image files to where you store
these on the computer also if you want to be offline when you play the
media.

All of these media are designed for progressive download streaming on a
website. Of course you could store all of the media files in the same
directory as the SMIL file and use relative urls to make it more simple
to play offline. However, I did not care to duplicate a lot of long
media files that I already had stored at various locations on the
server.

Dec 26 '06 #4
Hello cwdjrxyz,
Ok, I realize I can generate the url dynamically using a
document.write().
But (important)
How will I control the player programmatically?
Can I control the media player - set/get position, stop, play, pause -
via
Javascript?
thanks,
Anil

On Dec 26, 5:13 pm, "cwdjrxyz" <spamtr...@cwdjr.infowrote:
anil.r...@gmail.com wrote:
Hello cwdjrxyz,
Thank you for the pointers.
Reading through video_multiformat2 source,
I am having difficulty with the following:
<object data="http://www.cwdjr.net/ram/realmix.rpm"
type="audio/x-pn-realaudio-plugin" ....
The plugin is loaded from a remote url.
Is there any way to load the player that is installed on the local
desktop instead?
When disconnected from the internet, the user should still be able to
play the AV files.The rpm, with the mime type for it given, is just a standard type of
Real playlist file. It points to where the actual media file or files
are stored. This is just standard procedure, and ensures that the
actual media file gets sent to the real player. The Real developer site
has more details on Real than most people ever will wish to know,
including SMIL that Real will play if a SMIL file is directed to it.

The rpm file is:http://www.cwdjr.net/ram/realmix.smil

In this case it points to the SMIL file at the given url.

If you want to play the smill file locally, you just feed the local
address on the computer where it is stored into the Real Player that
you have brought up. The SMIL2 file is a type of xml file, and in this
case is:

<smil xmlns="http://www.w3.org/2001/SMIL20/Language">
<head>
<layout>
<root-layout width="500" height="450" backgroundColor="blue" />
<region id="video_region" backgroundColor="blue" z-index="1" />
<regPoint id="middle" left="50%" top="50%" regAlign="center" />
<region id="brush_region_1" width="25%" height="50%" left="0" top="0"
z-index="2" />
<region id="brush_region_2" width="25%" height="50%" left="25%" top="0"
z-index="2" />
<region id="brush_region_3" width="25%" height="50%" left="50%" top="0"
z-index="2" />
<region id="brush_region_4" width="25%" height="50%" left="75%" top="0"
z-index="2" />
<region id="brush_region_5" width="25%" height="50%" left="0" top="50%"
z-index="2" />
<region id="brush_region_6" width="25%" height="50%" left="25%"
top="50%" z-index="2" />
<region id="brush_region_7" width="25%" height="50%" left="50%"
top="50%" z-index="2" />
<region id="brush_region_8" width="25%" height="50%" left="75%"
top="50%" z-index="2" />
</layout>
<transition id="fromBlue" type="spiralWipe" subtype="topLeftClockwise"
dur="5s" />
<transition id="fromStar" type="starWipe" subtype="fivePoint" dur="5s"
/>
<transition id="fromKeyhole" type="miscShapeWipe" subtype="keyhole"
dur="5s" />
<transition id="fromHexagon" type="hexagonWipe" subtype="vertical"
dur="5s" />
<transition id="fromBarnZigZag" type="barnZigZagWipe"
subtype="vertical" dur="10s" />
<transition id="fromFourBox" type="fourBoxWipe" subtype="cornersIn"
dur="10s" />
<transition id="fromPinWheel" type="pinWheelWipe" subtype="fourBlade"
dur="5s" />
<transition id="fromSnake" type="snakeWipe" subtype="topLeftHorizontal"
dur="10s" />
<transition id="toBlue" type="fade" subtype="fadeToColor"
fadeColor="blue" dur="5s" />
<transition id="toRed" type="fade" subtype="fadeToColor"
fadeColor="red" dur="5s" />
<transition id="toGreen" type="fade" subtype="fadeToColor"
fadeColor="green" dur="5s" />
<transition id="toYellow" type="fade" subtype="fadeToColor"
fadeColor="yellow" dur="5s" />
</head>
<body>
<seq>
<img src="chttp://www.cwdjr.net/ram/roach.gif" id="image1"
region="video_region" dur="34s" width="256" height="256" left="0"
top="0" fill="hold" title="The SMIL Bug">
<animate targetElement="image1" attributeName="width" from="256"
to="128" begin="3s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="height" values="256;128"
calcMode="linear" begin="4s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="left" to="196"
begin="9s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="top" to="196"
begin="14s" dur="4s" fill="freeze" />
<animateMotion targetElement="image1" to="-128,-128" begin="19s"
dur="4s" fill="freeze" />
<set targetElement="image1" attributeName="left" to="64" begin="24s"
fill="freeze" />
<set targetElement="image1" attributeName="top" to="64" begin="24s"
fill="freeze" />
<animate targetElement="image1" attributeName="height" to="256"
begin="26s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="width" to="256"
begin="26s" dur="4s" fill="freeze" />
<animateMotion targetElement="image1" to="0,0" begin="30s" dur="4s"
fill="freeze" />
</img>
</seq>
<seq>
<par>
<audio
src="chttp://www.cwdjr.net/souopera/Tetrazzini_CaroNome_1911.rmj"
title="Caro Nome RA" author="Tetrazzini" />
<img src="chttp://www.cwdjr.net/picsnap/roscoe_foil2.jpg"
region="video_region" regPoint="middle" transIn="fromBarnZigZag"
transOut="toGreen" begin="2s" fill="remove" dur="240s" z-index="3" />
</par>
</seq>
<!-- remove comment tags from around below code to play midi. It is not
included here as Real may ask you to install the Crescendo plugin to
play the midi. -->
<!--
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/cancan.mid" title="Cancan mid" />
<img src="chttp://www.cwdjr.net/picani/dancer_blacktights.gif"
region="video_region" regPoint="middle" transIn="fromStar"
transOut="toYellow" begin="2s" fill="remove" dur="120s" />
</par>
</seq>
-->
<seq>
<par>
<audio src="chttp://www.cwdjr.net/souearly/ColumbiaExpositionMarch.wma"
title="Columbia Exposition March WMA" author="Sousa" />
<img src="chttp://www.cwdjr.net/picsnap/roscoe.jpg"
region="video_region" regPoint="middle" transIn="fromFourBox"
transOut="toYellow" begin="2s" fill="remove" dur="148s" />
</par>
</seq>
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/SidewalksOfNewYork.mp3"
title="Sidewalks Of New York MP3" />
<img src="chttp://www.cwdjr.net/pic3/burlesque_house2.jpg"
region="video_region" regPoint="middle" transIn="fromSnake"
transOut="toRed" begin="2s" fill="remove" dur="95s" />
</par>
</seq>
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/ZarahLeander.ram" title="Zarah
Leander RA" />
<img src="chttp://www.cwdjr.net/ram/aurora5f.jpg" region="video_region"
regPoint="middle" transIn="fromStar" transOut="toBlue" begin="2s"
fill="remove" dur="158s" />
</par>
</seq>
<seq>
<video src="chttp://www.cwdjr.net/ram/eyeslicesmall.ram"
region="video_region" regPoint="middle" title="eye slice - RM"
transIn="fromPinWheel" transOut="toRed" begin="2s" fill="remove"
dur="70s" />
</seq>
<seq>
<video src="chttp://www.cwdjr.net/ram/pianopullsmall.ram"
region="video_region" regPoint="middle" title="piano pull - RM"
transIn="fromHexagon" transOut="toRed" begin="2s" fill="remove"
dur="119s" />
</seq>
<seq>
<video src="chttp://www.cwdjr.net/ram/Nosferatu.rmvb"
region="video_region" regPoint="middle" title="Nosferatu - RM"
transIn="fromStar" transOut="toRed" begin="2s" fill="remove" dur="175s"
/>
</seq>
<seq>
<par>
<video src="chttp://www.cwdjr.net/ram/caligari.rmvb"
region="video_region" regPoint="middle" title="Cabinet Of Dr Caligari -
RM" begin="4s" />
<brush color="teal" region="brush_region_1" begin="0s" end="7s" />
<brush color="fuchsia" region="brush_region_2" begin="0.5s" end="9s" />
<brush color="olive" region="brush_region_3" begin="1s" end="5s" />
<brush color="red" region="brush_region_4" begin="1.5s" end="11s" />
<brush color="purple" region="brush_region_5" begin="2s" end="12s" />
<brush color="blue" region="brush_region_6" begin="2.5s" end="8s" />
<brush color="maroon" region="brush_region_7" begin="3s" end="10s" />
<brush color="navy" region="brush_region_8" begin="3.5s" end="6s" />
</par>
</seq>
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/donkey.wav" title="donkey wav"
begin="7s" />
<img src="chttp://www.cwdjr.net/pic/horse_fanny3.jpg"
region="video_region" regPoint="middle" transIn="fromBlue"
transOut="toRed" begin="2s" fill="remove" dur="15s" />
</par>
</seq>
</body>
</smil>

Of course you would also have to point image files to where you store
these on the computer also if you want to be offline when you play the
media.

All of these media are designed for progressive download streaming on a
website. Of course you could store all of the media files in the same
directory as the SMIL file and use relative urls to make it more simple
to play offline. However, I did not care to duplicate a lot of long
media files that I already had stored at various locations on the
server.
Dec 27 '06 #5

forgot to add - also on non-IE or non-Windows platforms.
-
Anil

On Dec 27, 7:44 am, anil.r...@gmail.com wrote:
Hello cwdjrxyz,
Ok, I realize I can generate the url dynamically using a
document.write().
But (important)
How will I control the player programmatically?
Can I control the media player - set/get position, stop, play, pause -
via
Javascript?
thanks,
Anil

On Dec 26, 5:13 pm, "cwdjrxyz" <spamtr...@cwdjr.infowrote:
anil.r...@gmail.com wrote:
Hello cwdjrxyz,
Thank you for the pointers.
Reading through video_multiformat2 source,
I am having difficulty with the following:
<object data="http://www.cwdjr.net/ram/realmix.rpm"
type="audio/x-pn-realaudio-plugin" ....
The plugin is loaded from a remote url.
Is there any way to load the player that is installed on the local
desktop instead?
When disconnected from the internet, the user should still be able to
play the AV files.The rpm, with the mime type for it given, is just a standard type of
Real playlist file. It points to where the actual media file or files
are stored. This is just standard procedure, and ensures that the
actual media file gets sent to the real player. The Real developer site
has more details on Real than most people ever will wish to know,
including SMIL that Real will play if a SMIL file is directed to it.
The rpm file is:http://www.cwdjr.net/ram/realmix.smil
In this case it points to the SMIL file at the given url.
If you want to play the smill file locally, you just feed the local
address on the computer where it is stored into the Real Player that
you have brought up. The SMIL2 file is a type of xml file, and in this
case is:
<smil xmlns="http://www.w3.org/2001/SMIL20/Language">
<head>
<layout>
<root-layout width="500" height="450" backgroundColor="blue" />
<region id="video_region" backgroundColor="blue" z-index="1" />
<regPoint id="middle" left="50%" top="50%" regAlign="center" />
<region id="brush_region_1" width="25%" height="50%" left="0" top="0"
z-index="2" />
<region id="brush_region_2" width="25%" height="50%" left="25%" top="0"
z-index="2" />
<region id="brush_region_3" width="25%" height="50%" left="50%" top="0"
z-index="2" />
<region id="brush_region_4" width="25%" height="50%" left="75%" top="0"
z-index="2" />
<region id="brush_region_5" width="25%" height="50%" left="0" top="50%"
z-index="2" />
<region id="brush_region_6" width="25%" height="50%" left="25%"
top="50%" z-index="2" />
<region id="brush_region_7" width="25%" height="50%" left="50%"
top="50%" z-index="2" />
<region id="brush_region_8" width="25%" height="50%" left="75%"
top="50%" z-index="2" />
</layout>
<transition id="fromBlue" type="spiralWipe" subtype="topLeftClockwise"
dur="5s" />
<transition id="fromStar" type="starWipe" subtype="fivePoint" dur="5s"
/>
<transition id="fromKeyhole" type="miscShapeWipe" subtype="keyhole"
dur="5s" />
<transition id="fromHexagon" type="hexagonWipe" subtype="vertical"
dur="5s" />
<transition id="fromBarnZigZag" type="barnZigZagWipe"
subtype="vertical" dur="10s" />
<transition id="fromFourBox" type="fourBoxWipe" subtype="cornersIn"
dur="10s" />
<transition id="fromPinWheel" type="pinWheelWipe" subtype="fourBlade"
dur="5s" />
<transition id="fromSnake" type="snakeWipe" subtype="topLeftHorizontal"
dur="10s" />
<transition id="toBlue" type="fade" subtype="fadeToColor"
fadeColor="blue" dur="5s" />
<transition id="toRed" type="fade" subtype="fadeToColor"
fadeColor="red" dur="5s" />
<transition id="toGreen" type="fade" subtype="fadeToColor"
fadeColor="green" dur="5s" />
<transition id="toYellow" type="fade" subtype="fadeToColor"
fadeColor="yellow" dur="5s" />
</head>
<body>
<seq>
<img src="chttp://www.cwdjr.net/ram/roach.gif" id="image1"
region="video_region" dur="34s" width="256" height="256" left="0"
top="0" fill="hold" title="The SMIL Bug">
<animate targetElement="image1" attributeName="width" from="256"
to="128" begin="3s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="height" values="256;128"
calcMode="linear" begin="4s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="left" to="196"
begin="9s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="top" to="196"
begin="14s" dur="4s" fill="freeze" />
<animateMotion targetElement="image1" to="-128,-128" begin="19s"
dur="4s" fill="freeze" />
<set targetElement="image1" attributeName="left" to="64" begin="24s"
fill="freeze" />
<set targetElement="image1" attributeName="top" to="64" begin="24s"
fill="freeze" />
<animate targetElement="image1" attributeName="height" to="256"
begin="26s" dur="4s" fill="freeze" />
<animate targetElement="image1" attributeName="width" to="256"
begin="26s" dur="4s" fill="freeze" />
<animateMotion targetElement="image1" to="0,0" begin="30s" dur="4s"
fill="freeze" />
</img>
</seq>
<seq>
<par>
<audio
src="chttp://www.cwdjr.net/souopera/Tetrazzini_CaroNome_1911.rmj"
title="Caro Nome RA" author="Tetrazzini" />
<img src="chttp://www.cwdjr.net/picsnap/roscoe_foil2.jpg"
region="video_region" regPoint="middle" transIn="fromBarnZigZag"
transOut="toGreen" begin="2s" fill="remove" dur="240s" z-index="3" />
</par>
</seq>
<!-- remove comment tags from around below code to play midi. It is not
included here as Real may ask you to install the Crescendo plugin to
play the midi. -->
<!--
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/cancan.mid" title="Cancan mid" />
<img src="chttp://www.cwdjr.net/picani/dancer_blacktights.gif"
region="video_region" regPoint="middle" transIn="fromStar"
transOut="toYellow" begin="2s" fill="remove" dur="120s" />
</par>
</seq>
-->
<seq>
<par>
<audio src="chttp://www.cwdjr.net/souearly/ColumbiaExpositionMarch.wma"
title="Columbia Exposition March WMA" author="Sousa" />
<img src="chttp://www.cwdjr.net/picsnap/roscoe.jpg"
region="video_region" regPoint="middle" transIn="fromFourBox"
transOut="toYellow" begin="2s" fill="remove" dur="148s" />
</par>
</seq>
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/SidewalksOfNewYork.mp3"
title="Sidewalks Of New York MP3" />
<img src="chttp://www.cwdjr.net/pic3/burlesque_house2.jpg"
region="video_region" regPoint="middle" transIn="fromSnake"
transOut="toRed" begin="2s" fill="remove" dur="95s" />
</par>
</seq>
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/ZarahLeander.ram" title="Zarah
Leander RA" />
<img src="chttp://www.cwdjr.net/ram/aurora5f.jpg" region="video_region"
regPoint="middle" transIn="fromStar" transOut="toBlue" begin="2s"
fill="remove" dur="158s" />
</par>
</seq>
<seq>
<video src="chttp://www.cwdjr.net/ram/eyeslicesmall.ram"
region="video_region" regPoint="middle" title="eye slice - RM"
transIn="fromPinWheel" transOut="toRed" begin="2s" fill="remove"
dur="70s" />
</seq>
<seq>
<video src="chttp://www.cwdjr.net/ram/pianopullsmall.ram"
region="video_region" regPoint="middle" title="piano pull - RM"
transIn="fromHexagon" transOut="toRed" begin="2s" fill="remove"
dur="119s" />
</seq>
<seq>
<video src="chttp://www.cwdjr.net/ram/Nosferatu.rmvb"
region="video_region" regPoint="middle" title="Nosferatu - RM"
transIn="fromStar" transOut="toRed" begin="2s" fill="remove" dur="175s"
/>
</seq>
<seq>
<par>
<video src="chttp://www.cwdjr.net/ram/caligari.rmvb"
region="video_region" regPoint="middle" title="Cabinet Of Dr Caligari -
RM" begin="4s" />
<brush color="teal" region="brush_region_1" begin="0s" end="7s" />
<brush color="fuchsia" region="brush_region_2" begin="0.5s" end="9s" />
<brush color="olive" region="brush_region_3" begin="1s" end="5s" />
<brush color="red" region="brush_region_4" begin="1.5s" end="11s" />
<brush color="purple" region="brush_region_5" begin="2s" end="12s" />
<brush color="blue" region="brush_region_6" begin="2.5s" end="8s" />
<brush color="maroon" region="brush_region_7" begin="3s" end="10s" />
<brush color="navy" region="brush_region_8" begin="3.5s" end="6s" />
</par>
</seq>
<seq>
<par>
<audio src="chttp://www.cwdjr.net/ram/donkey.wav" title="donkey wav"
begin="7s" />
<img src="chttp://www.cwdjr.net/pic/horse_fanny3.jpg"
region="video_region" regPoint="middle" transIn="fromBlue"
transOut="toRed" begin="2s" fill="remove" dur="15s" />
</par>
</seq>
</body>
</smil>
Of course you would also have to point image files to where you store
these on the computer also if you want to be offline when you play the
media.
All of these media are designed for progressive download streaming on a
website. Of course you could store all of the media files in the same
directory as the SMIL file and use relative urls to make it more simple
to play offline. However, I did not care to duplicate a lot of long
media files that I already had stored at various locations on the
server.- Hide quoted text -- Show quoted text -
Dec 27 '06 #6

an*******@gmail.com wrote:
Hello cwdjrxyz,
Ok, I realize I can generate the url dynamically using a
document.write().
But (important)
How will I control the player programmatically?
Can I control the media player - set/get position, stop, play, pause -
via
Javascript?
If you remain only on IE browsers with ActiveX on, Microsoft has some
information on their developer site for controlling the WMP directly
using scripts. They may use Jscript and sometimes VB script(which does
not work on many other browsers). Microsoft does an extremely poor job
of showing how to use their player in general, and scripting to control
it, for non-IE browsers, and they use such outlandish things as an
embed tag that is not, and never has been, an official W3C tag. A few
years ago I used some Microsoft scripts to detect the presence and
version of the WMP. This failed without warning on the upgrade to the
WMP10. I had to change many web pages. Since then I avoid Microsoft
scripts for controlling their player like the plague. I see no need to
do so. I do not think media should usually be autostarted - that annoys
many people. If you use the player object that I use, it generates the
payer control panel with controls to stop, start, pause, etc. If you
are determined to have the player autostart on audio and play until
finished without user control, you can reduce the player size to about
1 x 1 pixel so that it does not show and set the autostart parameter to
1 instead of 0 to autostart. Then if you are using a mixture of WMP,
Real, QT, etc players, the Microsoft player scripting is not going to
control these except in a few special cases when one has added an
ActiveX plugin for the WMP to a Mozilla family browser. Netscape at one
time had a script, that was huge, to detect if the ActiveX plugin was
added to their browser, and to control playing on the Netscape browser.
Unfortunately it is extremely difficult to detect what browser you have
using script, and subject to failure at any time, because many browsers
can report themselves as other browsers when you use script detection.
This is done to prevent being locked out of a page because the
developer of the page only considers IE ,and perhaps Netscape, and
locks out everything else when the Browser such as Opera or Firefox may
indeed be able to handle the page with few or no problems.

Dec 27 '06 #7

Hello,
I am controlling the default media player from an application - not
directly by the user. Think of it as an application for user training.
thanks,
Anil

On Dec 27, 11:11 am, "cwdjrxyz" <spamtr...@cwdjr.infowrote:
anil.r...@gmail.com wrote:
Hello cwdjrxyz,
Ok, I realize I can generate the url dynamically using a
document.write().
But (important)
How will I control the player programmatically?
Can I control the media player - set/get position, stop, play, pause -
via
Javascript?If you remain only on IE browsers with ActiveX on, Microsoft has some
information on their developer site for controlling the WMP directly
using scripts. They may use Jscript and sometimes VB script(which does
not work on many other browsers). Microsoft does an extremely poor job
of showing how to use their player in general, and scripting to control
it, for non-IE browsers, and they use such outlandish things as an
embed tag that is not, and never has been, an official W3C tag. A few
years ago I used some Microsoft scripts to detect the presence and
version of the WMP. This failed without warning on the upgrade to the
WMP10. I had to change many web pages. Since then I avoid Microsoft
scripts for controlling their player like the plague. I see no need to
do so. I do not think media should usually be autostarted - that annoys
many people. If you use the player object that I use, it generates the
payer control panel with controls to stop, start, pause, etc. If you
are determined to have the player autostart on audio and play until
finished without user control, you can reduce the player size to about
1 x 1 pixel so that it does not show and set the autostart parameter to
1 instead of 0 to autostart. Then if you are using a mixture of WMP,
Real, QT, etc players, the Microsoft player scripting is not going to
control these except in a few special cases when one has added an
ActiveX plugin for the WMP to a Mozilla family browser. Netscape at one
time had a script, that was huge, to detect if the ActiveX plugin was
added to their browser, and to control playing on the Netscape browser.
Unfortunately it is extremely difficult to detect what browser you have
using script, and subject to failure at any time, because many browsers
can report themselves as other browsers when you use script detection.
This is done to prevent being locked out of a page because the
developer of the page only considers IE ,and perhaps Netscape, and
locks out everything else when the Browser such as Opera or Firefox may
indeed be able to handle the page with few or no problems.
Dec 27 '06 #8

Hello cwdjrxyz,
Your post is not clear to me.
As I understand it, please correct me, without ActiveX, one cannot
control the Windows Media Player from JavaScript?
thanks,
Anil
P.S. I found these links - are they different from your post?
http://developer.apple.com/documenta...ipt/index.html
http://forums.mozillazine.org/viewto...06213#CheckWMP
On Dec 27, 11:11 am, "cwdjrxyz" <spamtr...@cwdjr.infowrote:
anil.r...@gmail.com wrote:
Hello cwdjrxyz,
Ok, I realize I can generate the url dynamically using a
document.write().
But (important)
How will I control the player programmatically?
Can I control the media player - set/get position, stop, play, pause -
via
Javascript?If you remain only on IE browsers with ActiveX on, Microsoft has some
information on their developer site for controlling the WMP directly
using scripts. They may use Jscript and sometimes VB script(which does
not work on many other browsers). Microsoft does an extremely poor job
of showing how to use their player in general, and scripting to control
it, for non-IE browsers, and they use such outlandish things as an
embed tag that is not, and never has been, an official W3C tag. A few
years ago I used some Microsoft scripts to detect the presence and
version of the WMP. This failed without warning on the upgrade to the
WMP10. I had to change many web pages. Since then I avoid Microsoft
scripts for controlling their player like the plague. I see no need to
do so. I do not think media should usually be autostarted - that annoys
many people. If you use the player object that I use, it generates the
payer control panel with controls to stop, start, pause, etc. If you
are determined to have the player autostart on audio and play until
finished without user control, you can reduce the player size to about
1 x 1 pixel so that it does not show and set the autostart parameter to
1 instead of 0 to autostart. Then if you are using a mixture of WMP,
Real, QT, etc players, the Microsoft player scripting is not going to
control these except in a few special cases when one has added an
ActiveX plugin for the WMP to a Mozilla family browser. Netscape at one
time had a script, that was huge, to detect if the ActiveX plugin was
added to their browser, and to control playing on the Netscape browser.
Unfortunately it is extremely difficult to detect what browser you have
using script, and subject to failure at any time, because many browsers
can report themselves as other browsers when you use script detection.
This is done to prevent being locked out of a page because the
developer of the page only considers IE ,and perhaps Netscape, and
locks out everything else when the Browser such as Opera or Firefox may
indeed be able to handle the page with few or no problems.
Dec 30 '06 #9

Quicktime recommends using *both* EMBED and OBJECT tags.
However you are using only OBJECT?
-
Anil

On Dec 30, 10:48 am, anil.r...@gmail.com wrote:
Hello cwdjrxyz,
Your post is not clear to me.
As I understand it, please correct me, without ActiveX, one cannot
control the Windows Media Player from JavaScript?
thanks,
Anil
P.S. I found these links - are they different from your post?http://developer.apple.com/documenta...06213#CheckWMP

On Dec 27, 11:11 am, "cwdjrxyz" <spamtr...@cwdjr.infowrote:
anil.r...@gmail.com wrote:
Hello cwdjrxyz,
Ok, I realize I can generate the url dynamically using a
document.write().
But (important)
How will I control the player programmatically?
Can I control the media player - set/get position, stop, play, pause -
via
Javascript?If you remain only on IE browsers with ActiveX on, Microsoft has some
information on their developer site for controlling the WMP directly
using scripts. They may use Jscript and sometimes VB script(which does
not work on many other browsers). Microsoft does an extremely poor job
of showing how to use their player in general, and scripting to control
it, for non-IE browsers, and they use such outlandish things as an
embed tag that is not, and never has been, an official W3C tag. A few
years ago I used some Microsoft scripts to detect the presence and
version of the WMP. This failed without warning on the upgrade to the
WMP10. I had to change many web pages. Since then I avoid Microsoft
scripts for controlling their player like the plague. I see no need to
do so. I do not think media should usually be autostarted - that annoys
many people. If you use the player object that I use, it generates the
payer control panel with controls to stop, start, pause, etc. If you
are determined to have the player autostart on audio and play until
finished without user control, you can reduce the player size to about
1 x 1 pixel so that it does not show and set the autostart parameter to
1 instead of 0 to autostart. Then if you are using a mixture of WMP,
Real, QT, etc players, the Microsoft player scripting is not going to
control these except in a few special cases when one has added an
ActiveX plugin for the WMP to a Mozilla family browser. Netscape at one
time had a script, that was huge, to detect if the ActiveX plugin was
added to their browser, and to control playing on the Netscape browser.
Unfortunately it is extremely difficult to detect what browser you have
using script, and subject to failure at any time, because many browsers
can report themselves as other browsers when you use script detection.
This is done to prevent being locked out of a page because the
developer of the page only considers IE ,and perhaps Netscape, and
locks out everything else when the Browser such as Opera or Firefox may
indeed be able to handle the page with few or no problems.- Hide quoted text -- Show quoted text -
Dec 30 '06 #10

an*******@gmail.com wrote:
Quicktime recommends using *both* EMBED and OBJECT tags.
However you are using only OBJECT?
There is no such thing as an embed tag It. has never been part of
official W3C html. It is a relic from the browser war era. QT is
recommending using an ActiveX object, not an ordinary object that does
not depend on ActiveX , as I and many others now use for certain media.
A properly written ActiveX object will validate. Unfortunately many non
IE browsers do not support it, and some turn ActiveX off for security
reasons.
Anil

On Dec 30, 10:48 am, anil.r...@gmail.com wrote:
Hello cwdjrxyz,
Your post is not clear to me.
As I understand it, please correct me, without ActiveX, one cannot
control the Windows Media Player from JavaScript?
thanks,
Anil
P.S. I found these links - are they different from your post?http://developer.apple.com/documenta...06213#CheckWMP
Quicktime is using invalid code for non-IE browsers that often works.
So do several other old time firms. Even they know there is a problem,
as evidenced by the following on the QT site.

__________________________________________________ ________________________

The Mozilla Foundation, in collaboration with Apple, Adobe, Macromedia,
Opera, and Sun Microsystems, are currently working together to define a
new NPAPI interface to allow greater interactivity between
standards-based browsers and plug-ins. Check the Apple website for
updates concerning QuickTime and NPAPI-compliant browsers.

__________________________________________________ ________________________

Just to show exactly what I mean, I took one of the QT site codes to
the official W3C validator and validated it. If you want to use such
junk code, be my guest. However I am not going to aid anyone in writing
such trash. As you will see below, the code is full of errors as given
in great detail by the validator. QT is not alone. I think some of the
old-time software companies need to send their programmers back to
school to learn modern code standards and how to adjust their codes to
be standards compliant.
__________________________________________________ _________________________

This page is not Valid HTML 4.01 Transitional!

Below are the results of attempting to parse this document with an SGML
parser.

1. Error Line 10, column 29: required attribute "TYPE" not specified
..

<script language="JavaScript">

The attribute given above is required for an element that you've
used, but you have omitted it. For instance, in most HTML and XHTML
document types the "type" attribute is required on the "script" element
and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <styleand
type="text/javascript" for <script>.

✉
2. Error Line 32, column 12: there is no attribute "ALIGN" .

<BODY align=center>

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
3. Error Line 38, column 14: there is no attribute "HEIGHT" .

<EMBED HEIGHT=320 WIDTH=240

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
4. Error Line 38, column 24: there is no attribute "WIDTH" .

<EMBED HEIGHT=320 WIDTH=240

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
5. Error Line 40, column 4: there is no attribute "SRC" .

SRC="Poster.mov" TYPE="video/quicktime"

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
6. Error Line 40, column 22: there is no attribute "TYPE" .

SRC="Poster.mov" TYPE="video/quicktime"

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
7. Error Line 42, column 11: there is no attribute "CONTROLLER" .

CONTROLLER="false"

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
8. Error Line 44, column 5: there is no attribute "HREF" .

HREF="javascript:openQTwin('MyMovie.mov')" />

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
9. Error Line 44, column 43: element "EMBED" undefined .

HREF="javascript:openQTwin('MyMovie.mov')" />

You have used the element named above in your document, but the
document type you are using does not define an element of that name.
This error is often caused by:
* incorrect use of the "Strict" document type with a document
that uses frames (e.g. you must use the "Frameset" document type to get
the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>"
or "<marquee>" (this is usually fixed by using CSS to achieve the
desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and
elements must be all lower-case.

✉
10. Error Line 64, column 52: element "EMBED" undefined .

HREF="javascript: alert('You clicked the poster!')" />

You have used the element named above in your document, but the
document type you are using does not define an element of that name.
This error is often caused by:
* incorrect use of the "Strict" document type with a document
that uses frames (e.g. you must use the "Frameset" document type to get
the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>"
or "<marquee>" (this is usually fixed by using CSS to achieve the
desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and
elements must be all lower-case.

✉

Source Listing

Below is the source input I used for this validation:

1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
2. <HTML>
3.
4. <HEAD>
5.
6. <TITLE>Calling JavaScript from QuickTime</TITLE>
7.
8.
9.
10. <script language="JavaScript">
11.
12. <!--
13.
14. function openQTwin(url) {
15.
16. qtwin = window.open(url,"moviewindow",'toolbar=0,location= 0,
directories=0,status=0,menubar=0,scrollbars=0,resi zable=0,
width=360,height=260');
17.
18. qtwin.focus();
19.
20. }
21.
22. // -->
23.
24. </script>
25.
26.
27.
28. </HEAD>
29.
30.
31.
32. <BODY align=center>
33.
34.
35.
36. <P>Calling a JavaScript function: <BR>
37.
38. <EMBED HEIGHT=320 WIDTH=240
39.
40. SRC="Poster.mov" TYPE="video/quicktime"
41.
42. CONTROLLER="false"
43.
44. HREF="javascript:openQTwin('MyMovie.mov')" />
45.
46.
47.
48. <P>
49.
50. Click the poster above to play a MyMovie in a new window.
51.
52. </P>
53.
54.
55.
56. <P>Passing in-line JavaScript commands: <BR>
57.
58. <EMBED HEIGHT=320 WIDTH=240
59.
60. SRC="Poster2.mov" TYPE="video/quicktime"
61.
62. CONTROLLER="false"
63.
64. HREF="javascript: alert('You clicked the poster!')" />
65.
66.
67.
68. <P>
69.
70. Click the poster above to show an alert box.
71.
72. </P>
73.
74.
75.
76. </BODY>
77.
78. </HTML>

The Mozilla Foundation, in collaboration with Apple, Adobe, Macromedia,
Opera, and Sun Microsystems, are currently working together to define a
new NPAPI interface to allow greater interactivity between
standards-based browsers and plug-ins. Check the Apple website for
updates concerning QuickTime and NPAPI-compliant browsers.
This page is not Valid HTML 4.01 Transitional!

Below are the results of attempting to parse this document with an SGML
parser.

1. Error Line 10, column 29: required attribute "TYPE" not specified
..

<script language="JavaScript">

The attribute given above is required for an element that you've
used, but you have omitted it. For instance, in most HTML and XHTML
document types the "type" attribute is required on the "script" element
and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <styleand
type="text/javascript" for <script>.

✉
2. Error Line 32, column 12: there is no attribute "ALIGN" .

<BODY align=center>

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
3. Error Line 38, column 14: there is no attribute "HEIGHT" .

<EMBED HEIGHT=320 WIDTH=240

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
4. Error Line 38, column 24: there is no attribute "WIDTH" .

<EMBED HEIGHT=320 WIDTH=240

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
5. Error Line 40, column 4: there is no attribute "SRC" .

SRC="Poster.mov" TYPE="video/quicktime"

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
6. Error Line 40, column 22: there is no attribute "TYPE" .

SRC="Poster.mov" TYPE="video/quicktime"

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
7. Error Line 42, column 11: there is no attribute "CONTROLLER" .

CONTROLLER="false"

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
8. Error Line 44, column 5: there is no attribute "HREF" .

HREF="javascript:openQTwin('MyMovie.mov')" />

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

✉
9. Error Line 44, column 43: element "EMBED" undefined .

HREF="javascript:openQTwin('MyMovie.mov')" />

You have used the element named above in your document, but the
document type you are using does not define an element of that name.
This error is often caused by:
* incorrect use of the "Strict" document type with a document
that uses frames (e.g. you must use the "Frameset" document type to get
the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>"
or "<marquee>" (this is usually fixed by using CSS to achieve the
desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and
elements must be all lower-case.

✉
10. Error Line 64, column 52: element "EMBED" undefined .

HREF="javascript: alert('You clicked the poster!')" />

You have used the element named above in your document, but the
document type you are using does not define an element of that name.
This error is often caused by:
* incorrect use of the "Strict" document type with a document
that uses frames (e.g. you must use the "Frameset" document type to get
the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>"
or "<marquee>" (this is usually fixed by using CSS to achieve the
desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and
elements must be all lower-case.

✉

Source Listing

Below is the source input I used for this validation:

1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
2. <HTML>
3.
4. <HEAD>
5.
6. <TITLE>Calling JavaScript from QuickTime</TITLE>
7.
8.
9.
10. <script language="JavaScript">
11.
12. <!--
13.
14. function openQTwin(url) {
15.
16. qtwin = window.open(url,"moviewindow",'toolbar=0,location= 0,
directories=0,status=0,menubar=0,scrollbars=0,resi zable=0,
width=360,height=260');
17.
18. qtwin.focus();
19.
20. }
21.
22. // -->
23.
24. </script>
25.
26.
27.
28. </HEAD>
29.
30.
31.
32. <BODY align=center>
33.
34.
35.
36. <P>Calling a JavaScript function: <BR>
37.
38. <EMBED HEIGHT=320 WIDTH=240
39.
40. SRC="Poster.mov" TYPE="video/quicktime"
41.
42. CONTROLLER="false"
43.
44. HREF="javascript:openQTwin('MyMovie.mov')" />
45.
46.
47.
48. <P>
49.
50. Click the poster above to play a MyMovie in a new window.
51.
52. </P>
53.
54.
55.
56. <P>Passing in-line JavaScript commands: <BR>
57.
58. <EMBED HEIGHT=320 WIDTH=240
59.
60. SRC="Poster2.mov" TYPE="video/quicktime"
61.
62. CONTROLLER="false"
63.
64. HREF="javascript: alert('You clicked the poster!')" />
65.
66.
67.
68. <P>
69.
70. Click the poster above to show an alert box.
71.
72. </P>
73.
74.
75.
76. </BODY>
77.
78. </HTML>

Dec 30 '06 #11
ok, I am not interested in religious wars when it concerns technology.
Anything that works.
1) Looking at your examples, video_multi_ BR3/Format, I dont see where
you control the player from Javascript. Can an "ordinary object" be
controlled via Javascript?

2) I am wondering how to generate the html dynamically.
Perhaps I need to use Iframe with document.write() to dynamically
generate the html containing the
media player depending on whether QT/WMP/Real is selected?
Will it work?
thanks,
Anil
On Dec 30, 4:11Â*pm, "cwdjrxyz" <spamtr...@cwdjr.infowrote:
anil.r...@gmail.com wrote:
Quicktime recommends using *both* EMBED and OBJECT tags.
However you are using only OBJECT?There is no such thing as an embed tag It. has never been part of
official W3C html. It is a relic from the browser war era. QT is
recommending using an ActiveX object, not an ordinary object that does
not depend on ActiveX , as I and many others now use for certain media.
A properly written ActiveX object will validate. Unfortunately many non
IE browsers do not support it, and some turn ActiveX off for security
reasons.
Anil
On Dec 30, 10:48 am, anil.r...@gmail.com wrote:
Hello cwdjrxyz,
Your post is not clear to me.
As I understand it, please correct me, without ActiveX, one cannot
control the Windows Media Player from JavaScript?
thanks,
Anil
P.S. I found these links - are they different from your post?http://developer.apple.com/documenta...ip...Quicktime is using invalid code for non-IE browsers that often works.
So do Â*several other old time firms. Even they know there is a problem,
as evidenced by the following on the QT site.

__________________________________________________ ________________________

The Mozilla Foundation, in collaboration with Apple, Adobe, Macromedia,
Opera, and Sun Microsystems, are currently working together to define a
new NPAPI interface to allow greater interactivity between
standards-based browsers and plug-ins. Check the Apple website for
updates concerning QuickTime and NPAPI-compliant browsers.

__________________________________________________ ________________________

Just to show exactly what I mean, I took one of the QT site codes to
the official W3C validator and validated it. If you want to use such
junk code, be my guest. However I am not going to aid anyone in writing
such trash. As you will see below, the code is full of errors as given
in great detail by the validator. QT is not alone. I think some of the
old-time software companies need to send their programmers back to
school to learn modern code standards and how to adjust their codes to
be standards compliant.
__________________________________________________ _________________________

This page is not Valid HTML 4.01 Transitional!

Below are the results of attempting to parse this document with an SGML
parser.

Â* Â*1. Error Line 10, column 29: required attribute "TYPE" not specified
.

Â* Â* Â* <script language="JavaScript">

Â* Â* Â* The attribute given above is required for an elementthat you've
used, but you have omitted it. For instance, in most HTML and XHTML
document types the "type" attribute is required on the "script" element
and the "alt" attribute is required for the "img" element.

Â* Â* Â* Typical values for type are type="text/css" for <styleand
type="text/javascript" for <script>.

Â* Â* Â* ✉
Â* Â*2. Error Line 32, column 12: there is no attribute "ALIGN" .

Â* Â* Â* <BODY align=center>

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*3. Error Line 38, column 14: there is no attribute "HEIGHT" .

Â* Â* Â* <EMBED HEIGHT=320 WIDTH=240

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*4. Error Line 38, column 24: there is no attribute "WIDTH" .

Â* Â* Â* <EMBED HEIGHT=320 WIDTH=240

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*5. Error Line 40, column 4: there is no attribute "SRC" .

Â* Â* Â* SRC="Poster.mov" TYPE="video/quicktime"

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*6. Error Line 40, column 22: there is no attribute "TYPE" .

Â* Â* Â* SRC="Poster.mov" TYPE="video/quicktime"

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*7. Error Line 42, column 11: there is no attribute "CONTROLLER" .

Â* Â* Â* CONTROLLER="false"

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*8. Error Line 44, column 5: there is no attribute "HREF" .

Â* Â* Â* HREF="javascript:openQTwin('MyMovie.mov')" />

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*9. Error Line 44, column 43: element "EMBED" undefined .

Â* Â* Â* HREF="javascript:openQTwin('MyMovie.mov')" />

Â* Â* Â* You have used the element named above in your document, but the
document type you are using does not define an element of that name.
This error is often caused by:
Â* Â* Â* Â* Â* * incorrect use of the "Strict" document type with a document
that uses frames (e.g. you must use the "Frameset" document type to get
the "<frameset>" element),
Â* Â* Â* Â* Â* * by using vendor proprietary extensions such as "<spacer>"
or "<marquee>" (this is usually fixed by using CSS to achieve the
desired effect instead).
Â* Â* Â* Â* Â* * by using upper-case tags in XHTML (in XHTML attributes and
elements must be all lower-case.

Â* Â* Â* ✉
Â* 10. Error Line 64, column 52: element "EMBED" undefined .

Â* Â* Â* HREF="javascript: alert('You clicked the poster!')" />

Â* Â* Â* You have used the element named above in your document, but the
document type you are using does not define an element of that name.
This error is often caused by:
Â* Â* Â* Â* Â* * incorrect use of the "Strict" document type with a document
that uses frames (e.g. you must use the "Frameset" document type to get
the "<frameset>" element),
Â* Â* Â* Â* Â* * by using vendor proprietary extensions such as "<spacer>"
or "<marquee>" (this is usually fixed by using CSS to achieve the
desired effect instead).
Â* Â* Â* Â* Â* * by using upper-case tags in XHTML (in XHTML attributes and
elements must be all lower-case.

Â* Â* Â* ✉

Source Listing

Below is the source input I used for this validation:

Â* Â*1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
Â* Â*2. <HTML>
Â* Â*3.
Â* Â*4. <HEAD>
Â* Â*5.
Â* Â*6. <TITLE>Calling JavaScript from QuickTime</TITLE>
Â* Â*7.
Â* Â*8.
Â* Â*9.
Â* 10. <script language="JavaScript">
Â* 11.
Â* 12. <!--
Â* 13.
Â* 14. function openQTwin(url) {
Â* 15.
Â* 16. qtwin = window.open(url,"moviewindow",'toolbar=0,location= 0,
directories=0,status=0,menubar=0,scrollbars=0,resi zable=0,
width=360,height=260');
Â* 17.
Â* 18. qtwin.focus();
Â* 19.
Â* 20. }
Â* 21.
Â* 22. // -->
Â* 23.
Â* 24. </script>
Â* 25.
Â* 26.
Â* 27.
Â* 28. </HEAD>
Â* 29.
Â* 30.
Â* 31.
Â* 32. <BODY align=center>
Â* 33.
Â* 34.
Â* 35.
Â* 36. <P>Calling a JavaScript function: <BR>
Â* 37.
Â* 38. <EMBED HEIGHT=320 WIDTH=240
Â* 39.
Â* 40. SRC="Poster.mov" TYPE="video/quicktime"
Â* 41.
Â* 42. CONTROLLER="false"
Â* 43.
Â* 44. HREF="javascript:openQTwin('MyMovie.mov')" />
Â* 45.
Â* 46.
Â* 47.
Â* 48. <P>
Â* 49.
Â* 50. Click the poster above to play a MyMovie in a new window.
Â* 51.
Â* 52. </P>
Â* 53.
Â* 54.
Â* 55.
Â* 56. <P>Passing in-line JavaScript commands: <BR>
Â* 57.
Â* 58. <EMBED HEIGHT=320 WIDTH=240
Â* 59.
Â* 60. SRC="Poster2.mov" TYPE="video/quicktime"
Â* 61.
Â* 62. CONTROLLER="false"
Â* 63.
Â* 64. HREF="javascript: alert('You clicked the poster!')" />
Â* 65.
Â* 66.
Â* 67.
Â* 68. <P>
Â* 69.
Â* 70. Click the poster above to show an alert box.
Â* 71.
Â* 72. </P>
Â* 73.
Â* 74.
Â* 75.
Â* 76. </BODY>
Â* 77.
Â* 78. </HTML>

The Mozilla Foundation, in collaboration with Apple, Adobe, Macromedia,
Opera, and Sun Microsystems, are currently working together to define a
new NPAPI interface to allow greater interactivity between
standards-based browsers and plug-ins. Check the Apple website for
updates concerning QuickTime and NPAPI-compliant browsers.

This page is not Valid HTML 4.01 Transitional!

Below are the results of attempting to parse this document with an SGML
parser.

Â* Â*1. Error Line 10, column 29: required attribute "TYPE" not specified
.

Â* Â* Â* <script language="JavaScript">

Â* Â* Â* The attribute given above is required for an elementthat you've
used, but you have omitted it. For instance, in most HTML and XHTML
document types the "type" attribute is required on the "script" element
and the "alt" attribute is required for the "img" element.

Â* Â* Â* Typical values for type are type="text/css" for <styleand
type="text/javascript" for <script>.

Â* Â* Â* ✉
Â* Â*2. Error Line 32, column 12: there is no attribute "ALIGN" .

Â* Â* Â* <BODY align=center>

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*3. Error Line 38, column 14: there is no attribute "HEIGHT" .

Â* Â* Â* <EMBED HEIGHT=320 WIDTH=240

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*4. Error Line 38, column 24: there is no attribute "WIDTH" .

Â* Â* Â* <EMBED HEIGHT=320 WIDTH=240

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*5. Error Line 40, column 4: there is no attribute "SRC" .

Â* Â* Â* SRC="Poster.mov" TYPE="video/quicktime"

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*6. Error Line 40, column 22: there is no attribute "TYPE" .

Â* Â* Â* SRC="Poster.mov" TYPE="video/quicktime"

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*7. Error Line 42, column 11: there is no attribute "CONTROLLER" .

Â* Â* Â* CONTROLLER="false"

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*8. Error Line 44, column 5: there is no attribute "HREF" .

Â* Â* Â* HREF="javascript:openQTwin('MyMovie.mov')" />

Â* Â* Â* You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheight" (this is
usually fixed by using CSS to achieve the desired effect instead).

Â* Â* Â* This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

Â* Â* Â* How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute. If you received this error when using the <embed>
element to incorporate flash media in a Web page, see the FAQ item on
valid flash.

Â* Â* Â* ✉
Â* Â*9. Error Line 44, column 43: element "EMBED" undefined .

Â* Â* Â* HREF="javascript:openQTwin('MyMovie.mov')" />

Â* Â* Â* You have used the element named above in your document, but the
document type you are using does not define an element of that name.
This error is often caused by:
Â* Â* Â* Â* Â* * incorrect use of the "Strict" document type with a document
that uses frames (e.g. you must use the "Frameset" document type to get
the "<frameset>" element),
Â* Â* Â* Â* Â* * by using vendor proprietary extensions such as "<spacer>"
or "<marquee>" (this is usually fixed by using CSS to achieve the
desired effect instead).
Â* Â* Â* Â* Â* * by using upper-case tags in XHTML (in XHTML attributes and
elements must be all lower-case.

Â* Â* Â* ✉
Â* 10. Error Line 64, column 52: element "EMBED" undefined .

Â* Â* Â* HREF="javascript: alert('You clicked the poster!')" />

Â* Â* Â* You have used the element named above in your document, but the
document type you are using does not define an element of that name.
This error is often caused by:
Â* Â* Â* Â* Â* * incorrect use of the "Strict" document type with a document
that uses frames (e.g. you must use the "Frameset" document type to get
the "<frameset>" element),
Â* Â* Â* Â* Â* * by using vendor proprietary extensions such as "<spacer>"
or "<marquee>" (this is usually fixed by using CSS to achieve the
desired effect instead).
Â* Â* Â* Â* Â* * by using upper-case tags in XHTML (in XHTML attributes and
elements must be all lower-case.

Â* Â* Â* ✉

Source Listing

Below is the source input I used for this validation:

Â* Â*1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
Â* Â*2. <HTML>
Â* Â*3.
Â* Â*4. <HEAD>
Â* Â*5.
Â* Â*6. <TITLE>Calling JavaScript from QuickTime</TITLE>
Â* Â*7.
Â* Â*8.
Â* Â*9.
Â* 10. <script language="JavaScript">
Â* 11.
Â* 12. <!--
Â* 13.
Â* 14. function openQTwin(url) {
Â* 15.
Â* 16. qtwin = window.open(url,"moviewindow",'toolbar=0,location= 0,
directories=0,status=0,menubar=0,scrollbars=0,resi zable=0,
width=360,height=260');
Â* 17.
Â* 18. qtwin.focus();
Â* 19.
Â* 20. }
Â* 21.
Â* 22. // -->
Â* 23.
Â* 24. </script>
Â* 25.
Â* 26.
Â* 27.
Â* 28. </HEAD>
Â* 29.
Â* 30.
Â* 31.
Â* 32. <BODY align=center>
Â* 33.
Â* 34.
Â* 35.
Â* 36. <P>Calling a JavaScript function: <BR>
Â* 37.
Â* 38. <EMBED HEIGHT=320 WIDTH=240
Â* 39.
Â* 40. SRC="Poster.mov" TYPE="video/quicktime"
Â* 41.
Â* 42. CONTROLLER="false"
Â* 43.
Â* 44. HREF="javascript:openQTwin('MyMovie.mov')" />
Â* 45.
Â* 46.
Â* 47.
Â* 48. <P>
Â* 49.
Â* 50. Click the poster above to play a MyMovie in a new window.
Â* 51.
Â* 52. </P>
Â* 53.
Â* 54.
Â* 55.
Â* 56. <P>Passing in-line JavaScript commands: <BR>
Â* 57.
Â* 58. <EMBED HEIGHT=320 WIDTH=240
Â* 59.
Â* 60. SRC="Poster2.mov" TYPE="video/quicktime"
Â* 61.
Â* 62. CONTROLLER="false"
Â* 63.
Â* 64. HREF="javascript: alert('You clicked the poster!')" />
Â* 65.
Â* 66.
Â* 67.
Â* 68. <P>
Â* 69.
Â* 70. Click the poster above to show an alert box.
Â* 71.
Â* 72. </P>
Â* 73.
Â* 74.
Â* 75.
Â* 76. </BODY>
Â* 77.
Â* 78. </HTML>
Jan 1 '07 #12

Anil wrote:
ok, I am not interested in religious wars when it concerns technology.
Anything that works.
No hard feelings, but I will not help anyone to write invalid code in
the "anything that works" style. You may be able to find some who will
at various groups associated with the various media players. I feel I
have wasted my time on this thread, and I see no reason to respond
more. Good luck in finding what you want.

Jan 1 '07 #13

I think you have misunderstood.
Can you help me write *valid* code that works?

On Dec 31, 9:05 pm, "cwdjrxyz" <spamtr...@cwdjr.infowrote:
Anil wrote:
ok, I am not interested in religious wars when it concerns technology.
Anything that works. No hard feelings, but I will not help anyone to write invalid code in
the "anything that works" style. You may be able to find some who will
at various groups associated with the various media players. I feel I
have wasted my time on this thread, and I see no reason to respond
more. Good luck in finding what you want.
Jan 1 '07 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: alg | last post by:
Is it possible to put different types of objects in a single STL list? If not what STL template should be used which will contains various objects of different types? Thanks for your help!
9
by: Nils Petter Vaskinn | last post by:
Why is it that if I have an overloaded function like: void foo(int i); void foo(char *c); I can't do: void bar() { foo( condition ? 5 : "NULL"); }
7
by: Office Drone | last post by:
I'm a bit confused about memory usage, and for some reason I wasn't able to find a single point-of-call to get the amount of memory available. If we take, for instance, the Windows platform: ...
17
by: tuvok | last post by:
How can objects of different types be stored in a collection? For example: struct S1 { /*...*/ }; struct S2 { /*...*/ }; struct Sn { /*...*/ }; template<typename T> class X { public:
1
by: JC | last post by:
Hi, I have to play a streaming audio. So in a thread I play audio as follow thread{ //some code for(;;){ //some code waveOutPrepareHeader(hwo, &(whdr), sizeof(WAVEHDR)); waveOutWrite(hwo,...
0
by: Dony Isnandi | last post by:
Hi all, I want to read and play a Vox audio from a web based application. Any help would be appreciated. tia Dony Isnandi
20
by: pinkfloydhomer | last post by:
Is it well-defined and portable to do something like: typedef struct { int type; char c; } S1; typedef struct {
4
by: Dmitry Kulinich | last post by:
Guys! Is there are any possibility to create nodes with duplicate names and different types in XSD? I've read the whole specification and tried in a many different ways, but not successfull. ...
8
by: Born Bugler | last post by:
What I'm actually talking about is, when you put the same class in different assemblies, you get two different types. This is reasonable (if you would call it) in most cases as it avoids possible...
15
by: Juha Nieminen | last post by:
I'm sure this is not a new idea, but I have never heard about it before. I'm wondering if this could work: Assume that you have a common base class and a bunch of classes derived from it, and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.