Solved

Delete Windows Media Player instance from webpage?

Posted on 2011-03-10
1
257 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
1 Comment
 
LVL 1

Accepted Solution

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now