Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

playing windows media files in netscape

Status
Not open for further replies.

phentalmyst

Programmer
Jan 30, 2001
18
US
hello..im tryin to get windows media player to work properly when embedded into a html file. the files play ok, but i cant get the controls to show up, even though they still do in IE. i tried using javascript:MediaPlayer.Play() and other functions, but still, nothing worked.

please help! here's my code.

thanks!

+++++++++++++++++++++++++++++++++++++

<html>

<head>
<title>New Page 1</title>
</head>

<body>

<p align=&quot;center&quot;>

<object classid=&quot;clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95&quot; id=&quot;MediaPlayer&quot; width=&quot;239&quot; height=&quot;179&quot; align=&quot;center&quot;>
<param name=&quot;AudioStream&quot; value=&quot;-1&quot;>
<param name=&quot;AutoSize&quot; value=&quot;-1&quot;>
<param name=&quot;AutoStart&quot; value=&quot;-1&quot;>
<param name=&quot;AnimationAtStart&quot; value=&quot;-1&quot;>
<param name=&quot;AllowScan&quot; value=&quot;-1&quot;>
<param name=&quot;AllowChangeDisplaySize&quot; value=&quot;-1&quot;>
<param name=&quot;AutoRewind&quot; value=&quot;-1&quot;>
<param name=&quot;Balance&quot; value=&quot;0&quot;>
<param name=&quot;BaseURL&quot; value>
<param name=&quot;BufferingTime&quot; value=&quot;5&quot;>
<param name=&quot;CaptioningID&quot; value>
<param name=&quot;ClickToPlay&quot; value=&quot;-1&quot;>
<param name=&quot;CursorType&quot; value=&quot;0&quot;>
<param name=&quot;CurrentPosition&quot; value=&quot;-1&quot;>
<param name=&quot;CurrentMarker&quot; value=&quot;0&quot;>
<param name=&quot;DefaultFrame&quot; value>
<param name=&quot;DisplayBackColor&quot; value=&quot;0&quot;>
<param name=&quot;DisplayForeColor&quot; value=&quot;16777215&quot;>
<param name=&quot;DisplayMode&quot; value=&quot;0&quot;>
<param name=&quot;DisplaySize&quot; value=&quot;0&quot;>
<param name=&quot;Enabled&quot; value=&quot;-1&quot;>
<param name=&quot;EnableContextMenu&quot; value=&quot;-1&quot;>
<param name=&quot;EnablePositionControls&quot; value=&quot;0&quot;>
<param name=&quot;EnableFullScreenControls&quot; value=&quot;0&quot;>
<param name=&quot;EnableTracker&quot; value=&quot;-1&quot;>
<param name=&quot;Filename&quot; value=&quot; <param name=&quot;InvokeURLs&quot; value=&quot;-1&quot;>
<param name=&quot;Language&quot; value=&quot;-1&quot;>
<param name=&quot;Mute&quot; value=&quot;0&quot;>
<param name=&quot;PlayCount&quot; value=&quot;1&quot;>
<param name=&quot;PreviewMode&quot; value=&quot;0&quot;>
<param name=&quot;Rate&quot; value=&quot;1&quot;>
<param name=&quot;SAMILang&quot; value>
<param name=&quot;SAMIStyle&quot; value>
<param name=&quot;SAMIFileName&quot; value>
<param name=&quot;SelectionStart&quot; value=&quot;-1&quot;>
<param name=&quot;SelectionEnd&quot; value=&quot;-1&quot;>
<param name=&quot;SendOpenStateChangeEvents&quot; value=&quot;-1&quot;>
<param name=&quot;SendWarningEvents&quot; value=&quot;-1&quot;>
<param name=&quot;SendErrorEvents&quot; value=&quot;-1&quot;>
<param name=&quot;SendKeyboardEvents&quot; value=&quot;0&quot;>
<param name=&quot;SendMouseClickEvents&quot; value=&quot;0&quot;>
<param name=&quot;SendMouseMoveEvents&quot; value=&quot;0&quot;>
<param name=&quot;SendPlayStateChangeEvents&quot; value=&quot;-1&quot;>
<param name=&quot;ShowCaptioning&quot; value=&quot;0&quot;>
<param name=&quot;ShowControls&quot; value=&quot;-1&quot;>
<param name=&quot;ShowAudioControls&quot; value=&quot;-1&quot;>
<param name=&quot;ShowDisplay&quot; value=&quot;0&quot;>
<param name=&quot;ShowGotoBar&quot; value=&quot;0&quot;>
<param name=&quot;ShowPositionControls&quot; value=&quot;-1&quot;>
<param name=&quot;ShowStatusBar&quot; value=&quot;0&quot;>
<param name=&quot;ShowTracker&quot; value=&quot;-1&quot;>
<param name=&quot;TransparentAtStart&quot; value=&quot;0&quot;>
<param name=&quot;VideoBorderWidth&quot; value=&quot;0&quot;>
<param name=&quot;VideoBorderColor&quot; value=&quot;0&quot;>
<param name=&quot;VideoBorder3D&quot; value=&quot;0&quot;>
<param name=&quot;Volume&quot; value=&quot;-20&quot;>
<param name=&quot;WindowlessVideo&quot; value=&quot;0&quot;><embed SRC=&quot; WIDTH=&quot;320&quot; HEIGHT=&quot;240&quot; CONSOLE=&quot;clip1&quot; CONTROLS=&quot;ImageWindow&quot; BACKGROUNDCOLOR=&quot;black&quot; CENTER=&quot;true&quot; AUTOSTART=&quot;true&quot; NOLABELS=&quot;true&quot;>
</object>
</body>

</html>
 
Fair enough; I do this all the time. First, get rid of any properties you won't usee (makes the html a little cleaner).

Try this:

<object id=&quot;mmPlayer&quot;
name=&quot;mmPlayer&quot;
classid=&quot;CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95&quot;
codebase=&quot; width=&quot;176&quot;
height=&quot;216&quot;
type=&quot;application/x-oleobject&quot;
standby=&quot;Loading Microsoft Media Player components...&quot;>
<param name=&quot;filename&quot; value=&quot; <param name=&quot;ShowControls&quot; value=&quot;true&quot;>
<param name=&quot;ShowAudioControls&quot; value=&quot;true&quot;>
<param name=&quot;ShowPositionControls&quot; value=&quot;false&quot;>
<param name=&quot;ShowTracker&quot; value=&quot;true&quot;>
<param name=&quot;ShowStatusBar&quot; value=&quot;true&quot;>
<param name=&quot;AnimationatStart&quot; value=&quot;true&quot;>
<param name=&quot;AutoStart&quot; value=&quot;true&quot;>
<param name=&quot;AutoSize&quot; value=&quot;false&quot;>

<embed id=&quot;mmPlayer&quot;
name=&quot;mmPlayer&quot;
src=&quot; pluginspage=&quot; type=&quot;video/x-ms-asf-plugin&quot;
width=&quot;176&quot;
height=&quot;216&quot;
showcontrols=&quot;1&quot;
showaudiocontrols=&quot;1&quot;
showpositioncontrols=&quot;0&quot;
showtracker=&quot;1&quot;
showstatusbar=&quot;1&quot;
animationatstart=&quot;1&quot;
autostart=&quot;1&quot;
autosize=&quot;0&quot;>
</embed>
</object>


Funky thing about WMP I learned from trial and error. If you want an exact lookalike from the IE version, make the &quot;true&quot; from IE controls and make them &quot;1&quot; (and &quot;0&quot; for false).

For example:

the equivalent of

<param name=&quot;ShowStatusBar&quot; value=&quot;true&quot;>

is

showstatusbar=&quot;1&quot;

Hope that helps.
 
One more note,

I'm not sure why you submit a thread here and it adds a semi-colon at the end of some href's. Just omit the semi-colon when you write your finished code...

8198/funny/movies/squash.avi&quot;>

instead of

8198/funny/movies/squash.avi&quot;;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top