Problem with an applet that works right on LAN and does not workon WAN (no display refresh)

H

hibiki

I have a strange problem...
The applet i created in order to display a video flow does work on my
LAN and does not work when it is on WAN...
The repaint() method seems to have no effect on the screen.
The applet works fine with the Microsoft JVM on both LAN and WAN but
does only work on LAN with the Sun one (compiled with Java SDK 1.4.2
from Sun).

You can see my problem at http://www.w3live.com/demonstration.php
thankYou();

--
Salutations,

Joachim Naulet

06 14 90 06 21
http://jnaulet.no-ip.com
 
T

TSchultz55

Joachim,
I noticed the tag: <applet code="W3liveClient"
archive="http://demo.w3live.com:2606/?request=client" WIDTH="320"
HEIGHT="240"> in the page's source code. Port 2606 is the port that
allows the streaming of the video, correct? Perhaps your LAN's
firewall is actively blocking this port. This explains why you see it
on the LAN but not over a WAN. If you are able, configure your router
to open up this port then it should work fine. Hope this helps.

Tim
 
H

hibiki

hibiki a écrit :
I have a strange problem...
The applet i created in order to display a video flow does work on my
LAN and does not work when it is on WAN...
The repaint() method seems to have no effect on the screen.
The applet works fine with the Microsoft JVM on both LAN and WAN but
does only work on LAN with the Sun one (compiled with Java SDK 1.4.2
from Sun).

You can see my problem at http://www.w3live.com/demonstration.php
thankYou();

Finally i solved this problem.
It was due to the network layer in java.
Java offers better performance when you get the bytes from the stream
one by one instead of block by block...
Something like :

InputStream Stream = url.openStream();
byte[] block = new byte[block_length];

DataInputStream DataStream = new DataInputStream(new
BufferedInputStream(Stream));

for(int i = 0;i < block_length; i++)
block = DataStream.readByte();


Thanx all for your support in this terrible challenge.

--
Salutations,

Joachim Naulet

06 14 90 06 21
http://jnaulet.no-ip.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top