Can't play mp3 file through RTP

I created an server/client application to play remote file through RTP using JMF. However, it works with *.wav and video track of mpg file only, can't work when playing *.mp3 and audio track of mpg file. Do anyone know the reason?

No any errors.
I just follow the code sample "AVTransmit2" & "AVReceive2" and change the format.
I change the format of mpg file audio stream to G723, it works now! So I think I used wrong format, but I found there is only two supported RTP format for mp3 file and it doesn't work for both of them.

Similar Messages

  • [solved] I can't play MP3 files in JuK

    Hi
    When i try play a mp3 file, with juk, the system says this:
    [zuargo@zuargo-archlinux ~]$ juk
    [zuargo@zuargo-archlinux ~]$ xine is asking to seek behind the end of the data stream
    I have installed xine-phonon and it is uses default.
    I have tried installing gstreamer phonon (with all official of the repository plugins) but I have the same problem... I can't hear anything...
    I have tried installing pulseaudio but... nothing...
    I have tried installing oss but.... nothing
    I have tried erasing the file ~.xine/catalog.cache but... nothing...
    some web pages says solved it issue installing a package called libxine-ffmep but it is not in pacman...
    really I tried many options but I can't solved this problem
    of course, I can play mp3 files in the command line (throughout mpg123) and they sound good...
    sorry for my bad english I speak spanish
    Last edited by zuargo (2009-08-25 02:20:27)

    AdrenalineJunky wrote:
    from everything i'm reading, it seems like that error message is normally associated with xine-ffmpeg being missing...
    phonon-xine depends on xine-lib which depends on ffmpeg, but its probably worth checking to make sure they are installed.
    I have installed xine-lib
    Rasi wrote:Since there doesnt seem to be an obvious solution, simply use the gstreamer backend.
    I have used the gstreamer backend and it not works... I can't hear the mp3 files...
    another idea?

  • Media Player - can't play MP3 files

    I'm have trouble playing my MP3 files on Q10. (Car doesn't support Bluetooth music - only voice commands, hands free calling).
    My MP3 files are stored on micro 8gb card - when connecting USB cable phone tells me it "can't connect to my computer(?)"
    The USB connection DID work when I realised my 'Phone book was empty'. On voice commanding the settings to install Phone book (which it did) I am back to the 'unable to connect to computer ' message. Are these two events linked?
    What's going on?!
    My old Blackberry Torch with card only (No SIM - 'cos it's in my new phone) plays MP3 files fine - but I want my Q10 to play the files.
    Help?

    Thank you for your answer. My problem is with a direct link, [http://www.vocacionpasionista.com/Novedades/Un%20deseo%20de%20paz.mp3 this one] .
    The data URI seemed to work but just while it's loading, when the page loads the player disappears.
    The direct link doesn't work at all, just like with mine, that window pops up.

  • How can I play MP3 files with time capsule on a stereo set?

    Hello,
    Can anyone offer ideas/suggestions how to play my mp3 files (itunes) from a Time Capsule device? I use a plain Philip 5.1dts set. I would like to be able to select music with either my iphone, ipad ir macbook.
    thanks, Anton

    You will need to add an Apple - AirPort Express to be able to stream your iTunes data to your amp/speaker setup.

  • Can not play mp3 files

    Hi,
    This is my code...
    package sampleplayer;
    import javafx.scene.media.Media;
    import javafx.scene.media.MediaPlayer;
    var song=Media{source:"G:/Shono amra ki shobai.MP3"}
    var player=MediaPlayer{media:song}
    player.play()and its giving the following error
    FX Media Object caught Exception java.net.URISyntaxException: Illegal character in opaque part at index 2: G:/Shono amra ki shobai.MP3
    but I have tried creating a video player to play a .flv file.It works fine.
    Please help...

    Several messages here tell there is an issue with media player and paths with spaces...
    Note also that source is an URI, must look like: "file:///G:/Shono amra ki shobai.MP3" (or use {__DIR__}).

  • Can't hear mp3 files or audio in Firefox 26

    My system automatically upgraded to the latest version of Firefox 26 on Windows 7 and since it upgraded, I cannot hear any audio files -- either mp3 or ogg. If I try to simply open an mp3 file in Firefox, I see a player and watch the progress of the playback, but I hear nothing.
    I believe I've been through every article in Firefox support about playing audio and video and what to do if you don't hear an mp3 in Firefox. None of it has changed anything.
    I found the Firefox options for MP3 that give me the choice of "Always Ask", "Use QuickTime Plugin 7.7.4' and "Use Windows Media Player (default)" and have tried both QuickTime Plugin choice and Windows Media Player choice and it has no affect. I SEE the playback, but don't hear it. I use the volume slider in the playback window, but it has no affect. I can hear these mp3 files when I play them in IE or Chrome, so what is the matter?
    mp3 files used to play for me. But in the last few days I believe both Firefox and QuickTime versions have upgraded and now I can't get it to work.
    Very frustrating.

    I changed the media.windows-media-foundation.enabled pref to false, opened a new Firefox and...... '''I CAN HEAR SOUNDS AGAIN'''
    THANKS!!!!
    Should I ask why the heck I needed to do that and how the heck I should have known to do that? Or should I just stop at 'Thank you' and move on with my life (leaning towards the latter).

  • Lumia 930 Xbox music suddenly won't play MP3 file

    OS version: 8.10.14157.200
    Xbox Music version: 2.6.414.0
    I was listening with a wired headset, then suddenly it stopped playing (in the headset at least). Somehow the music continue playing in the loudspeaker with the headset plugged in. I stopped the music because seriously I'm in public. Tried playing music again and yep it won't play anymore, its just loading (the dots). So I restarted Xbox music, again it still won't play, and I am now getting an error prompt: "Sorry, we can't play this file on you phone. Error code: 8007045D". Of course, it played again after restarting the phone. This is not the first time this happened, its getting frustrating.

    There might be two separate things here, not playing through the headset and not able to open the music library. If it is just one MP3 file not playing then that file is probably corrupted and you can simply delete and transfer a new copy.
    However, given what happened during playback, I lean towards the file itself not being at fault. You don't say if you have restarted the phone itself, this might help because a simple temporary issue with the app is going to linger until a restart. Otherwise, check if there is an update for the app in the store, updating it would give you a fresh, unblemished copy.

  • How can I copy mp3 files from my Itunes library to an SD card for use in a non-apple phone?

    How can I copy mp3 files from my Itunes library to an SD card for use in a non-apple phone?  I can physically copy the tunes as mp3's but the phone does not seem to be able to play all of them.   Do I need to copy an entire album or can I just pick & choose individual songs?   The phone is question is an LG running who knows what for an operating system.

    AAC is Advanced Audio Coding.  Basically it's a format that sounds better than MP3 but doesn't take up as much space as a lossless format (like you'd have on a CD).  More than likely you've had that encoding turned on when you ripped your music into itunes (it's the default encoder).  Therefore your LG phone won't play them.
    You need to turn off the AAC format by going to the iTunes menu, Preferences, General (at the top), then clicking the "Import Preferences" button.  Change the AAC Encoder to MP3 Encoder.  After that you'll have to make MP3 copies of your songs by right clicking them and selecting "Create MP3 Version."  You'll get a copy of the song that should transfer to your SD card and have MP3 encoding.  Hopefully your phone will play that.

  • SWF to play mp3 files located on the server

    Hello,
    Does anyone know if it is possible to create an SWF file that can play mp3 files directly from the server, without the need for a streaming media server or external JS.
    And also for the application to read the current directory its located in and build a playlist based on the files inside.
    any information of examples would be greatly appreciated.
    Peter.

    As for loading and playing the files there is no issue.  Simply load them as you would load any file.  You can even use a relative path if they are in the same folder as the SWF, or a sub-folder that is in the folder with the SWF.
    As for looking at the server directory for what files are there, and using them - I know of no way to do this.  That doesn't mean it is impossible, just that I haven't come across a method in my experience.
    What I typically do is to archive the list of files in an XML file, and load the XML.  I know, that adds an extra step, and an extra file, but it is the easiest method for approximating what you want to do.
    Let me edit this response.
    You could use javascript, or a server language to grab the list of files in the directory and pass it into Flash via the ExternalInterface classes.

  • Simple GUI playing mp3 files

    Hi everyone , i am building a simple GUI playing mp3 files in a certain directory.
    A bug or something wrong with the codes listed down here is very confusing me and makes me desperate. Can anyone help me please ?
    import javax.swing.*;
    import javax.media.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    class PlayMP3Thread
    extends Thread
    private URL url;
    String[] filenames ;
    File[] files ;
    boolean condition=true;
    boolean pause=false;
    int count ;
    public PlayMP3Thread() { }
    public PlayMP3Thread(File[] files)
    //try
              this.files = files;
         filenames = new String[files.length];
         count = -1;
         // this.url = mp3.toURL();
         //catch ( MalformedURLException me )
    public void run()
    try
         while (condition)
              count++;
              if (count > (filenames.length - 1)) {
                        count = 0;
              this.url = files[count].toURL();
    MediaLocator ml = new MediaLocator(url);
    final Player player = Manager.createPlayer(ml);
    /*player.addControllerListener(
    new ControllerListener()
    public void controllerUpdate(ControllerEvent event)
    if (event instanceof EndOfMediaEvent)
    player.stop();
    player.close();
    player.realize();
    player.start();
    catch (Exception e)
    e.printStackTrace();
    public void stops()
    //stop the thread
    condition=false;
    pause=false;
    public void pause()
    while(!pause)
    //pause the thread
    try
    wait();
    catch(Exception ex){}
    pause=true;
    public void resumes()
    while(pause)
    notify();
    pause=false;
    } // end of class MP3Thread
    public class mp3Play extends JFrame {
    JTextField direcText ;
    JFileChooser fc;
    static final String
    TITLE="MP3 PLAYER",
    DIRECTORY="Directory : ",
    BROWSE="Browse...",
    START="Start up",
    STOP="Stop",
    PAUSE="Pause",
    RESUME="Resume",
    EXIT="Exit";
    public static void main(String args[])
         PlayMP3Thread play = new PlayMP3Thread();
         mp3Play pl = new mp3Play();
    } // End of main()
    public mp3Play() {
    setTitle(TITLE);
         Container back = getContentPane();
         back.setLayout(new GridLayout(0,1));
         back.add(new JLabel(new ImageIcon("images/hello.gif")));
         fc = new JFileChooser();
         fc.setFileSelectionMode(fc.DIRECTORIES_ONLY);
         JPanel p1 = new JPanel();
         p1.add(new JLabel(DIRECTORY, new ImageIcon("images/directory.gif"), JLabel.CENTER));
    p1.add(direcText = new JTextField(20));
         JButton browseButton = new JButton(BROWSE, new ImageIcon("images/browse.gif"));
         browseButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    int returnVal = fc.showOpenDialog(mp3Play.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
              direcText.setText(fc.getSelectedFile().toString());
              File[] files = (new File(direcText.getText())).listFiles(this);
         p1.add(browseButton);
         back.add(p1);
         JPanel p2 = new JPanel();
              JPanel butPanel = new JPanel();
              butPanel.setBorder(BorderFactory.createLineBorder(Color.black));
              JButton startButton = new JButton(START, new ImageIcon("images/start.gif"));
              startButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
                        PlayMP3Thread play = new PlayMP3Thread(files);
                        play.start();
         butPanel.add(startButton);
         p2.add(butPanel);
         JButton stopButton = new JButton(STOP, new ImageIcon("images/stop.gif"));
         stopButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
              play.stops();
         p2.add(stopButton);
         JButton pauseButton = new JButton(PAUSE, new ImageIcon("images/pause.gif"));
         pauseButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
              play.pause();
         p2.add(pausetButton);
         JButton resumeButton = new JButton(RESUME, new ImageIcon("images/resume.gif"));
              resumeButton.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
                   play.resumes();
         p2.add(resumeButton);
         back.add(p2);
    JButton exitButton = new JButton(EXIT, new ImageIcon("images/exit.gif"));
              exitButton.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
                   System.exit(0);
              p2.add(exitButton);
              back.add(p2);
              addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent e) {
         System.exit(0);
              pack();
         setVisible(true);
    }

    Actually I don't know much about fixing technical error or logical error.
    When it compiled , there are 6 errors showed up :
    can't resolve symbol : method listFiles (<anonymous java.awt.event.ActionListener>)
    location: class java.io.File
              File[] files = (new File(direcText.getText())).listFiles(this);
    can't resolve symbol: variable files
                        PlayMP3Thread play = new PlayMP3Thread(files);
    can't resolve symbol: variable play
              play.stops();
    can't resolve symbol: variable play
              play.pause();
    ^
    can't resolve symbol : variable pausetButton
    location: class mp3Play
         p2.add(pausetButton);
    ^
    can't resolve symbol: variable play
                   play.resumes();
    Any suggestions ?

  • Adobe reader XI can't open mp3 files in a pdf document- says the required decoder not installed

    Adobe reader XI can't open mp3 file links contained in a pdf - it says the required decoder is not installed
    please help!

    This is not a function of Reader, but that your computer does not seem to be configured to play mp3 files. Try fixing your file associations. The method of doing so depends upon your OS and it version number.

  • Cannot play MP3 files in Dreamweaver CS4

    Hi
    Apogogies if this has been asked before.
    I have an embedded MP3 file on one of my DWCS4 pages but when I try to play it from the Properties Inspector I get the message "Unable to find the plugin that handles this media type".
    The sound file plays OK in Firefox and IE but I would like to be able to test it in DW. I have the currrent version of Apple QuickTime Pro installed.
    I am using both Windows XP and Vista with the same problem.
    Is there a plug I can download for DW only in order to play these files without resorting to converting the MP3 to another format.
    Any help would be much appreicated.
    Thanks
    George

    Yes but I did exactly what I accused you of doing so it was really bad!
    Software troubles can drive you a bit crazy. Sorry again.
    From: pziecina <[email protected]>
    Reply-To: <[email protected]>
    Date: Thu, 08 Oct 2009 09:16:11 -0600
    To: d maass <[email protected]>
    Subject: Cannot play MP3 files in Dreamweaver CS4
    Hi
    Thank you for the apology, but as we have all (probably), misread and
    therefore wrongly replied to posts, it is not really necessary.
    PZ

  • Can't play iTune file I received by email in iTunes?

    I received an iTune audio file by email but I can't play the file nor import the file into the library. If I click on the file it opens iTunes but nothing else happens. Any suggestions?

    Did you bounce at 44.1kHz, 16 bit? AIFF or AAC or MP3 should be fine for iTunes, but sample rate and bit depth is important.

  • Creative MuVo N2000 doesn't play MP3 files anymore?! HE

    Hi everyone,
    I hope someone can help me out. Here's the problem.
    My MuVo N200 player doesn't play mp3 files anymore.. there's only a strange noise comming from the player if i attempt to play mp3's...he only plays the wma files?! I gave my player to my flatmate so she could here music on her vacation to the US, and that's when the problem started. I never had this problem before, and i wonder if she acidently pushed a buttom she shouldn't. I can't figure out how to fix it. Anyone has a clue what has happend, or if the player is "lost" :-( ?! PS: The player is brand new.
    Help is appriciated
    Thx Lizzy ;-)Message Edited by lizzard on 08-23-2005 03:45 AM

    Unfortunately, NONE of my friends use Windows anymore , even at work we use Linux for security reasons. So what am i supposed to do now... They have a link at Creative that makes you belei've that they support Linux and offer you the possibility to choose the operating system, in other words=Linux. When i told in a mail to Creative Norway that they offer Linux support at their download-site, they actualy had the nerve to tell me that they don't do that!! I told them to remove the choice if they don't offer it, and don't try to tell people that they are eighter blind or stupid, and i pasted the Link + added a Screenshot of the page into the mail!! I realy got upset. It is the last time i by something from Creative. My first player from Creative lasted exactly 2 weeks, after that he stopped working for one odd reason, so i paid a little more in order to get a better one in exchange, and that device didn't li've longer than month eighter?
    Not exactly QUALITY we are talking about..aren't we?
    What to do, what to do?
    Anyone has a clue?

  • Play mp3 file.

    Hello world.. :)
    I am creating a music syncing app, and i need to know how how to play a MP3 file, is it possible to do it on a different thread so you can start, and stop it at the press of a button, etc. I don't know one thing about threads...
    JavaNut13*

    If you want to play mp3 file, I think you should use JMF. Here is the link to download JMF 2.1.1e from SUN
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/download.html|JMF 2.1.1e]
    You will need to install JMF first to manipulate the following code. You could get it from here:
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/MDIApp.java|MDIApp.java]
    Eg: You could add mplayer.start(); mplayer.stop() in between the code; and with some 'if else' to create a loop button.

Maybe you are looking for

  • TS1410 iPod classic suddenly not recognized by iTunes

    My 30Gb Ipod suddenly is no longer recognized in iTunes on my MacBook Pro. And all the music on it appears to have been wiped clean. However when I plug it into a PC, the device is recognized as a portable hard drive that it wants to reformat. And iT

  • What's Wrong With iTunes 11? It's Extremely Annoying!

    What ' s wrong with iTunes? Both of stores -in browser and iTunes- crash. Apple need to handle this because I can't buy anything and surf on the store. I hope the image can explain my problem. Thank you in advance. This happened after updating from 1

  • Wrong figures in XL reporter

    Hi, My sales and purchase register are showing wrong figures. It is showing double quantity and price. What could be the possibility or solution? and one more thing which I have noticed is I see same location twice. where I have created only 1. What

  • Failed in JMF diagnostics in netscape browser 7

    I installed J2sdk 1.4.3 and jmf2.1.1e in Redhat Linux 7.3 and following their installation instruction to set up some environment variables. However I encountered two problems in configuring JMF. One is that when I configured the jmf-2_1_1e-linux-i58

  • "Require password after screen saver begins" & "Start Screen Saver"

    Hello All, Can someone tell me what the UNIX command strings are to set 1) "Require password after screen saver begins" on, 2) "Start Screen Saver" to 15 minutes and (3) "Disable remote control infrared receiver" via ARD? I have over 100 clients and