Deploying jmf
Hello all,
Need some serious help because of time pressure!
Okay, i have a few classes that record video from a webcam or any other device that can record video.
What i need to do now is to deploy this on a website? Is this even possible, i mean can i embed it like an applet? By the way i don't want to use an applet they are too slow...is there another way i can do this? If not how can i speed up the applet?
Thanks all, really appreciate any info. :)
[487 byte] By [
abshirf2a] at [2007-11-27 6:45:06]

# 1
...
> Need some serious help because of time pressure!
>
> Okay, i have a few classes that record video from a
> webcam or any other device that can record video.
>
> What i need to do now is to deploy this on a website?
> Is this even possible, i mean can i embed it like an
> applet?
Although it is theoretically possible, applets are a
PITA, and JMF based applets even more so.
I recommend the project be launched using
web start. Here is an example.
http://www.javasaver.com/testjs/jmf/#test5
>...By the way i don't want to use an applet they
> are too slow...is there another way i can do this?
Applets are only slow at downloading the bytecodes,
otherwise they run every bit as fast as an application.
Did you ensure that only the needed classes were
included in your code's jar's? The JMF Customizer
is designed to make an optimized version of the JMF
for dealing with one particular usage, media type etc.
Once the code is down to the minimum required to
do the job, the applet should load faster, but launching
using web start offers further advantages, since it
can be made to cache the classes for future use!
>...If
> not how can i speed up the applet?
Trim it to only the classes needed, but abandon
the applet concept and go with an application
launched using web start.
# 3
> I have looked into your suggestion of using webstart
> but am right that the user has to download java
> webstart to use the applications i deploy online?
No. The user might need to install Java, but any
modern Java comes with web start as standard.
If the user has Java - they have web start.
The only other question is whether the user's
browser understands what to do with .JNLP files
(files of content-type 'application/x-java-jnlp-file')
Opera was notorious for displaying these files as
if they were content. Andy Herrick (Sun dev. team)
suggests that the latest installer fixes that problem,
and I am working on solutions for older Opera/Java
combos. (Though Sun also provides a script based
solution to detect if the browser understands the
web start launch files).
> If so, do you know a way i can deploy applications on
> the web that doesn't require any downloads of
> anything or instalation of other things?
The user may not have Java, and most probably
will not have JMF, so 'no'.
OTOH, in the web start enabled browser, the
user clicks a link, sees a 'loading...' progress
dialog, and then the app. on-screen. Most
users would not recognise that anything has
been installed.
As I mentioned earlier (I hope) any JMF project
can be trimmed down to include only classes
required for the media types (MOV, MPEG etc.)
and uses of the program (RTP, ..), so can end
up very small depending on what it does.