Solved

Delete Windows Media Player instance from webpage?

Posted on 2011-03-10
1
262 Views
Last Modified: 2012-06-21
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
Comment
Question by:antonumia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
antonumia earned 0 total points
ID: 35096890
<param name="WindowlessVideo" value="-1">
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question