JMF Applet without JMF installed

How can I run the JMF Applet without installing JMF on very client before?
I already tried to archive the jmf.jar and sound.jar and I found a code:
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="100%" height="100%" codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0"></p>
     <param name="java_code" value="javamediaplayer.SimplePlayerApplet">
     <param name="java_codebase" value="browser/applet/">
     <param name="java_archive" value="javamediaplayer.jar,jmf.jar">
     <param name="type" value="application/x-java-applet;version=1.3">
     <param name="FILE" value="myAudioFile.wav">
but I don't know how to use it!!!
PLEASE help me!!!!
THX!

Hi
I wrote this code to play my JMF applet:
<applet
code=simpleplayerapplet.SimplePlayerApplet
ARCHIVE="jmf.jar,customizer.jar,mediaplayer.jar,multiplayer.jar,sound.jar"
width=320 height=300>
<param name=file value="musica.mp3">
</applet>
It works fine, and the applet starts normally. I have another kind of problem: what I want to play is an mp3. So I downloaded the Sun mp3 plg-in and installed it in my test machine, wich have JMF installed. The applet runs ok. But when I try to test in a machine without JMF (but with the Sun mp3 plug-in installed) i get the Unable to handle format: mpeglayer3 exception. I won't print the stack trace because is a common exception related with the plug-in. What am I doing wrong? I thought that the plug-in was necessary and sufficient for a client to play my test applet.

