• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

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

0
antonumia
Asked:
antonumia
1 Solution
 
antonumiaAuthor Commented:
<param name="WindowlessVideo" value="-1">
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now