Jump to content

WPI 5.1 and windows media player 10


Recommended Posts


Could you be more precise?

I don't quite understand a few things. Are you trying to install the Media Player or just enable it in wpi?

If it is the second option, have you used nlite to remove the media player from windows?

And something I should have asked first: are you getting an error message? If so, please post a screenshot here or at least write the error here so we can see it.

Link to comment
Share on other sites

Hello

Sorry i dident get all the things in first post...

I have Enable Windows Media Player 10 in WPI

Everything works fine all the soft is install whitout any music enable

But when i Enable Music in WPI so when the install menu come to the screen then the song is played but then i get this error if i select Windows Media Player 10

post-90550-1152216197_thumb.jpg

Link to comment
Share on other sites

Please do the following:

Open optionswizard.js with a text editor (notepad).

Search for the line

document.all.MediaPlayer.close();

Replace the whole line with

document.MediaPlayer.stop();

Tell me if this is working.

Link to comment
Share on other sites

Hello again

this dosent work....you need to have windows media player 10 on the pc

i can hear the sound but when i click begin installation i get the error like the image i have postet...

it seems that the pc need media player 10 before the sound can work problerly under install

Anyone knows if is possible to intragration Windows Media Player 10 Danish on the XP CD

Link to comment
Share on other sites

So, you removed the media player with nlite?

Did you also removed 6.4?

If you still have mplayer 6.4 (generally named mplayer2) you can do this:

Open wpi.htm in your theme's folder (ex: \Themes\Glossy\wpi.htm)

Search for

<div id="mediaplayer" style="position:relative; display:block; z-index:100; overflow:hidden; width:300px; height:44px;">
<object id="MediaPlayer" width="300" height="44" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">
<param name="SendPlayStateChangeEvents" value="1">
<param name="AutoStart" value="1">
<param name="uiMode" value="full">
<param name="PlayCount" value="9999">
<param name="Volume" value="100">
<param name="EnableContextMenu" value="0">
<param name="WindowlessVideo" value="1">
</object>
</div>
<script type="text/javascript">
if (PlayAudioInWPI)
{
document.all.MediaPlayer.url='./Audio/WPI.m3u';
}
</script>

Replace it with

<div id="mediaplayerdiv" style="position:relative; display:block; z-index:100; overflow:hidden; width:300px; height:44px;">
<object id="MediaPlayer" width="300" height="44" CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject">
<param name="SendPlayStateChangeEvents" value="1">
<param name="AutoStart" value="1">
<param name="PlayCount" value="9999">
<param name="Volume" value="0">
<param name="EnableContextMenu" value="0">
<param name="WindowlessVideo" value="1">
</object>
</div>
<script type="text/javascript">
if (PlayAudioInWPI)
{
document.getElementById("MediaPlayer").Filename='./Audio/WPI.m3u';
}
</script>

Now open optionswizard.js and search for

if (PlayAudioInWPI) 
{
document.all.MediaPlayer.close();
document.all.MediaPlayer.url='';
}

Replace it with

if (PlayAudioInWPI) 
{
document.getElementById("MediaPlayer").stop();
document.getElementById("MediaPlayer").Filename='';
}

If you did not remove the media player with nlite, you can do another minor change in optionswizard.js.

The code I gave last time worked for me curiosly but it is not correct.

So search for

if (PlayAudioInWPI) 
{
document.all.MediaPlayer.close();
document.all.MediaPlayer.url='';
}

and replace it with

if (PlayAudioInWPI) 
{
document.getElementById("MediaPlayer").controls.stop();
document.getElementById("MediaPlayer").url='';
}

Edited by sadicq
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...