473,797 Members | 2,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to get mouseClicks on RealPlayer

I've embedded a RealPlayer window in a page, and am unable to get
mouse clicks. The clip plays, but clicks are ignored.

I'm running IE5.5 on Win2k, with the following code:

<embed name="RPEmbed" src="http://..." CONTROLS=ImageW indow
AUTOSTART=true onLButtonUp="al ert('rpm');retu rn false;">

I've also tried setting SetWantMouseEve nts(true), but to no avail:

<SCRIPT language="JavaS cript">
document.getEle mentById("RPEmb ed").SetWantMou seEvents(true);
</SCRIPT>

What am I missing? Is this even possible?

Thanks.

MichaelF
Jul 20 '05 #1
6 2494
In article <44************ *************@p osting.google.c om>,
mf*******@MJFla nagan.com says...
I've embedded a RealPlayer window in a page, and am unable to get
mouse clicks. The clip plays, but clicks are ignored.

I'm running IE5.5 on Win2k, with the following code:

<embed name="RPEmbed" src="http://..." CONTROLS=ImageW indow
AUTOSTART=true onLButtonUp="al ert('rpm');retu rn false;">

I've also tried setting SetWantMouseEve nts(true), but to no avail:

<SCRIPT language="JavaS cript">
document.getEle mentById("RPEmb ed").SetWantMou seEvents(true);
</SCRIPT>

What am I missing? Is this even possible?

Where did you learn about "onLButtonU p" and "SetWantMouseEv ents"?

--
Hywel Never knowingly understood
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #2
I got that from the RealPlayer help files on their site. I suspect
it's ActiveX info, although the help files say it's for scripting,
including JavaScript. "RealOne Player Scripting Guide," 15 Oct 2002.

Hywel Jenkins <hy**********@h otmail.com> wrote in message news:<MP******* *************** **@news.freeser ve.net>...
In article <44************ *************@p osting.google.c om>,
mf*******@MJFla nagan.com says...
I've embedded a RealPlayer window in a page, and am unable to get
mouse clicks. The clip plays, but clicks are ignored.

I'm running IE5.5 on Win2k, with the following code:

<embed name="RPEmbed" src="http://..." CONTROLS=ImageW indow
AUTOSTART=true onLButtonUp="al ert('rpm');retu rn false;">

I've also tried setting SetWantMouseEve nts(true), but to no avail:

<SCRIPT language="JavaS cript">
document.getEle mentById("RPEmb ed").SetWantMou seEvents(true);
</SCRIPT>

What am I missing? Is this even possible?

Where did you learn about "onLButtonU p" and "SetWantMouseEv ents"?

Jul 20 '05 #3
Tim, thanks for that. You're right about "id" vs. "name."

Looking at the link you posted, it looks to me as if I cannot control
RP in IE if I embed RP via <embed> (only NS). I may be able to do it
if I use <object>, but the doc doesn't explicitly say so. It shows
<object> and controlling via VBScript, but not JavaScript. Is that
how you read it? Have you done this in IE and JavaScript?

Thanks.

"Tim Williams" <sa************ @THISpacbell.ne t> wrote in message news:<0a******* *************@n ewssvr14.news.p rodigy.com>...
http://service.real.com/help/library...s/embedint.htm

BTW "name" is not the same as "id". If you want to use getElementById then
your embed needs an id.

tim.

"MichaelF" <mf*******@MJFl anagan.com> wrote in message
news:44******** *************** **@posting.goog le.com...
I've embedded a RealPlayer window in a page, and am unable to get
mouse clicks. The clip plays, but clicks are ignored.

I'm running IE5.5 on Win2k, with the following code:

<embed name="RPEmbed" src="http://..." CONTROLS=ImageW indow
AUTOSTART=true onLButtonUp="al ert('rpm');retu rn false;">

I've also tried setting SetWantMouseEve nts(true), but to no avail:

<SCRIPT language="JavaS cript">
document.getEle mentById("RPEmb ed").SetWantMou seEvents(true);
</SCRIPT>

What am I missing? Is this even possible?

Thanks.

MichaelF