Similar Messages

  • JMF Applet without JMF installed on clients ? A solution ?

    Hi all. I have compiled RTPPlayerApplet sample downloaded from Sun's web. After comment some "error" lines, I got it working on my client machine with JMF installed.
    I have searched for this solution on forums, but didnt find how to solve this:
    I want that clients only need to have installed JRE, and not JMF. I have read that it can be possible telling in the HTML of the applet that "loads" jmf.jar file, and some others...
    I have tried it, and the applet loads without any error on my client machine without JMF installed, but it doesnt start to play...
    Any suggestion ?
    Does anyone got RTPPlayerApplet working on client machine without JMF installed ?
    Thanks for your help
    John

    I want that ... HTML code is placed).
    I can understand your reasons for not wanting to bother clients with installing the JMF. However, please understand the negative side effect of this approach. If nine other organisations supply your client a JMF-based applet in the same way, the client would be downloading the same JMF jar ten times. Don't even think about patches and upgrades that would require JMF jar updates. If you rely on framework components, don't be shy with distributing the framework where needed.
    And i think that also could be possible ... decrease the size of the file...
    If you compile only the source code of the JMF classes you use or perhaps create a new jar file in which you copy only the JMF classes you've used, this should work. However, for reasons mentioned earlier, this is not quite as user-friendly as it may seem at first glance.
    Think of the JMF as something like Microsoft DirectX. When you install a game that needs DirectX, it checks and -if necessary- installs a complete, new version of DirectX.

  • Running JMF applet without JMF?

    How can I get my JMF applets to run on a users machine without JMF installed on their machine?
    Can I emded a JMF plugin in the HTML code (just enough to let them run the applet!) ?
    thanks

    please dont cry.....
    one thing is u need to send all the class files required for the applet to run on the client side.
    below is the code to detect for the plug in for ie and netscape:
    out.println("<body bgColor=\"#EEEEE0\">");
                        out.println("<h1 align=center>Aspire Chat</h1>");
                        out.println("<table border=1 align=\"center\"><tr><td>");
    //                    out.println("<OBJECT classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\" width=\"400\" height=\"400\" align=\"centre\" codebase=\"http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0\">");
                        out.println("<OBJECT classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\" width=\"400\" height=\"400\" align=\"centre\" codebase=\"http://java.sun.com/products/plugin/autodl/jinstall-1_4_0-win.cab\">");
                        out.println("<PARAM NAME=\"code\" VALUE=\"Vapp.class\">");
                        out.println("<PARAM NAME=\"codebase\" VALUE=\"http://"+host+":8080/aspire\">");
    // out.println("<PARAM NAME=\"archive\" VALUE=\"AspireChat.jar\">");//, sound.jar, jmf.jar
    out.println("<PARAM NAME=\"archive\" VALUE=\"Aspire.jar, jmf.jar\">");//, sound.jar, jmf.jar
         out.println("<PARAM NAME=\"type\" VALUE=\"application/x-java-applet;version=1.4\">");
    out.println("<PARAM NAME=\"scriptable\" VALUE=\"true\">");

  • Jmf applets without jmf installed?

    i completed an application in which i can receive and broadcast audio and video over the lan/internet.
    but i have a restriction now. this only works if the target computer has jmf installed in it.
    I am actually developing an application which works like a live tv on the internet. but as i said, it is restricted only to the computer with jmf installed.
    can others who dont have the jmf installed get the applets running? i heard that i can compress the class files in .jar format and send it. but i dont know the method. and i also dont know if its going to workout.
    once again: if u go to my website, an applet loads and you have to watch my broadcast. i did the part but i am not able to integrate it into the pc's which dont have jmf installed.
    any kind of idea would be greatly appreciated.
    thanks

    As I remember there were some topics exactly matches your (even a name).
    You can just read them - they were answered.
    RTFM.
    Read forum below.
    You cant run JMF without installing.
    You can make a part of JMF to be "installed".
    Search forum.

  • Applet without JMF installation at client side

    hello,
    I am trying developing an applet SIP phone based on Jain Sip Applet Phone( which originally can only deal with audio signal). But I found a big problem that I have to make every client install the JMF, however the clients hope there is no software to be installed locally.
    In application, I can run it without JMF installation by copying all the dlls to system32 directory and add some related JMF source code into my own project. Or just simply put the jmf.property to the "lib" directory, which also works.
    However, as for the applet, it dosen't that simple for the security thing. Here is the output in cosole:
    @mediaManager.detectSupportedCodes- number of capture devices: 2
    - name of the capture device: JavaSound audio capture
    - format accepted by this AUDIO device: LINEAR, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    - format accepted by this AUDIO device: LINEAR, 44100.0 Hz, 16-bit, Mono, LittleEndian, Signed
    - format accepted by this AUDIO device: LINEAR, 22050.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    - format accepted by this AUDIO device: LINEAR, 22050.0 Hz, 16-bit, Mono, LittleEndian, Signed
    - format accepted by this AUDIO device: LINEAR, 11025.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    - format accepted by this AUDIO device: LINEAR, 11025.0 Hz, 16-bit, Mono, LittleEndian, Signed
    - format accepted by this AUDIO device: LINEAR, 8000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    - format accepted by this AUDIO device: LINEAR, 8000.0 Hz, 16-bit, Mono, LittleEndian, Signed
    - name of the capture device: vfw:Microsoft WDM Image Capture (Win32):0
    - format accepted by this VIDEO device: YUV Video Format: Size = java.awt.Dimension[width=352,height=288] MaxDataLength = 202752 DataType = class [B yuvType = 32 StrideY = 704 StrideUV = 704 OffsetY = 0 OffsetU = 1 OffsetV = 3
             - format accepted by this VIDEO device: YUV Video Format: Size = java.awt.Dimension[width=160,height=120] MaxDataLength = 38400 DataType = class [B yuvType = 32 StrideY = 320 StrideUV = 320 OffsetY = 0 OffsetU = 1 OffsetV = 3
             - format accepted by this VIDEO device: YUV Video Format: Size = java.awt.Dimension[width=176,height=144] MaxDataLength = 50688 DataType = class [B yuvType = 32 StrideY = 352 StrideUV = 352 OffsetY = 0 OffsetU = 1 OffsetV = 3
             - format accepted by this VIDEO device: YUV Video Format: Size = java.awt.Dimension[width=320,height=240] MaxDataLength = 153600 DataType = class [B yuvType = 32 StrideY = 640 StrideUV = 640 OffsetY = 0 OffsetU = 1 OffsetV = 3
             - format accepted by this VIDEO device: YUV Video Format: Size = java.awt.Dimension[width=640,height=480] MaxDataLength = 614400 DataType = class [B yuvType = 32 StrideY = 1280 StrideUV = 1280 OffsetY = 0 OffsetU = 1 OffsetV = 3
    java.lang.RuntimeException: No permission to capture from applets
    -> Couldn't connect to audio capture device
    java.lang.RuntimeException: No permission to capture from applets
    -> Couldn't connect to video capture device
          I found that my applet can detect two device which is correct but has "no permission to capture from applets".
          In the progress of installation the JMF, and option is "permit recording from an applet". I read the source code, and found it dose the following works:
          if I choose "permit recording from an applet",  then "allowCapture=1", and in "settingPanel.java" it dose:
         "boolean allowCapture = checkAllowCapture.getState();
          Registry.set("secure.allowCaptureFromApplets", new Boolean(allowCapture));"
          I want to do what the installation progress did to give permition to applet, however, when I do the following:
           private static final String PROP_ALLOW_CAPTURE_FROM_APPLETS
            = "secure.allowCaptureFromApplets";
           Registry.set(PROP_ALLOW_CAPTURE_FROM_APPLETS, new Boolean(true));
           Registry.commit();
          in my project , it throws exception like this: "Failed to initially commit JMFRegistry. Ignoring err.java.lang.SecurityException: commit: Permission denied"
          The code which i thought could give applet the rights is denied.
          Till now, I have also read some similar questions in different forums, but there is no good answer.
          Can you help me? Is there any possibility to run the applet without installation on the client side ? Is my method right? If not, how should I do?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    xljiayuan wrote:
    ..I am trying developing an applet SIP phone based on Jain Sip Applet Phone( which originally can only deal with audio signal). If this is pure audio, can it be done using JavaSound?
    ..But I found a big problem that I have to make every client install the JMF, however the clients hope there is no software to be installed locally.To run an applet, the applet needs to be 'installed' on the user machine. Same with anything else.
    BTW - have you investigated JavaFX? It is effectively the replacement for JMF, and possibly has a better end-user experience than trying to install JMF.
    However, as for the applet, it dosen't that simple for the security thing. Here is the output in cosole:
    in my project , it throws exception like this: "Failed to initially commit JMFRegistry. Ignoring err.java.lang.SecurityException: commit: Permission denied"Is your applet digitally signed? If not, it has no hope of intercepting sound on the client. It is that simple.
    Imagine if you visited a web page with a 1px x 1px applet (effectively invisible) that could hear everything you say, and transmit it back to the server. Sun is not about to allow that, unless the end-user has granted the applet extended permissions.

  • JMF Applet without client side installation

    Hello everybody,
    is it possible that a client (applet in browser) receives a video-stream (from a server) without having jmf installed on its local disk?
    Thanks for any advice
    Chris

    Yeah, if you make your applet link to the JMF.jar file and use a video format supported by the cross-platform pack.

  • How to run JMF Applet on a machine without JMF installed

    Hi
    I have found many question about that but I don't undertand reply.
    I want display a JMF Applet on a machine without JMF installed. This PCs browser is the Netscape navigator 4.78
    I have restrictions, I can't install anything on a client machine. What can I make ?
    Is there solutions ?
    Is it possible to install few components to run the JMF Applet and desinstall it properly ?
    Thanks.
    Sorry I don't speak well english.

    private void detectDevices(Label la) {
    // Check if VFWAuto or SunVideoAuto is available
    Class directAudio = null;
    Class autoAudio = null;
    Class autoVideo = null;
    Class autoVideoPlus = null;
    Object instanceAudio;
    Object instanceVideo;
    Object instanceVideoPlus;
    try {
    directAudio = Class.forName("DirectSoundAuto");
    } catch (Exception e) {
    try {
    autoAudio = Class.forName("JavaSoundAuto");
    } catch (Exception e) {
    try {
    autoVideo = Class.forName("VFWAuto");
    } catch (Exception e) {
    if (autoVideo == null) {
    try {
    autoVideo = Class.forName("SunVideoAuto");
    } catch (Exception ee) {
    try {
    autoVideoPlus = Class.forName("SunVideoPlusAuto");
    } catch (Exception ee) {
    if (autoVideo == null) {
    try {
    autoVideo = Class.forName("V4LAuto");
    } catch (Exception eee) {
    if (directAudio == null && autoAudio == null &&
    autoVideo == null && autoVideoPlus == null) {
    return;
    try {
    if (directAudio != null) {
    instanceAudio = directAudio.newInstance();
    la.setText("loading....dirver:"+directAudio.getName());
    if (autoAudio != null) {
    instanceAudio = autoAudio.newInstance();
    la.setText("loading....dirver:"+autoAudio.getName());
    if (autoVideo != null) {
    instanceVideo = autoVideo.newInstance();
    la.setText("loading....dirver:"+autoVideo.getName());
    if (autoVideoPlus != null) {
    instanceVideoPlus = autoVideoPlus.newInstance();
    la.setText("loading....dirver:"+autoVideoPlus.getName());
    } catch (ThreadDeath td) {
    throw td;
    } catch (Throwable t) {
    call this function for init

  • Can JMF work without installing it?

    Hi,
    Last time i was on this forum i said i won't come back for some years because it's too advanced for me...but now i have this problem and i really want to solve it. I created a music player using JMF. But, if i want to move it on another computer, it requires to install JMF on that computer too. Is there any way to make JMF work without installing it... something like including a JAR in my project? If it is possible, could you explain me the steps, please? A music player isn't very good if it requires two programs to be installed in order to make it work (i mean Java 1.6 and JMF).
    Thank you very much.

    Anakin1989 wrote:
    Hi,
    Is there any way to make JMF work without installing it... something like including a JAR in my project?Depends on what functionality you're using... there's a cross-platform pack of JMF that just requires you to package the JMF.jar file with your program, but that doesn't have the full functionality of the system.
    [http://www.oracle.com/technetwork/java/javase/formats-138492.html]
    If you're using / doing anything that isn't supported by the cross-platform pack then you'll have to have JMF installed in order to run your program.
    You can, of course, package the JMF installer with your own installer, and kick off the JMF installation process as part of your process. You can also track the location of the installed files and install JMF yourself, but, that's going to be complicated, tricky, and probably pretty brittle.

  • It is possible to use jmf without to install the JMF library?

    Hello it is possible to use jmf without to install the JMF library
    in windows or linux machine
    but inserting these library in a jar for java web start?
    thanks

    I have have inserted the library in the my files jar but i have this error
    java.lang.UnsatisfiedLinkError: JMFSecurityManager: java.lang.UnsatisfiedLinkError: no jmvfw in java.library.path
         at com.sun.media.JMFSecurityManager.loadLibrary(JMFSecurityManager.java:206)
         at com.sun.media.protocol.vfw.VFWCapture.<clinit>(VFWCapture.java:19)

  • Can't run JMF Applet in IE

    OS: win2000 professional
    JRE: Jdk-1.4.0._01
    JMF: 2.1
    Borwser: IE 5.0
    I have completed installing the JMF, but no JMF Applet
    can be shown in IE, the messages always are
    "class Not Found, javax.media.ControllerListener" or
    "class Not Found, javax.media.Player"
    anyone can help me? thanks!

    I think I found where the problem comes from.
    In one machine I installed jmf as admin I found following registy key:
    LocalMachine--software--microsoft--javavm
    there is one value called classpath which contains the jmf directory.
    I suppose this key make java plug-in find our jmf library.
    However in anothre machine I installed jmf without admin privalages. I didn't see that key contain my jmf directory. This is because I don't have the privalages to modify this key. The installation doesn't give me any warning messages. I think this is the problem.
    When Iinclude that tag <APPLET archive="jmf.jar" in the html pages. The java console said that the applet don't have the permission to use capture audio devices. So..... It still don't work
    Any suggestions?

  • Question - applet using JMF for playing .mov

    I develop an applet using JMF for playing .mov. It works fine, and the applet starts normally. Even my applet works fine from other computers in our LAN (The applet runs ok without JMF). But only on one PC it doesn't work and I get the following message
    Failed to configure: com.sun.media.PlaybackEngine@a7c45e
    Bad header in the media: moov atom not present
    Error: Unable to realize com.sun.media.PlaybackEngine@a7c45e
    FATAL ERROR: Failed to realize: failed to parse the input media.
    Exception in thread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" java.lang.Error: Failed to realize: failed to parse the input media.
    at PlayerApplet.Fatal(PlayerApplet.java:201)
    at PlayerApplet.controllerUpdate(PlayerApplet.java:191)
    at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
    at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
    at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
    at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
    My html:
    <html>
    <head><title>PlayerApplet</title></head>
    <body>
    <applet code="PlayerApplet.class" archive="fobs4jmf.jar, customizer.jar, jmf.jar, mp3plugin.jar, sound.jar, multiplayer.jar, mediaplayer.jar" width=640 height=510>
    <param name=file value="safexmas.mov">
    </applet>
    </body>
    </html>
    Anyone can help me?
    Thanks for your time

    It started to work but I had to install fobs4jmf on the client computer.
    And put .dll to windows/system33 directory. But how can I play video using applet in browser without installing any software on the client machine?

  • JMF Applet doesn't work

    Hi,
    I've created my first real applet which is basically a mediaplayer. It loads a certain movie (.mpg) and plays it. This is the script i've used: http://java.sun.com/products/java-media/jmf/2.1.1/samples/samples/SimplePlayerApplet.java
    As you can see i've used JMF to create this applet. It works excellent on my computer (where JMF is installed). But whenever I try to execute this applet on a computer without JMF, it just doesn't work. The console gives the following error:
    java.lang.NoClassDefFoundError: javax/media/ControllerListener
    and some more errors below that.
    It seems like the applet runs only on PCs with JMF installed, because then the class javax/media/ControllerListener exists. Is there a way to make the applet so that it also runs on PCs without JMF installed?
    Thanks,
    betonboor

    Try searching the Java Media Framework forum:
    http://forum.java.sun.com/forum.jspa?forumID=28&start=0
    The question has been asked many times before, if I'm not mistaken. If you don't find an answer, try posting your question there.
    Good luck.

  • Compile JMF applet for non JMF JVM

    I have been programing java for about 2 years. I haven't used any extras for java e.g. JMF. If i install JMF on my pc and make an applet using JMF is there any way of compiling it to play on a pc without JMF installed.

    lib/customizer.jar is your best bet. It can make
    relatively small distributables for specific media
    types and uses.
    (Though I'd recommend dumping applets in favour
    of a web start launched application, nowadays..)

  • JMF Applets in IE - desperately seeking help

    how do i run JMF applets in internet explorer of a client where JMF is not installed...is there any downloadable plugin for JMf that the client can download...this very important and i've searching the net but in vain...
    any kind of help would b greatly appreciated....
    wishing u a happy new year
    suri

    Your clients have to download JMF in order to use it in applet. I am not sure whether SUN plan to include it with JRE 1.4 or not.
    Hope it helps,
    St�phane

  • How detect capture device without jmf&java client pc ??

    hi...
    a computer install jmf & java => detect catpure device
    but... no detect capture device without jmf & java clientpc...
    however solved this problem?
    plz...
    thanks..
    email : [email protected]

    You must hard code a dependent platform code to examine the registry or its similar in linux.

Maybe you are looking for

  • System out on Dual Monitor systems

    Hi, I am trying to write an application running on single processor, but dual monitor facility. So differnet monitor must get differnet display from same process. May I know how can I capture the monitor standard output. I know we have System.out tha

  • Equivalent of alloc_oages in solaris 10

    Hi All, Currently iam porting my linux 10 gig network driver into solaris . I have a question regarding Memory allocation , 1. For performance tuning we directly allocate pages in linux ( using alloc_pages) and just unmap them ( using pci_umap) Is th

  • Export from Motion - Soft in FCP

    I created a graphic in motion, output it into fcp and the type and graphics are a bit soft. The export was to a DVCPro DV Quicktime file. Anyone else notice this?

  • Crash during add new contact (Thai language) iOS 8 i5

    Spec : iPhone 5 iOS8.0.2 Crash during add new contact with Thai language in field 'first and last name". This is a bug in iOS 8, right?

  • What Orace DB license for on-line shop?

    hi everyone, 1. do you know what license type is needed when using oracle database in internet, accessed from web pages? let's presume we have one account that web application connects to DB. will it be "named user plus" or "processor" license? 2. Al