Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Fastest way to remove Windows Media Player from IE page?

Posted on 2011-03-10
2
Medium Priority
?
214 Views
Last Modified: 2012-05-11
I have a windows media object in a locally loaded page using  the code below.

When i replace it with an image, it takes &+ seconds to happen using the destroyWMV function below.

How can I make this instant-ish?

It is for internet explorer 7+ only.

thanks
<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
  • 2
2 Comments
 
LVL 1

Author Comment

by:antonumia
ID: 35095592
Anyone?
0
 
LVL 1

Accepted Solution

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

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

782 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