Jul 20 '05 #4
I am not for certain about the RA player, but it is possible with the
Windows Media Player 9 (WMP). The problem is that there are now
several kinds of players that a person may have installed. One person
may play midis and wavs on the WMP, while the next may have the RA
player set up to be primary for these. If you are just writing a page
for your own use, then the problem is not so large. A demo page for
WMP9 which is set up to be primary for midis and wavs is at the URL
http://www.wtv-zone.com/cwdjrsxyz/wm...mp_popup2.html . This
embeds the WMP so that it is hidden and does not pop up in your face
and hide the screen every time you play a new selection. When you
examine the code, you will find links to 3 short external scripts, two
JS and 1 VB to do this. It is necessary to detect the presence of the
WMP9 on the viewing browser, write an embedded object if it is found,
and direct to another code for sound if the WMP9 is not found.This
works fine on my Dell with Windows XP and the IE6 browser. I have 4
different media players and 3 browsers installed, so to make such code
work right on all of these combinations is more than I would want to
tackle. The code I use is somewhat of a Frankenstein monster of
techniques I found at Microsoft and various other places on the web.
Sound has become much more complicated on web pages for general
viewing, as we appear to be in the middle of a media player war, and
standards are different for each player.
Jul 20 '05 #5
Tim, thanks for your patience. I've got a lot of it working, but no
click response. The link you gave helped quite a bit, but in reading
the description of how to get clicks, it doesn't seem at all clear to
me as to how to proceed with JavaScript. I suspect it's not do-able
in IE with JavaScript. It seems to me that it's do-able with NN, or
with IE and VBScript.

For example, the RealMedia doc
(http://service.real.com/help/library...s/embedint.htm)
samples for callbacks (two of them) are for Netscape only. That
doesn't mean callbacks don't work in JavaScript, but... Also, the doc
has the following example, for VBScript only:
=============== ==
Receiving Callbacks Through VBScript
To receive callbacks through VBScript, you use
the <OBJECT> tag ID, shown here set to RVOCX:

<OBJECT ID=RVOCX HEIGHT=256 WIDTH=256
CLASSID="clsid: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
<PARAM NAME="controls" VALUE="all">
<PARAM NAME="SRC" VALUE="http://www.example.com/video1.rm">
</OBJECT>

You then use a <SCRIPT> tag to receive a VBScript callback.
The following example shows a callback for OnShowStatus:

<P>Status Text:
<input type="text" name="statusTex t" size=100><br></P>
<SCRIPT language="VBS">
Sub RVOCX_OnShowSta tus(byVal text)
statusText.Valu e=text
End Sub
</SCRIPT>
=============== ====

That doesn't work in JavaScript (at least as I've translated it, and
using OnLButtonUp):

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

<html>
<head>
<title>Untitled </title>
<SCRIPT language="JavaS cript">

function onClk (button_flags, x_pos, y_pos) {
alert ("onClk!!");
}

function OnLButtonUp(fla gs, x, y){
alert ("OnLButtonUp!! ");
}

function WinLoad() {
document.getEle mentById("RVOCX ").SetWantMouse Events(true);
}
</SCRIPT>

</head>

<body onLoad="WinLoad ();" onClick="alert( 'body click');">

<OBJECT ID=RVOCX HEIGHT=60% WIDTH=60% onClick="alert( 'click!');"
CLASSID="clsid: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
<PARAM name="MAINTAINA SPECT" value="false">
<PARAM name="AUTOSTART " value="TRUE">
<PARAM name="CONTROLS" value="ImageWin dow">
<PARAM NAME="SRC"
VALUE="file://D:\Program
Files\RealPlaye r\samples\clips \welcome.rm">
</OBJECT>

</body>
</html>

I get clicks in the body of the page, but not clicks on the RP
control.

Any ideas? Thanks again.

MichaelF

"Tim Williams" <sa************ @THISpacbell.ne t> wrote in message news:<Rx******* ***********@new ssvr14.news.pro digy.com>...
Have not done it in either - just gave you the link. There should be no
difference (essentially) between using vbscript and javascript.

Tim.

"MichaelF" <mf*******@MJFl anagan.com> wrote in message
news:44******** *************** ***@posting.goo gle.com...
Tim, thanks for that. You're right about "id" vs. "name."

Looking at the link you posted, it looks to me as if I cannot control
RP in IE if I embed RP via <embed> (only NS). I may be able to do it
if I use <object>, but the doc doesn't explicitly say so. It shows
<object> and controlling via VBScript, but not JavaScript. Is that
how you read it? Have you done this in IE and JavaScript?

Thanks.

"Tim Williams" <sa************ @THISpacbell.ne t> wrote in message

news:<0a******* *************@n ewssvr14.news.p rodigy.com>...
http://service.real.com/help/library...s/embedint.htm
BTW "name" is not the same as "id". If you want to use getElementById then your embed needs an id.

tim.

"MichaelF" <mf*******@MJFl anagan.com> wrote in message
news:44******** *************** **@posting.goog le.com...
> I've embedded a RealPlayer window in a page, and am unable to get
> mouse clicks. The clip plays, but clicks are ignored.
>
> I'm running IE5.5 on Win2k, with the following code:
>
> <embed name="RPEmbed" src="http://..." CONTROLS=ImageW indow
> AUTOSTART=true onLButtonUp="al ert('rpm');retu rn false;">
>
> I've also tried setting SetWantMouseEve nts(true), but to no avail:
>
> <SCRIPT language="JavaS cript">
> document.getEle mentById("RPEmb ed").SetWantMou seEvents(true);
> </SCRIPT>
>
> What am I missing? Is this even possible?
>
> Thanks.
>
> MichaelF

