Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

very urgent i am facing problem to downloading JMF

Thread view: 
rajbala.3399@gmail.com - 21 Nov 2006 06:04 GMT
Hi all,

I want to run mp3 by selecting file from one system and it should be
played in another system by  using socket.
When i run the simple program of media player.
It shows error in commands like

import javax.media.bean.playerbean.*;
import javax.media.ControllerEvent;
import javax.media.ControllerListener;
import javax.media.Manager;
import javax.media.NoPlayerException;
import javax.media.Player;
import javax.media.RealizeCompleteEvent;

The above all imports show "It does not exits..." and show.
I have only netbean IDE5.0. Please give me suggestion for run the JMF
files in netbean or any other way beyond this.
Any type of Your help is appriciated.
ThanQ
-Raju
Lionel - 21 Nov 2006 06:11 GMT
> Hi all,
>
[quoted text clipped - 15 lines]
> files in netbean or any other way beyond this.
> Any type of Your help is appriciated.

What errors are you getting? The above doesn't make sense? Please print
out a full stack trace or whatever you are getting as the error.

I will hazard a guess - you are missing some jar file on the target machine.

Lionel.
rajbala.3399@gmail.com - 21 Nov 2006 06:49 GMT
hi,

  "        import javax.media.bean.playerbean.*;    "
for this i get error like below
       " MediaPlayerSample.java:43: package
javax.media.bean.playerbean does not exist"

And for this command
javax.media.bean.playerbean.MediaPlayer mediaPlayer1 = new
javax.media.bean.playerbean.MediaPlayer();

I got the error

/home/sait6/SimplePlayerApplet/src/java/org/raj/MediaPlayerSample.java:43:
package javax.media.bean.playerbean does not exist
javax.media.bean.playerbean.MediaPlayer mediaPlayer1 = new
javax.media.bean.playerbean.MediaPlayer();
/home/sait6/SimplePlayerApplet/src/java/org/raj/MediaPlayerSample.java:43:
package javax.media.bean.playerbean does not exist
javax.media.bean.playerbean.MediaPlayer mediaPlayer1 = new
javax.media.bean.playerbean.MediaPlayer();

I had run code in netBean IDE5.0

I dont know what i want to download for the follwing code:

code:

import java.awt.*;
import java.applet.*;
import javax.media.bean.playerbean.*;

public class MediaPlayerSample extends Applet
{
    public void init()
    {

        //{{INIT_CONTROLS
        setLayout(null);
        setSize(518,347);
        mediaPlayer1.setMediaLocation(new java.lang.String("Sample1.mov"));
        add(mediaPlayer1);
        mediaPlayer1.setBounds(36,24,324,272);
        //}}

        //{{REGISTER_LISTENERS
        SymComponent aSymComponent = new SymComponent();
        this.addComponentListener(aSymComponent);
        SymContainer aSymContainer = new SymContainer();
        this.addContainerListener(aSymContainer);
        //}}
    }

    public void stop()
    {
     if (mediaPlayer1!=null)
       mediaPlayer1.stop();

    }

    public void destroy()
    {
     if (mediaPlayer1!=null)
       mediaPlayer1.deallocate();

    }

    //{{DECLARE_CONTROLS
javax.media.bean.playerbean.MediaPlayer mediaPlayer1 = new
javax.media.bean.playerbean.MediaPlayer();
    //}}

    class SymComponent extends java.awt.event.ComponentAdapter
    {
        public void componentShown(java.awt.event.ComponentEvent event)
        {
            Object object = event.getSource();
            if (object == MediaPlayerSample.this)
                MediaPlayerSample_ComponentShown(event);
        }
    }

    void MediaPlayerSample_ComponentShown(java.awt.event.ComponentEvent
event)
    {
        // to do: code goes here.

        MediaPlayerSample_ComponentShown_Interaction1(event);
    }

    class SymContainer extends java.awt.event.ContainerAdapter
    {
        public void componentRemoved(java.awt.event.ContainerEvent event)
        {
            Object object = event.getSource();
            if (object == MediaPlayerSample.this)
                MediaPlayerSample_ComponentRemoved(event);
        }
    }

    void MediaPlayerSample_ComponentRemoved(java.awt.event.ContainerEvent
event)
    {
        // to do: code goes here.

        MediaPlayerSample_ComponentRemoved_Interaction1(event);
    }

    void
MediaPlayerSample_ComponentShown_Interaction1(java.awt.event.ComponentEvent
event)
    {
        try {
            mediaPlayer1.start();
        } catch (Exception e) {
        }
    }

    void
MediaPlayerSample_ComponentRemoved_Interaction1(java.awt.event.ContainerEvent
event)
    {
        try {
         mediaPlayer1.stop();
            mediaPlayer1.deallocate();
        } catch (Exception e) {
        }
    }
}

[/code]
thanQ
-raju
Dag Sunde - 21 Nov 2006 11:05 GMT
> hi,
>
>   "        import javax.media.bean.playerbean.*;    "
> for this i get error like below
>        " MediaPlayerSample.java:43: package
> javax.media.bean.playerbean does not exist"
<snipped/>

Have you downloaded JMF at all?

Is the jmf jar files in your projects classpath?

JMF_HOME/lib/jmf.jar
JMF_HOME/lib/mediaplayer.jar
JMF_HOME/lib/sound.jar

Signature

Dag.

rajbala.3399@gmail.com - 22 Nov 2006 04:56 GMT
> Is the jmf jar files in your projects classpath?
>
[quoted text clipped - 4 lines]
> --
> Dag.

hi ,
I had already write that i had only netbean  IDE5.0 no jmf. Give me
suggesstion for what modification i can done in it.
                        tankQ
-raju
Dag Sunde - 22 Nov 2006 09:28 GMT
>> Is the jmf jar files in your projects classpath?
>>
[quoted text clipped - 8 lines]
> I had already write that i had only netbean  IDE5.0 no jmf. Give me
> suggesstion for what modification i can done in it.

Go to Sun's site and download the JMF (Java Media Framework)

Signature

Dag.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.