Web Start Applet Wierdness

Hi,

I’ve spent a little time putting together a .jnlp so I can offer my applet game as a standalone download. I’ve noticed something strange when the applet loads .wav sound effects.

When I load the sounds in, I quickly play() and stop() them so I know they’re prefetched.

Now, when I load the applet embedded in a web page - either locally or from a web server - it’s fine. When I run it as a web start applet, locally it is fine, but when it’s run from a web server the sound loading part is very, very slow.

I’ve tried it from a personal web server on the same machine too, with the same results.

All the resources are in a .jar, and loading images is still as quick - so why not .wavs?

Many thanks,

Mark

Hmm, I was going to link you to Kev’s webstart tutorial, but his site is down.

Sounds will always take a lot longer to load than images because they are very hard to compress and usually much larger, but I don’t see why java web start from a web server specifically would give problems. I personally have never had my own server to tool around with, so I can’t say whether I’ve encountered this problem. Although this isn’t strictly a networking question, you might be better suited to posting your question there, as they’ll have more knowledge of server-specific issues.

Odd little issue.

OK, I’ll try there.

Thanks :slight_smile:

M