JMF applet  in webpage

Hello all
I finally succeededin making AVReceive class work. But now I need to open it on a webpage. So I tried to convert into a java applet but I could not.
Can any one kindly help me in this.
Thanx all.

>
I am accessing a webcam from an applet embedded in a webpage using JMF 2.1. I am using JButtons using Image Icons. When i view the applet using applet viewer both the player and buttons appear fine. However when the applet is embedded in a jsp page the image JButtons don't appear at all. >That is probably because of security. Add 10 Dukes to the thread to indicate you are serious about resolving this, and I might expand on that answer.

Similar Messages

  • 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?

  • 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

  • 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 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

  • 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.

  • Embedding Applet into Webpages

    I have created applets in Jbuilder 8 associated with a client. When the first Client applet (ClientUDP) runs it sends information to the server and opens a new panel. When I embedded the applets into a Webpage the information is not being sent and the panels aren't opening.
    Assuming this is a class path issue, I created a jar file of my project called untitled1.jar, which is the archive for the web page, but this is not working. Here is some of the HTML file.
    <applet
    codebase = "."
    code = "clientServer.ClientUDP.class"
    archive = "clientServer.untitled1.jar"
    >
    </applet>
    I'm using IE6 as my browser.
    Any suggestions would be great,
    Thanks

    Hi all. Im developing a webpage and i want to include a java applet which displays live feed from an IP Camera. I tried running the page with the applet, but it just shows this error. The class file is in the same directory as the webpage alrd. Really no idea how to solve it. :confused: This is how the error looks like.
    java.lang.NoClassDefFoundError: Camera (wrong name: javaviewer/Camera)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NoClassDefFoundError: Camera (wrong name: javaviewer/Camera)
    Please help!

  • 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.

  • 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.

  • 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.

  • 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.

  • JMF Applet

    I finally committed some time last Saturday to developing an Applet to connect to a webcam and take snapshots. Much to my delight, it was a breeze!
    My concern at this point is my potential clients and their use of the system. Now first, JMF only works with webcams that support VFW or WDM, so as it is, I'm already having to tell the client that they must have a certain type of webcam in order to run. In addition, I have to tell them to download the JMF and install it. However, now I'm wondering if I can avoid that installation. Someone said somewhere that you can package up the JMF classes needed into a Jar file and the Applet will automatically download the files. My question is, is that true? Or does the client have to install the JMF. If it is true, what must be done to set that up?

    I finally committed some time last Saturday to
    developing an Applet to connect to a webcam and take
    snapshots. Much to my delight, it was a breeze!
    My concern at this point is my potential clients and
    their use of the system. Now first, JMF only works
    with webcams that support VFW or WDM, so as it is, I'm
    already having to tell the client that they must have
    a certain type of webcam in order to run. In addition,
    I have to tell them to download the JMF and install
    it. However, now I'm wondering if I can avoid that
    installation. Someone said somewhere that you can
    package up the JMF classes needed into a Jar file and
    the Applet will automatically download the files. My
    question is, is that true? Or does the client have to
    install the JMF. If it is true, what must be done to
    set that up?Hello, I've developed something similar. but i can only run using the java command or when i run using my compiler. How do i get it to run in applet?

  • 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+Applet html

    Well my friends
    my prloblema is as follows:
    I am developing an application with the images to display JMF api of using a Webcam Applet.
    At appletviewer function, but when you put in an applet html does not work ..
    What would you tell me some solution?

    Sorry,I`ve downloaded the applet from the previous link and i simply can`t play the avi file,besides the jmf.jar file is there any other file(which is not included in the jre 1.4.2) required?

  • Java tv jmf applet

    Hi,
    I like to create a player which catch tv tunner card channels and it plays video. Can this possible in java. If you have any bit of code or any idea please share with me. Any site or online books or any ref please welcome.
    Thanks and regards,
    Amit Singh

    Hi Will!
    MY QUESTION: What is the basic differences between the Java Media Framework and the Java TV API?JMF is a scalable technology to handle media in Java. JavaTV is a techology for interactive applications in a television.
    A part of JMF is used in JavaTV to control the media in a television.
    Unless this application needs to run in a television you can stop digging into JavaTV, it's interesting but not what you want for this, focus on JMF.
    // b

Maybe you are looking for

  • How many times can I install SL?

    I have the 28 buck disk,can I use it one more than one Mac?

  • Urgent: sxi_cache on the satellite systems

    Hi every one, The question basically would be how the transaction <b>sxi_cache </b> should behave on the satellite systems. When I run the tcode <b>sxi_cache</b> on one of the satellite system. I get 2 error messages 1.Unable to refresh cache content

  • T500 suggestion

    The one thing I wish I could change about the t500 is: I wish the track pad was bigger.  The problem is, it cant really get bigger unless you change the trackpoint buttons, and there are times where I love the trackpoint. This is what I suggest.. Mak

  • Question about GUI Design on JTable and its separate editor

    Hi all, I need to use JTable with separate editor , that way when I double click one of the JTable's row its editor will popup in another window. Based on GUI design principles, where should I put the editor, in another tab panel or a JDialog ? Any a

  • Adobe Premiere Elements 9 Stopped Working

    When I launch Adobe Premiere Elements 9 the only menu options that are available are to create a new Project or open a previous one, all other menu options are greyed out. Creating a new project has no effect. If I attempt to open a previous project