Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

2 different behaviours for Java Viewer from same server

Post Reply
Shawn S

2 different behaviours for Java Viewer from same server

Post by Shawn S »

Hi:

I'm trying to have 1 presenter (type 1) and 2 attendees (type 2) both connecting through the Internet.

Type 1 needs full mouse and keyboard control while Type 2 is just a viewer.

How could I achieve this?
Modify the vncviewer.java with some parameters?

How would the winvnc.exe pass different parameters though?

Thanks,
Shawn
lizard
Former moderator
Former moderator
Posts: 171
Joined: 2004-05-03 07:43
Contact:

Post by lizard »

Type1: "view only" off
Type2: "view only" on

gl&hf.
Lizard
Shawn S

Yeah but how do you do that?

Post by Shawn S »

I see what you're saying but how can the winvnc.exe expose/offer two different HTMLs? (one with the parameter viewer on and one with off)

right now, I access it in IE by doing www.mysite.com:5800

Can I somehow pass parameters to the winvnc.exe such as presenter=1?

Do you see my problem?

Thanks,
Shawn
UltraSam
Admin & Developer
Admin & Developer
Posts: 462
Joined: 2004-04-26 20:55
Contact:

Post by UltraSam »

You can try to create 2 different html files and put them on your web server (that must be running on the SAME machine that your WinVNC for Java applet access permission), along the JavaViewer.jar and .class files:

<HTML>
<TITLE>
Your Title for Viewer Type 1
</TITLE>
<APPLET CODE=VncViewer.class ARCHIVE=VncViewer.jar WIDTH=1024 HEIGHT=768>
<param name=PORT value=5900>
<param name=HOST value=YourUltraServerIP>
<param name=ENCODING value=Tight>
<param name="VIEW ONLY" value=No>
</APPLET>
</HTML>

***

<HTML>
<TITLE>
Your Title for Viewer Type 2
</TITLE>
<APPLET CODE=VncViewer.class ARCHIVE=VncViewer.jar WIDTH=1024 HEIGHT=768>
<param name=PORT value=5900>
<param name=HOST value=YourUltraServerIP>
<param name=ENCODING value=Tight>
<param name="VIEW ONLY" value=Yes>
</APPLET>
</HTML>


Then send the corresponding url to your users, depending on their "type"

It should work
UltraSam
jdamian
8
8
Posts: 8
Joined: 2004-11-01 16:42

Post by jdamian »

and in fact it did.

thanks again Sam.

The 2 pages perform amicably, and the best part is, we dont even have to modify any code or hardwire any parameters.

:)
UltraSam
Admin & Developer
Admin & Developer
Posts: 462
Joined: 2004-04-26 20:55
Contact:

Post by UltraSam »

You're welcome :)

The WinVNC codebase "tweaking/modif" would have been by far more tricky, anyway.
UltraSam
Post Reply