Jul 20 '05 #6
Update: I emailed a RealMedia customer support person, and they said
this:

I believe you are reading that correctly. By my understanding
Javascript is not supported on IE due to changes in Javascript
imlementation on this browser type.

Here's how I got around that. The doc says you can use VBScript, so
that's what I did. I capture the click in VBScript, and then call a
JavaScript function:

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

<html>
<head>
<title>Untitled </title>
<SCRIPT language="JavaS cript">

function onClk (button_flags, x_pos, y_pos) {
alert ("onClk!!");
}

function WinLoad() {
document.getEle mentById("RVOCX ").SetWantMouse Events(true);
}
</SCRIPT>
<SCRIPT language="VBS">
Sub RVOCX_OnShowSta tus(byVal text)
if ("" <> text) then statusText.Valu e = statusText.Valu e + "..." +
text
End Sub

Sub RVOCX_OnLButton Up(byVal flags, byVal x, byVal y)
//alert("click from vbs")
onClk flags, x, y
End Sub
</SCRIPT>

</head>

<body name="BOD" onLoad="WinLoad ();" onClick="alert( 'body click');">

<OBJECT ID=RVOCX HEIGHT=60% WIDTH=60% onClick="alert( 'click!');"
CLASSID="clsid: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
<PARAM name="MAINTAINA SPECT" value="false">
<PARAM name="AUTOSTART " value="TRUE">
<PARAM name="CONTROLS" value="ImageWin dow">
<PARAM NAME="SRC"
VALUE="file://D:\Program
Files\RealPlaye r\samples\clips \welcome.rm">
</OBJECT>
<P>Status Text:<input type="text" name="statusTex t" size=100><br></P>
</body>
</html>
mf*******@MJFla nagan.com (MichaelF) wrote in message news:<44******* *************** ****@posting.go ogle.com>...
Tim, thanks for your patience. I've got a lot of it working, but no
click response. The link you gave helped quite a bit, but in reading
the description of how to get clicks, it doesn't seem at all clear to
me as to how to proceed with JavaScript. I suspect it's not do-able
in IE with JavaScript. It seems to me that it's do-able with NN, or
with IE and VBScript.

Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2988
by: maxim mat | last post by:
Hi I need to build client for web service. But when I'm using Visual Studio .NET to add Web Reference, I get error: "Custom tool error: Unable to import WebService/Schema. Unable to import binding 'controllerSoapBinding' from namespace 'http://Bla-Bla-Bla'. Unable to import operation 'getClient'. The datatype 'Array' is missing. " Some problem when I try to use wsdl.exe tool in .NET. I get: Schema validation warning: Type 'cww:Class' is...
16
4227
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the project in debug mode (by hitting F5) it gives an error message "Error while trying to run project: Unable to start debugging on the web server.
0
1239
by: Lone | last post by:
Hi all, Im trying to stream an RealPlayer file to the client. In classis asp, the code was as such: <% Response.Buffer=True Response.ContentType="audio/x-pn-realaudio" %> rtsp://myserver/filename.ra?start=""&end=""&title="Test"
1
3540
by: TRI_CODER | last post by:
I am trying to solve the following exception. The exception occurs when my ASP.NET code behind code attemtps to access a remore site using SSL. Please note that all certificates are valid and the remote site is trusted. Also, my web site uses a custom HTTPModule implemented in a DLL named Security.dll. Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll. Description: An unhandled exception occurred during...
3
7225
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.dll' WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.Windows.Forms.dll' WARNING: Unable to...
6
3638
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web 'http://localhost/anywebappname'. The Web 'http://localhost/anywebappname' does not exist" Obviously...
0
12069
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in '/CinemaBookingSystem' Application. -------------------------------------------------------------------------------- ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN for process
4
6506
by: =?Utf-8?B?SnVhbiBEZW50?= | last post by:
Hi, I am getting the following in a VC++ EXE (using VS2005) that links several C++ DLLs and uses MFC and ATL, when I try to start it under the debugger: ------- 'Exactus.UX.Studio.v1.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded. 'Exactus.UX.Studio.v1.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
0
1639
by: caothanhtra | last post by:
Dear my friend. Can you tell me how to use Realplayer dll in my C# project? Give a small example. thanks.
0
9536
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10468
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10245
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7559
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5458
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4131
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.