How to play audio cd's?

Ok i tried to play an audio cd using the Java Media Framework, but that didnt work i got some weird error saying somethign like "This alias is alredy being used by this program"
I was able to list the files of the cd, but not play them, anyone know how? the fiels are of type .cda. I even tried using Suns JMStudio or whatever, and it was playing, but no audio. it had the length of the song and stuff, but was throwing the same error i got .

Hi,
If JMStudio doesn't work on your machine, then it's an hardware or software problem on your machine. Please check this out.
You can ask your question on the jmf FAQ.
Stephane

Similar Messages

  • How to play audio with the phone receiver

    I have a strange question.
    I try to use my iPhone 4s (iOS8.1) for an audio tour in the art gallery.
    I am looking for a way to play iTunes audio and listening on your phone in the style of you put your ear on your phone... Dose this make sense?
    I want to play audio through not the phone speaker, but the phone receiver which you listening when you use your iPhone.
    I was looking for some app to do it,,, but I know this is very strange way of using iPhone, so I can't find any tips or apps....
    Please help!
    Thank you

    Not all HTML works on the iPad, and not all HTML that works on the iPad works in DPS. Whenever you create HTML, check first to see if it works in mobile safari. If it doesn't work in mobile safari, it won't work in DPS.
    Basic HTML, CSS and Javascript are supported in mobile safari. But if you are using Flash or Run Java Applets or sometimes even jQuery, your code won't work in mobile safari. Some HTML5 tags are not fully supported.

  • How to play audio in an application?? (HELP ME PLEASE!!)

    Hi! I'm studying computer science and I'm programming in Java for my last project of this period. I've been trying to play sound in an application but I haven't been able to. My teacher gave me a piece of code that looked like this:
    try{
    URL url=new URL("http://hostname/audio.au");
    AudioClip ac=Applet.new AudioClip(url);
    ac.play();
    }catch (MalformedURLException e){
    This is the code for my program:
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.applet.AudioClip;
    import java.applet.AudioClip.*;
    public class Sonido extends Frame implements AudioClip{
         public Sonido(){
              this.setSize(new Dimension(300,200));
              this.setTitle("Testing");
              this.setLayout(new BorderLayout());
              this.add(new Button("Music"), BorderLayout.CENTER);
              addWindowListener(new WindowAdapter(){
                   public void windowClosing(WindowEvent e){
                        System.exit(0);
         public static void main(String [] args){
              Sonido sound=new Sonido();
              sound.show();
              try{
                   URL url=new URL("C://toolate02.au");
                   AudioClip ac=new AudioClip(url);
                   ac.play();
              catch(MalformedURLException e){
    It is only a test but I have to get it to work because the teacher wants the sound to play forever! (with loop() I guess). Anyway, I don't know how to implement the methods of the AudioClip interface. Any help would be great!!! Thank you very much.
    Vanessa.

    This is probably too late to help you, but if you're using Java 1.3 or higher, you can use the javax.sound.sampled package to play .au's, .aiff's, and .wav's (but not .mp3's... support for those comes from Java Media Framework [JMF] or QuickTime for Java [QTJ])
    Anyways, this app plays a single file specified on the command line, like:
    java SimpleSound mailbag.aiff
    import javax.sound.sampled.*;
    import java.io.*;
    public class SimpleSound extends Object {
        public static void main (String[] args) {
            if (args.length < 1) {
                System.out.println ("Usage: SimpleSound <file-path>");
                return;
            try {
                Line.Info linfo = new Line.Info (Clip.class);
                Line line = AudioSystem.getLine (linfo);
                Clip clip = (Clip) line;
                File file = new File (args[0]);
                AudioInputStream ais = AudioSystem.getAudioInputStream(file);
                clip.open (ais);
                clip.start();
            } catch (Exception e) {
                e.printStackTrace();
    }Works for me on Mac OS X. .aiff's sound good but .au's sound awful. Your mileage may vary.
    More info on the JavaSound page -- http://java.sun.com/products/java-media/sound/index.html
    --Chris (invalidname)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to play audio files in sequence?

    I have several audio books that I am trying to listen to on the new nano 6g. It seems that when one chapter is done playing, it restarts the same chapter instead of moving on to the next one in sequence. I have disabled shuffle, which I have never liked, but with the new design, it doesn't seem like there is a universal shuffle off setting, just the shake featue. I don't want ANY shuffle. How can I get this thing to play files in ORDER?
    thanks

    This is an interesting topic. Nobody dares to believe that Java can do good sound. I got all hooked up and studied it for an hour. I hope you or another will be able to use what I've found. It seems credible that Java have some great audio capabilities, but I haven't tested them all yet.
    http://java.sun.com/docs/books/tutorial/sound/playing.html
    has a great general introduction to sound in applications versus applets.
    If you are dealing with a limited set of sound files that you want to incorporate in, say, a game, convert them to .au or .wav files or another that can be read by the AudioClip class. A great conversion tool that I've used for some time is Goldwave. Fetch at at
    www.download.com
    Java Media Framework can do more than that, it can stream audio and do other stuff too. The procedure is as follows:
    1. Download JMF
    2. import javax.media.*;
    3. make a Manager
    4. get a Player from the Manager
    5. play something
    Morten Hjerl-Hansen
    founder
    www.gentleprotest.com
    www.kitcheneer.com
    developer
    www.zellsoft.com

  • How to play audio recordings from Mac Word Notebook on a PC?? HELP!

    I recorded some conversations using Word for Mac Notebook template, that I want to send out to people who have PCs. When I save audio separately (Tools, audio, export audio) it creates an .mp4 format for the audio. The PCs don't recognize this! In Quicktime, Windows Media, etc. you always get error messages. How can you play an mp4 on a PC? Please help!!!

    user7029801 wrote:
    player.setMediaTime(new Time(15*60));
    player.start();Nothing jumps out as being wrong about the way you're doing this...
    Time has two constructors, one for seconds that takes in a double, and one for nanoseconds that takes in a long. I believe that "15*60" would be interpreted as a long, and thus you're setting the media time to 900 nanoseconds...which would be the beginning.
    You could fix the problem one of two ways:
    Cast to a double
    new Time((double)(15*60)));Or use the constants provided...
    new Time(15*60*Time.ONE_SECOND);

  • How to play audio file in voice Modem

    Hi,
    I am developing IVR application. i want to run audio file whenever phone rings.
    caller should be able to hear the content of audio file.
    I am using voice modem DLINK DFM 562E++.
    Please give some idea how to implement it using JMF.
    Thanks in advance
    Pradeep

    @ mark
    as u said I am doing all these. but my problem is i do not get OK response back when i send AT+VLS=7 command to receive a call. AT+VLS=7 is needed to select device mode and enabling transfer and receive.
    when i send AT+VLS=7 after ring, it seems call is picked up but i do not get ok response back in my program.
    after this none of command gives ok response so i don't know whether my setting to play file is correct or not.
    i am doing this one by one...
    'Init' AT Command: 'ATE0V1S0=0&C1&D2+MR=2;+DR=1;+ER=1;W2<cr>'
    'VoiceMode' AT Command: 'AT+FCLASS=8<cr>'
    'EnableCallerID' AT Command: 'AT+VCID=1<cr>'
    'SpeakerPhoneON' AT Command: 'AT+VSP=1<cr>'
    SpeakerGain' AT Command: 'AT+VGS=255<cr>'
    'SpeakerPhoneVolume' AT Command: 'ATL=3<cr>'
    'SpeakerPhoneControl' AT Command: 'ATM=3<cr>'
    'VoiceGainTransmit' AT Command: 'AT+VGT=255<cr>'
    'SetupSampling' AT Command: 'AT+VSM=129,8000,0,0<cr>'
    after this if ring comes then i am sendnig AT+VLS=7 to serial port.

  • How to play audio in PDF file?

    I am nt able to play the audio embedded in PDF file. Can someone guide me to find what am I missing?

    Have you considered using form fields? You can programmatically set the field values, and flatten the page, which converts the form fields to regular page contents.
    What programming environment do you want to use?
    George

  • How to play audio file in default player in j2me

    Hi ,
    I would like to implement Audio Streaming in Mobile application. I am record the voice using amr format and store
    local mobile memory and retrieve and play the file successfully, what is my requirements is, when i was play the
    file , i want to open the file in any default player in the mobile, the forward and backward control are use the default
    player control. is it possible to play the file in default player in j2me. please reply soon.
    With Regards,
    Ganesh Kumar
    Edited by: tlgkumar on Oct 23, 2008 11:55 AM

    Hi Ganesh,
    my suggestion to u is use existing streaming protocol that already support by MMAPI, thats RTSP/RTP protocol.
    u only need to configure existing streaming server like HELIX SERVER or DARWIN SERVER, and ENCODER like FFMPEG, HELIX PRODUCER, etc to encode ur live media / store file become RTP packet and then let server send that to ur client. u can use camera / TV turner also to capture live video and send that by streaming. So u dont need to make ur own server, except ur project need different protocol from that streaming server use.
    in client side, u can choose to use REAL MEDIA or make ur own player, Nokia already support RTSP protocol since S40 3rd edition and S50 2nd edition FP 3. so u dont need to parse by ur code RTSP message and RTP packet. u also can use forward and backward fiture too by that both streaming server.
    please read any RTSP / RTP standar protocol reference, i think it will be helpfull to u to make ur own system configuration ..
    -best regards-
    adek aidi

  • How to play audio

    Hi,
    I am developing video chat application.I am able to play published video stream.But I am unable to hear sound which is published along with the video.
    The video is visible but sound is not comming.What is going wrong.Does anybody could point me in right direction.Thanks in adavance.
    Srinivas

    I am publishing both video and audio:
    if(isPublisher){
    //this is publisher side:
      microphone = Microphone.getMicrophone();
      ns.attachAudio( microphone );
      video.attachCamera(camera );
      videoDisplay.video = video; //custom component in flex
      ns.attachCamera( camera );
      ns.publish(data.nickName);
    else{
    //this is subscriber side:
    video.attachNetStream(ns);
    videoDisplay.video = video;
    ns.play(data.nickName);
    both publisher and subscriber videos are seen.I am using customItemrender of tilelist where I display my videos
    as tiles.When the first user enters his  sound is heard at subscriber side but the sound from subscriber's is not heard.
    My question is,if video is visible then sound also should be played along with it.What is wrong with me.Please point.
    Thanks
    Srinivas

  • How to play audio tracks with mainstage

    Hello, newbie to mainstage-looked around site but didn't find too much.
    I have a gig in a few weeks need help fast please!- Looking to play either multiple, or even just one long 30 minute track in mainstage and then play with fx live. terminology in user manual doesn't seem to say much about this. can i run an audio track in mainstage as a patch or something. Or run logic/audio track(s) through mainstage and then put fx on it? thanks

    I have not used an FC-300, but I have had a close look at its specifications. I don't think it is going to be a lot of use as a controller for MainStage.
    You have two 'expression' pedals; these can be assigned to control any two parameters in any patch eg two channel strip volumes; one bus send level & one FX parameter, etc. Useful, but limited in scope.
    The remaining pedals are foot switches. That means they will each allow you to do the following types of action:
    change patch up or down
    bypass any FX, synths or channel strips in a patch
    start & stop Ultrabeat
    any other similar type of action.
    What do you want the buttons to do?
    To use a foot switch to control a button:
    'Learn' a footswitch to a button (to begin with, stick to switches 1 -5. Ignore 6 - 10 until you are comfortable with the first five switches)
    when you have 'Learned' the switches in the Layout screen move to the Edit screen
    Here, take each button in turn & assign it to an action:
    e.g
    button 1 to Ultrabeat start/stop
    button 2 to Delay Bypass
    button 3 to 'Next Patch' (set at Concert Level)
    button 4 to 'Previous Patch' (set at Concert Level)
    I don't think that you will be able to do much more with the FC-300 than that. I hope someone will be able to prove me wrong.
    NB It doesn't matter what CC number the switches have in the FC-300. Once you have assigned them to a button, the switch should carry out whatever action the button is assigned to in MainStage. All you need to do is to make sure that no two buttons have the same CC number.

  • How to play audio with an embed code?

    I have a code to embed an audio player and I create a muse document to create a html index and them I put it in indesign document with the overlay creator tool (web content).
    In the desktop preview works fine but in the ipad doesn't. Any idea?
    thanks

    Not all HTML works on the iPad, and not all HTML that works on the iPad works in DPS. Whenever you create HTML, check first to see if it works in mobile safari. If it doesn't work in mobile safari, it won't work in DPS.
    Basic HTML, CSS and Javascript are supported in mobile safari. But if you are using Flash or Run Java Applets or sometimes even jQuery, your code won't work in mobile safari. Some HTML5 tags are not fully supported.

  • How to play audio .3gp files on my pc? i tried every possible way

    please help me.
    i installed mobistealth in a mobile. the mobistealth is working very good ( the calls history, messages, GPS, photos history and call recording) BUT the call recordings have some problems. i tried to solve but i could not. some of the calls can open with quicktime but most of them i could not because they said they are codec. i tried to download codec programs but useless. i tried to install many programs other than quicktime also useless. i reomve quicktime 7 and reinstall quicktime6.3. i called realplayer team. they said i need to codec program.. i do not understand how to solve this problem. if you need i can attach .3gp file . please help me because it is urgent.

    Have you tried VLC?
    You can download it at the following link...
         http://www.videolan.org/vlc/download-windows.html

  • How to play the audio file please help me

    i would like to play audio files such wav files, au files etc
    I would like to know how to play audio file easily in Applet and
    applications
    Thank you

    import sun.audio.*; //import the sun.audio package
    import java.io.*;
    //** add this into your application code as appropriate
    // Open an input stream to the audio file.
    InputStream in = new FileInputStream(Filename);
    // Create an AudioStream object from the input stream.
    AudioStream as = new AudioStream(in);
    // Use the static class member "player" from class AudioPlayer to play
    // clip.
    AudioPlayer.player.start(as);
    // Similarly, to stop the audio.
    AudioPlayer.player.stop(as);

  • How to stream audio in Windows Phone 8.1?

    I have a Windows Phone Silverlight 8.0 app I want to update to 8.1 using WinRT. It streams audio in the background.  In Silverlight, I used
    BackgroundAudioPlayer to set the Track to a Uri.  It's not clear how to do this with
    MediaPlayer in WinRT.  I don't think I can just use a Uri.  Instead, I wonder if I have to use
    MediaPlayer.SetStreamSource(IRandomAccessStream
    stream).  If so, I don't know how to get an IRandomAccessStream from a
    Uri.  I want to stream from a Uri on the internet over HTTP, not from a local file. Any help?

    Refer following links to stream audio in background in Windows Phone 8.1 Runtime app.
    https://code.msdn.microsoft.com/windowsapps/Background-Audio-in-WinRT-344bcf4d
    http://blogs.msdn.com/b/johnkenn/archive/2013/12/31/supporting-background-audio-in-your-windows-8-1-app.aspx
    Thank you for thinking about my problem. I may be mistaken, but I think the above links refer to Windows 8 apps, not Windows
    Phone 8.1 apps. I'm under the impression that background audio is done differently in Windows Phone 8.1 from Windows 8. The
    Background Audio Overview for Windows Phone Store apps explains more. 
    It's a good overview, but does not explain how to play audio from a stream rather than a file.  That's what I'm stuck on.

  • Play audio from internet -http connection-

    Hi friends,
    I have made an audio player using jmf as part of my project.It can play files from local machine as well as local network in my company. But i don't know how to play audio files like wav,mp3 from internet using http connection as described by tristanlee85. Can anyone explain me how to accomplish this.
    The code where i tried to
    access http connection is given below.
    But it is not working.I know Streaming is necessary. But how to do it in jmf. What imports are needed.Please guide me
    Manu
    import javax.media.*;
    import java.text.DecimalFormat;
    import java.awt.*;
    import java.awt.FileDialog;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    <APPLET CODE=PlayerApplet.class
    WIDTH=320 HEIGHT=300>
    </APPLET>
    class nwa extends WindowAdapter
         frameclass frame;
         Player player;
         public nwa(frameclass frame,Player player)
          this.player=player;
          this.frame=frame;
         public void windowClosing (WindowEvent e)
          //User selected close from System menu.
          //Call dispose to invoke windowClosed.
          frame.dispose ();
          public void windowClosed (WindowEvent e)
              if (player != null)
                   player.stop();
                player.close ();
                   player.deallocate();
          System.exit (0);
    class frameclass extends JFrame
    Player player;
         frameclass(Player player)
         nwa n=new nwa(this,player);
         this.addWindowListener(n);                    
    public class PlayerApplet extends JApplet
               implements ActionListener,ControllerListener,ItemListener, KeyListener
               Player player=null;
               frameclass frame=new frameclass(player);
                 Component vc, cc;
                 Container f;
                 JProgressBar volumeBar;
                 JButton fastRewind;
              JButton fastForward;
              JButton play;
              int sizeIncrease = 2;
              boolean invokedStop = false;
              /** Big */
              int progressFontSize=30;
                 boolean first = true, loop = false;
                 String currentDirectory;
                 public void init()
                          f=frame.getContentPane();
                         JMenu m = new JMenu ("File");
                         JMenuItem mi = new JMenuItem ("Open...");
                         mi.addActionListener (this);
                         m.add (mi);
                         m.addSeparator ();
                         mi = new JMenuItem ("URL");
                         mi.addActionListener (this);
                         m.add (mi);
                         m.addSeparator ();
                         JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem ("Loop", false);
                         cbmi.addItemListener (this);
                         m.add (cbmi);
                         m.addSeparator ();
                         mi = new JMenuItem ("Exit");
                         mi.addActionListener (this);
                         m.add (mi);
                         JMenuBar mb = new JMenuBar ();
                         mb.add (m);
                         frame.setJMenuBar (mb);
                         setSize (500, 500);
                           JPanel p = new JPanel(new GridLayout(1,0,5,5));
                        p.setBorder(new EmptyBorder(3,5,5,5) );
                        fastRewind = new JButton("<html><body><font size=+"+ sizeIncrease+ "><<");
                        fastRewind.setToolTipText("Fast Rewind");
                        fastRewind.addActionListener( new ActionListener(){
                             public void actionPerformed(ActionEvent ae) {
                                  if (player!=null) {
                                       invokedStop = false;
                                       skipBack();
                                  } else {
                                       JOptionPane.showMessageDialog(play,
                                       new JLabel("Open a sound file first!"));
                        fastRewind.addKeyListener(this);
                        p.add(fastRewind);
                        JButton stop = new JButton("<html><body><font size=+"+ sizeIncrease+ ">��");
                        stop.setToolTipText("Stop");
                        stop.addActionListener( new ActionListener(){
                                  public void actionPerformed(ActionEvent ae) {
                                       invokedStop = true;
                                       sp();
                        stop.addKeyListener(this);
                        p.add(stop);
                        play = new JButton("<html><body><font size=+"+ sizeIncrease+ ">>");
                        play.setToolTipText("Play");
                        play.addActionListener( new ActionListener()
                                  public void actionPerformed(ActionEvent ae) {
                                       if (player!=null) {
                                            invokedStop = false;
                                            player.setRate(1);
                                            st();
                                       } else {
                                            JOptionPane.showMessageDialog(play,
                                            new JLabel("Open a sound file first!"));
              play.addKeyListener(this);
              p.add(play);
              fastForward = new JButton("<html><body><font size=+"+ sizeIncrease+ ">>>");
              fastForward.setToolTipText("Fast Forward");
              fastForward.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             skipForward();
                        } else {
                             JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file first!"));
              fastForward.addKeyListener(this);
              p.add(fastForward);
              frame.getContentPane().add(p,BorderLayout.CENTER);
              frame.setVisible (true);
              frame.pack();
              frame.setResizable(false);
      public void stop(){
      sp();
      public void destroy(){
       player.stop();
        player.deallocate();
      public void actionPerformed (ActionEvent e)
              if (e.getActionCommand().equals("Exit"))
                             // Call dispose to invoke windowClosed.
                             player.stop();
                             player.close();
                             player.deallocate();
                             frame.dispose ();
                                  return;
    // Play file from local machine
              if (e.getActionCommand().equals("Open..."))
                             FileDialog fd = new FileDialog (frame, "Open File",
                                         FileDialog.LOAD);
                              fd.setDirectory (currentDirectory);
                              fd.show ();
                              // If user cancelled, exit.
                              if (fd.getFile() == null)
                             return;
                              currentDirectory = fd.getDirectory ();
                                   if (player != null){
                                       player.close ();
                                       player.deallocate();
                         try
                  player = Manager.createPlayer (new MediaLocator
                                               ("file:" +
                                               fd.getDirectory() +
                                               fd.getFile()));
                              catch (java.io.IOException e2)
                            System.out.println ("file not found :"+e2);
                            return;
                              catch (NoPlayerException e2)
                            System.out.println ("Could not find a player.");
                            return;
                    if (player == null)
                   System.out.println ("Trouble creating a player.");
                   return;
                    first = false;
                    frame.setTitle (fd.getFile ().toString());
                    player.addControllerListener (this);
                    player.prefetch ();
                   return;
    // Play file from internet
    if (e.getActionCommand().equals("URL"))
                              if (player != null){
                                       player.close ();
                                       player.deallocate();
                   try
                        URL url = new URL ("http://www.plastikhosting.net/uploads/tristanlee85/music/02-hellyeah-you_wouldnt_know.mp3");
                    MediaLocator mediaLocator = new MediaLocator (url);
                        player = Manager.createPlayer (mediaLocator);
                   catch (java.io.IOException e2)
                  System.out.println ("file not found :"+e2);
                  return;
                    catch (NoPlayerException e2)
                  System.out.println ("Could not find a player.");
                  return;
                    if (player == null)
                   System.out.println ("Trouble creating a player.");
                   return;
          first = false;
          player.addControllerListener (this);
          player.prefetch ();
              player.start ();
              return;
       public void controllerUpdate (ControllerEvent e)
          if (e instanceof ControllerClosedEvent)
              if (vc != null)
                  frame.getContentPane().remove (vc);
                  vc = null;
              if (cc != null)
                  frame.getContentPane().remove (cc);
                  cc = null;
              return;
          if (e instanceof EndOfMediaEvent)
              if (loop)
                  player.setMediaTime (new Time (0));
                  player.start ();
              return;
          if (e instanceof PrefetchCompleteEvent)
              player.start();
              return;
          if (e instanceof RealizeCompleteEvent)
            if (vc != null)
                  remove (vc);
                  vc = null;
              if (cc != null)
                  remove (cc);
                  cc = null;
              vc = player.getVisualComponent ();
              if (vc != null)
                  frame.getContentPane().add(vc,BorderLayout.NORTH);
              cc = player.getControlPanelComponent ();
              if (cc != null){
                       frame.getContentPane().add (cc, BorderLayout.SOUTH);
                     frame.setVisible(true);
                     frame.pack();
                      return;
    public void keyReleased(KeyEvent ke) {
    public void keyTyped(KeyEvent ke) {
    /*public void keyReleased(KeyEvent ke) {
    int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         /*public void keyTyped(KeyEvent ke) {
         int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyPressed(KeyEvent ke) {
              int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
              }else if (keycode==KeyEvent.VK_UP) {
                   st();
              }else if (keycode==KeyEvent.VK_DOWN) {
                   sp();
    public void skipForward() {
    Time settime;
    double secs=5;
    double playersecs = player.getMediaTime().getSeconds();
    double duration = player.getDuration().getSeconds();
              if((playersecs+secs) < duration){
                      settime = new javax.media.Time(playersecs + secs);
                      player.setMediaTime(settime);
              }else {
                        player.setMediaTime(new Time(duration));
    public void skipBack() {
              double secs1=5;
              double secs2=0;
              double playersecs1 = player.getMediaTime().getSeconds();
              Time settime1;
              if((playersecs1 - secs1) > secs2){
                      settime1 = new javax.media.Time(playersecs1 - secs1);
                      player.setMediaTime(settime1);
              }else {
                        player.setMediaTime(new Time(0));
         public void st() {
         player.start();
         public void sp() {
         player.stop();
       public void itemStateChanged (ItemEvent e)
          loop = !loop;
    }

    Thank u Thompson For your kind reply. I got the problem solved. It was the the problem of Untrusted Applet as u said.Now i Have signed my applet and this appletplayer plays audio only from the server from where this applet comes and from the localmachine also.Now it is playing fine from the server.
    But i have another problem , If i am asking that in the wrong forum plz forgive, I will ask it it in applet forum also.
    Problem is , I have implemented a joystick with this player. The idea is to combine this player with a text editor so that user can hear audio at the same time he can type in the editor what he hear and he can rewind and forward using joystick(It is actually a footswitch controller) with his leg. This driver i got from Source forgenet works fine in my localmachine and localnetwork also.But i have to install .DLL file in every client machine. This should be avoided.When a client having no jmf and joystick in his machine tries to run this applet through the browser the required Joystick driver and jmf must be installed in client computer also.
    By signing the applet and using ARCHIVE keyword i think jmf part will be ok but what about joystick driver.How i could install it in client machine.Playerapplet throws jjstck.dll not found exception
    plz guide me
    manu

Maybe you are looking for

  • Lightroom and second display

    Hi, I'm sure its been asked many times before, but is light room capable of using dual display on a mac? if so, how?

  • Inline Posture between Cisco ISE and Wireless LAN Controller

    Hi, I was looking into Cisco ISE solution for deploying NAC. I have a question about the network topology. In  the user guide documents of cisco ISE, it is written that for Wireless  LAN Controllers (WLC) and VPN devices, an additional server, Inline

  • Inventory planning in SEM

    Hi Gurus, I am currently working on Merchanidse and Assortment Planning(MAP), used in Retail industry. I am using NW2004s-BI( BI7) and ECC6. I am doing planning for inventory. As quite a few of you may be aware, Non-cummulative key figures like stock

  • MDM ABAP API exception using method invoke_matching

    Hi, I am using below calss in MDM ABAP API. If i can use small records source (1000) target (1000) it is working fine. If  i can use source (1000) Target ( 40, 000) i am getting exception ( kernal exception ). Please could you advise do i have to set

  • Can't select anchor points of some shapes in Photoshop CC 2014

    I have a multi-layered file with a number of shape objects. When I go to the direct selection tool and try to click on an anchor point the points simply do not show up. Is there some property that I am not aware of that prevents selection?