Groups > Browsers > Opera Browser Plugins > QuickTime player is embedded as an ActiveX control




QuickTime player is embedded as an ActiveX control

QuickTime player is embedded as an ActiveX control
Sat, 06 Jan 2007 23:28:47 -000
Dear All

I have a very simple problem. I have embedded a simple QuickTime movie  
into a standard HTML page.
For some reason, I cannot seem to reference the ID of the QuickTime object.
My objective, is that when the QuickTime movie is clicked on, this event  
triggers the mouse X/Y co-ordinates relative to the QucikTime player to be  
passed to another function.

In Firefox, Netscape , this works fine.
In Opera the QuickTime player, when clicked on, seems not to be able to  
record the click event & therefore cannot record the mouse co-ordinates.

It also seems that the QuickTime plug-in for Opera is actually handled by  
ActiveX somehow, which is why clicking on it, has no effect at all.
Strangely though, the player is embedded, using the <EMBED> tag rather  
than the <OBJECT> tag.
The <OBJECT> tag is usually the one involved with ActiveX.
I am quite confused as to how QuickTime runs in Opera.

Can anyone enlighten me to how I could solve this problem?

OPERATING ENVIRONMENT:

I am using Windows XP Professional, SP2 and Opera 9. I have got QuickTime  
7 player installed and my laptop is a Dell Inspiron 9100, with plenty of  
RAM and a decent Intel processor.

Many thanks in advance to anyone who can help!

The code is below:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>


<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--

function operaClick(){
var x = document.getElementById("sample").offsetLeft;
var y = document.getElementById("sample").offsetTop;
document.getElementById("sample").onmouseup = function(e) {
alert("X: " + (e.pageX - x) + " Y: " + (e.pageY - y) +
"");
}
}

onload = function() {
operaClick();
}

//-->
</SCRIPT>

</head>

<body BGCOLOR="#000000">

<EMBED ID="sample" WIDTH="320" HEIGHT="240"
TYPE="video/quicktime"  
PLUGINSPAGE="http://www.apple.com/quicktime/download/"
AUTOPLAY="false"  
SRC="sample.mov" SCALE="ToFit" CONTROLLER="false" 

ENABLEJAVASCRIPT="true"></EMBED>

</body>
</html>

-- 
Post Reply
about | contact