Link to home
Start Free TrialLog in
Avatar of antonumia
antonumiaFlag for United States of America

asked on

Delete Windows Media Player instance from webpage?

have a windows media object in a locally loaded page using  the code below.

When i replace it with an image, it takes 7+ seconds to happen using the destroyWMV function (using jquery at the mo) below.

How can I make this much faster?

It is for internet explorer only.

thanks,

Anton
<OBJECT  id="visualisationMedia" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"  height="100%" type=application/x-oleobject  width="100%" STANDBY="Loading Microsoft Windows Media Player components..."><PARAM NAME="AudioStream" VALUE="1"><PARAM NAME="AutoStart" VALUE="1"><PARAM NAME="BufferingTime" VALUE="5"><PARAM NAME="DefaultFrame" VALUE=""><PARAM NAME="DisplayForeColor" VALUE="16777215"><PARAM NAME="DisplayMode" VALUE="0"><PARAM NAME="DisplaySize" VALUE="4"><PARAM NAME="Enabled" VALUE="1"><PARAM NAME="EnableContextMenu" VALUE="0"><PARAM NAME="EnableFullScreenControls" VALUE="1"><PARAM NAME="Filename" VALUE="video/'+ this.id+'"><PARAM NAME="ShowControls" VALUE="1"><PARAM NAME="ShowAudioControls" VALUE="1"><PARAM NAME="Volume" VALUE="-600"></OBJECT>



function destroyWMV(){
	if (lastitem == "wmv"){
		visualisationMedia.pause();
		$('#visualisationMedia').html('<img src="img/blank.gif" />');
		lastitem = "img";
	}	
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of antonumia
antonumia
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial