URGENT - HANDLING SOUNDS IN JWS -JMF

Hi
I am done an application with runs fine in Java Web start. I have used some sound files in that which playing using JMF. I have jared all the sound files and which downloading properly in client machine.
But i am getting the following Exception while reading the files :
# JMF Version 2.1
## Platform: Windows 2000, x86, 5.1
## Java VM: Sun Microsystems Inc., 1.3.1_02
XX Unable to create a playerjavax.media.NoPlayerException: Cannot find a Player for :jar:file:/d:/Program Files/Java Web Start/.javaws/cache/http/DEdward/P80/DMeconomy/DMsjar/RMsound.jar!/01C1a_01.wav
XX Unable to create a playerjavax.media.NoPlayerException: Cannot find a Player for :jar:file:/d:/Program Files/Java Web Start/.javaws/cache/http/DEdward/P80/DMeconomy/DMsjar/RMsound.jar!/01C1a_01.wav
Please, help us for furture proceedings.
Thanks is advance
Edward.I

In order to enable JMF to play media from inside of a .jar file, take a look at Chris Admason's article: "self-playing media with Java media framework" at www.Onjava.com (10/09/02).

Similar Messages

  • URGENT - HANDLING SOUNDS IN JWS

    Hi
    I am done an application with runs fine in Java Web start. I have used some sound files in that which playing using JMF. I have jared all the sound files and which downloading properly in client machine.
    But i am getting the following Exception while reading the files :
    # JMF Version 2.1
    ## Platform: Windows 2000, x86, 5.1
    ## Java VM: Sun Microsystems Inc., 1.3.1_02
    XX Unable to create a playerjavax.media.NoPlayerException: Cannot find a Player for :jar:file:/d:/Program Files/Java Web Start/.javaws/cache/http/DEdward/P80/DMeconomy/DMsjar/RMsound.jar!/01C1a_01.wav
    XX Unable to create a playerjavax.media.NoPlayerException: Cannot find a Player for :jar:file:/d:/Program Files/Java Web Start/.javaws/cache/http/DEdward/P80/DMeconomy/DMsjar/RMsound.jar!/01C1a_01.wav
    Please, help us for furture proceedings.
    Thanks is advance
    Edward.I

    This may be caused by the bug:
    4778185: JNLPClassLoader can still return unencoded URL
    If you look jar url you got back, it's not a legal url,
    because it has unencoded spaces in it.
    To test this:
    use the preference panel in the Application Manager to move your javaws cache into a location without a space in the path name.
    If that fixes it, you can work the problem by reconstructing the URL replacing the spaces " " with "%20" after it comes back from findResource.

  • Problems in sound capture and JMF deployment

    Hello:
    I am new to JMF.
    I made an applet using JDK 1.3 on JBuilder 5. This applet captures and plays audio. When I run it through JBuilder's IDE, it runs fine. But when I run it independently, the applet's GUI appears but sound recording doesnn't work. Remember that I have JRE1.4.2 and JMF2.1.1e installed on my machine.
    When I installed JMF, I enabled the recording, and file writing options for an applet.
    To further check the problem, I ran it through JMF debugger. There I found that it says that ,
    <permission javax.sound.sampled.AudioPermission "record";> is not enabled.
    To enable it I added this entry in java.policy. This allowed the audio capture to work.
    But my question is,
    1. Why isn't this entry present by default in java.policy?
    2. Even one of my user entered this entry in java.policy, but was unable to capture audio.
    3. I want my applet to be running with different users having different versions of JRE,JMF and browser settings. How can I do this, without asking my user to do anything? I simply want that when my user downloads this applet, I should provide him with some installation file that installs JMF as well as configures everything on the system in a way that he can use this applet easily.
    Haven't you guys faced such problems in deploying JMF stuff?
    I'll be grateful for any help.
    Thanks
    Jami

    Hi.
    I am facing very similar problems: it looks like deploying JMF with Java Applets is really a challange!
    On my own test installation, if I enable audio capture and file writing for applets through the JMFRegistry, then I am able to record audio from my test applet, even when executed in the target web browser.
    Nevertheless, how to deploy the applet in such a way clients won't be required to manually install JMF and enable audio capture and file writing through the JMFRegistry?
    It looks like the JMF Customizer is able to produce a custom JAR also embedding user preferences for audio capture from applets and file writing , is this correct?
    Any help would be greatly appreciated.
    Regards,
    Marco.

  • Urgent : Handling of serial control items

    Hi All,
    I had developed a concurrent program to automate the process of updating the quantity on hand and average cost whenever a new inventory org is created.
    My code is inserting data in mtl_transactions_interface table and after that the Interface manager is taking care of things.
    But there are items which are not getting picked from mtl_transactions_interface table and the error is 'For this transaction row the serial records are missing’. Can anyone please advise how to handle the serial control items and what is the specific check needed for these. If anyone has the code for this it would be of great help.
    I need this on an urgent basis. Any help will be really appreciated.
    Regards,
    Shruti

    Hi All,
    We have a requirement wherein whenever a new inventory org is created the quantity on hand needs to be moved & average cost need to be copied from an existing org to a new org with in Oracle. This is currently a manual process and we are automating the same.
    For this we are populating the MTL_TRANSACTIONS_INTERFACE table.
    The process works fine for normal items but whenever we use this for a serialized item (populating the MTL_TRANSACTIONS_INTERFACE and MTL_SERIAL_NUMBERS_INTERFACE , it gives the errors
    ‘Invalid status in STD_GRP’
    ‘SubInv does not match’
    in the MTL_TRANSACTIONS_INTERFACE table.
    If anybody has come across this or has any idea about this please provide some pointers. It would be really helpful as its getting very urgent now.
    Regards,
    Shruti

  • URGENT!-sound only in iDVD

    this is only the second URGENT post i have ever made, so this i REALLY urgent,
    How can I have sound only in iDVD?
    can i move it to iTunes and burn a CD?
    I REALLY need an answer TODAY because this is project due tommorow
    thanks for any help

    Hi Apple - just a small addition to my instruction - in number 3, above, after selecting 'Sound to AIFF'. also in the 'use' box, choose '44.1 khz 16 bit stereo'.
    You can save that to the desktop, maybe, then in iTunes, Add to Library, then burn to CD, making sure that in iTunes Preferences, you have selected Advanced>Burning>Audio CD.
    Remember, to burn that 'song' (or whatever it is) you must place it in a Playlist.
    Let us know how you got on.

  • How to handle amr format in JMF?

    Is it possible to receive AMR audio format (in rtp) using JMF?
    If yes, then how.
    I am able to handle to wav format. I give LINEAR as encoding scheme along with other parameters. If I don't find proper parameters for AMR.
    Please help.
    Thanks in advance.

    bumping.

  • Audio capture delayed with Java Sound and JWS

    Hi.
    I am experiencing quite a strange problem with Java Sound in my Java Web Start application. I am acquiring sound from the microphone through Java Sound, using a code which looks like this:
    ==============================
    AudioFormat audioFormat = new AudioFormat(11025, 8, 1, true, false);
    // Get a TargetDataLine from the appropriate mixer
    DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class, audioFormat);
    TargetDataLine targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo);
    // Prepare the line for use
    targetDataLine.open(audioFormat);
    targetDataLine.start();
    targetDataLine.addLineListener(myLineListener);
    // Build an input stream from the line
    AudioInputStream audioInStream = new AudioInputStream(targetDataLine);
    // Create the output file
    File outputFile = new File("C:\\MySampleAudioFile.wav");
    // Start the actual audio file-writing operation
    AudioFileFormat.Type targetFileFormatType = AudioFileFormat.Type.WAVE;
    AudioSystem.write(audioInStream, targetFileFormatType, outputFile);
    ==============================
    This code is executed in an independent thread. As you can see from the code reported above, I add a LineListener to my TargetDataLine.
    The problem is that in my JWS application several seconds (about 5-6 seconds) elapse from the call to AudioSystem.write() and the reception of the START LineEvent on my LineListener. This delay only occurs when my JWS application is downloaded from my public internet website, while it is not present when I test my JWS application on my local LAN server.
    It looks like the call to AudioSystem.write() causes some kind of network connection to the remote web server of the JWS app, and this operation takes some time. In fact, if I download my JWS app to my client from the public web server, then I disable all network connections on my client, then the START event is received immediately after the call to AudioSystem.write()... This is STRANGE, isn't it???
    Do you believe the call to AudioSystem.write(), or any other Java Sound call, may cause a network connection to the server from which the JWS application has been downloaded?
    A final addition to the above picture: I also have a "Java Applet" version of this application, which is exactly identical to the JWS version and uses the same exact code to do audio acquisition from the microphone. But, in this case the delay is not present, even when running the applet from the public web server!
    Any help / suggestion would be highly appreciated.
    Best regards,
    Marco.

    Hi
    Just Visit the following link and download sample source code for rtp in java
    http://javasolution.blogspot.com/2007/04/rtp-using-java.html
    if u want know basic simple java voice chat then visit
    http://javasolution.blogspot.com/2007/04/voice-chat-using-java.html

  • Urgently needed sound engineer based in Paris

    Hi everyone,
    The Eau de Gammes Label is urgently seeking a sound engineer familiar with Audition for session based in Paris France
    Please contact us at
    [email protected] or [email protected]
    Bonjour,
    le label Eau de Gammes recherche urgemment un ingé maitrisant Audition pour des séances rémunérées sur Paris.
    contactez nous à
    [email protected] ou sur [email protected]
    merci d'avance

    Is degree manditory requirement, or will industrial experience compensate for the lack of?

  • Urgent Handling Arabic chars in Oracle 9i

    Hi
    I am having an Oracle Database with DB Character as AR8MSWIN1256 and NLS Charset as UTF8.
    This is for supporting both Arabic and English letters in the databse.
    I am using Oracle Thin JDBC Driver for inserting and fetching data from Oracle DB.
    I have 2 tables as follows:=
    create table News
    CategoryCode Varchar2(3) References Category_Master(CategoryCode),
    Headline Varchar2(255) Primary Key,
    HeadlineNo Number(5),
    Author Varchar2(100),
    NewsDate Varchar2(40),
    Article Varchar2(1000),
    Summary Varchar2(1000),
    HeadlineTimeStamp Date,
    LinkToStory Varchar2(175)
    create table Category_Master
    CategoryCode Varchar2(3) Primary Key,
    CategoryName Varchar2(75),
    UrlLink Varchar2(175)
    I have a text file as follows:=
    AFR     أفريقيا
    AME     الأميركتان
    ARA     الوطن العربي
    ART     الثقافة والفن
    ASI     آسيا والباسيفيك
    BUS     الاقتصاد والأعمال
    EUR     أوروبا وإسرائيل
    HEA     الطب والصحة
    SCI     العلوم والتكنولوجيا
    SPO     الرياضة
    Database.url     jdbc:oracle:thin:@localhost:1521:Test2
    Database.username     system
    Database.password     manager
    I want to read this txt file using Java in a something like this
    InputStream is = ArabicCategoryInsert.class.getResourceAsStream("CategoryCode.txt");
    properties.load(is);
    String catCode1 = (String)properties.getProperty("AFR");
    and Then I want to insert into the database with a statement like this
    String sqlStatement1 = "insert into Category_Master(CategoryCode,CategoryName,UrlLink)
    values('" + valueCode1 + "','" + catCode1 + "','" + urllink + "')";
    Once This is done , I want to parse an XML file named "FinalXmlFile.xml".
    The xml structure is something like this:=
    <story>
    <category>الاقتصاد والأعمال</category>
    <headline>الأسهم الأوروبية تهوي مع تنامي الغموض إزاء الحرب</headline>
    <summary>هوت الأسهم الأوروبية عامة مع تنامي تكهنات في الأسواق بإمكانية إرجاء الحرب على العراق، ما هدأ من وتيرة صعود النفط وأعطى دفعة للدولار. ويعني إرجاء الحرب استمرار الشكوك التي تعوق استثمار الشركات واستهلاك الأفراد.</summary>
    <type>أخبار</type>
    <newsdate>12/03/2003</newsdate>
    </story>
    The parsing code is like this (I am using SAX API for Java)
    //characters method in Pasring Code========================================
    public void characters(char buf[], int offset, int len) throws SAXException
    String str = new String( buf,offset,len ) ;
    byte b[] =null;
    String st = null;
    try
         b = str.getBytes("Cp1256");
         st = new String(b);
    }catch ( java.io.UnsupportedEncodingException ue)
         System.out.println("UnsupportedEncodingException ");
         st = new String(buf,offset,len);
    if (recognisedTopElementStarted && storyStarted && recognisedElementStarted )
    buffer.append ( st ) ;
    //=========================================================================
    Now in my code When I parse the finalxmlfile.xml file there i am fething the different arabic categories
    from Database code and comparing it with the parsed category name as stored in <category></category> tag.
    the fetchhing si happening like this:=
    String sqlString = "Select * From Category_Master ";
    rs = st.executeQuery ( sqlString );
    while(rs.next())
    categoryCode=(rs.getString("CategoryCode")).trim();
    categoryName = new String(rs.getString("CategoryName").getBytes("Cp1256")) ;
    h.put(categoryName,categoryCode);     // stored under the KEY arabic name of category
    Now these 2 arabic categories are one from xml file and one obtained are mathching when i use equalsIgnoreCase()
    operator.
    and hence i try to store the values stored in <headline></headline> tag and i try to insert the new story object
    with something like this:=
    public static void insertStory(String categoryCode,String headline,int headlineNo,String newsDate ,String summary, String timeStamp)
         Connection conn=null;
         Statement st=null;
         headline = encode(headline);//this replaces ' with '' so that sql query does not fail and returns a new String
         try
              String sqlString = "Insert into News(CategoryCode,Headline,HeadlineNo,NewsDate,Summary,HeadlineTimeStamp)"
                   +     " Values("
                   +     "\'"     +     categoryCode     +     "\',"
                   +     "\'"     +     headline          +     "\',"
                   +                    headlineNo          +     ","
                   +     "\'"     +     newsDate          +     "\',"
                   +     "\'"     +     summary               +     "\',"
                   +     "TO_DATE(" + "\'"+timeStamp     + "\'," + "\'YYYY-MM-DD HH24:MI:SS\'" + ")"
                   +     ")";
              conn= DriverManager.getConnection (DatabaseController.dbURL2, DatabaseController.uName2, DatabaseController.pwd2);
              st = conn.createStatement() ;
              int cnt = st.executeUpdate (sqlString);
         catch ( SQLException e )
              System.out.println (" SQL ERROR IN INSERTSTORY: " + e) ;
    private static String encode (String s)
         if (s.indexOf('\'') != -1 )
              StringBuffer sb = new StringBuffer(s.length());
              for (int i=0; i< s.length();i++)
                   char ch = s.charAt(i) ;
                   sb.append(ch) ;
                   if (ch == '\'')
                        sb.append(ch) ;
              s = sb.toString() ;
         return s ;
    Now when i go to sql plus in headline and summary of news table ???? are stored .
    Why is this happening
    This is my question.
    Any help regarding how Oracle and JDBC Thin Driver handles all this will be of immense help to me.
    Thanks
    Mumtaz

    Mr Gopal
    I am also having the same problem .
    If you find the answer pl mail to me
    thanks in advance.
    Suresh

  • Best way to handle sounds in AS3

    I'm currently doing some game development, targeting iOS and Android devices using Flash Pro and AS3.  I'm doing my best to keep the code highly optomized and doing as much object pooling as possible. So far, I'm very pleased with how smooth everything is running on the devices.
    I have noticed that when the actual 'game play' starts up, there is often a short hitch the when any particular sound effect is called up for the first time.  After the first time its seems fine.
    I can only assume that the hitch in game play is Air loading up the soud file into memory (which is why it's hitching only on the first call). 
    I'm a bit of a novice when it comes to audio, but I'm wondering if there is a best practices when it comes to managing the various sound fx and sound tracks so everything plays smoothly 'without a hitch'.  har har.  Currently the sounds reside in my Library as exentions of the Sound class, and i just crate an instance of those classes at run time and .play() when i want to call them.
    Thanks ahead of time,
    -dis

    Yeah, I have thought about that, it just seemed like an awfully sloppy solution. I was kinda hoping for a non 'hack' method to get them properly loaded into memory- but if thats they only current way- then thats the only currenty way.
    -dis

  • URGENT:Handle multiple connection in a multithreaded server.

    I hava a multithreaded server where it can handle multiple connection.
    The program works in this way. First, it will wait for connection. Once it accepts a connection, it will pass the socket to a thread class which will in turn process the connection. Then, the server will go back to the infinite loop to wait for new connection.
    Since I am not very familiar on using thread, I would like to post the following questions:
    1) Let say that my server can handle multiple connections. This is to cater for the different requests from the client. For instance, the client may make one connection for chatting and another connection for sending file(something like we have in Yahoo Messanger). So, at the server side, how can I differentiate between the connection for CHAT and the connection for SEND FILE so that I can handle the requests separately. It means I can save the file sent from client and display the chat message in the JTextArea?
    2) How can I stop the server, clean up the thread and start the server again for waiting new connection? Currently, I can just start my server once.
    For reference,following are parts of my program:
    public void listenSocket(){
    try{
    server = new ServerSocket(5000);
    } catch(IOException e) {
    System.out.println("Failed to listen on port 5000");
    System.exit(0);
    try{
    while(true){
    server1frame sframe=null;
    ChatHandler handler;
    handler = new ChatHandler(sframe,server.accept(),jTextArea1,jTextField1,jFileChooser1);
    handler.start();
    } catch(IOException e) {
    System.out.println("Accept failed:5000");
    System.exit(0);
    //to close the connection as the final steps before program exit.
    } finally {
    try{
    server.close();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    public void run() {
    out.println("Connection Established");
    out.flush();
    try {
    String line;
         while(!(line =in.readLine()).equalsIgnoreCase("QUIT")) {
    if(line.startsWith("CLIENT"))
    jTextArea1.append("\n"+line);
    else if(line.startsWith("Connecting")) {
    jTextArea1.append("\n"+line);
    else if (line.startsWith("Finish")) {
    JOptionPane.showMessageDialog(sframe,"File has finished downloading",
    "File Download Complete",JOptionPane.INFORMATION_MESSAGE);
    else {
    BufferedWriter fout = new BufferedWriter(
    new FileWriter("e:/num1.txt",true));
    fout.write(line);
    fout.newLine();
    fout.flush(); }
         } catch(IOException ioe) {
         ioe.printStackTrace();
         } finally {
         try {
              in.close();
              socket.close();
         } catch(IOException ioe){
    System.out.println("Fail to close connection.");

    1) Let say that my server can handle multiple
    connections. This is to cater for the different
    requests from the client. For instance, the client may
    make one connection for chatting and another
    connection for sending file(something like we have in
    Yahoo Messanger). So, at the server side, how can I
    differentiate between the connection for CHAT and the
    connection for SEND FILE so that I can handle the
    requests separately. It means I can save the file sent
    from client and display the chat message in the
    JTextArea?Either your server listens on two different ports for two different protocolls, (then you would a server thread for each port) or you accept connections for both protocolls on both ports, and have the client state what protocoll it is using :
    eg:
    accept Connection - start new Thread - read first line - depending on protocoll pass protocoll object (CHAT, FTP) to run method
    There is an example for a simple protocoll at : http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.html
    2) How can I stop the server, clean up the thread and
    start the server again for waiting new connection?
    Currently, I can just start my server once.You normally start servers only once. It should then be up and listening for it's entire lifetime. Restarting a server should only be needed if it hangs or crashes.

  • Urgent - Handle error when mail server is down

    Hi,
    Can anyone assist on how we can handle the case when the mail server is down? For instance is it going to be implemented like
    exception when +???+
    Or is there any other way to handle this in order not to get frm-error in oracle forms?
    Thank you
    Edited by: MrProud on Mar 26, 2009 12:32 AM
    Edited by: MrProud on Mar 26, 2009 12:33 AM

    I think OP's problem doesn't related with FORMS. He should CATCH that error code and return normal readable error to user
    Moreover, I advice to OP to read briefly documentation related with [UTL_SMTP |http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_smtp.htm#CHDCFFDI] package
    And also to take a look at default [Exceptions |http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_smtp.htm#i1006659] which can be raised when using UTL_SMTP package
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • Serious Help! Handling Sound Position And Speed!

    Take a look at this: https://sites.google.com/site/pardeepgames/Untitled-1.swf. It may take some time to load, sound is 42 seconds, see the second text field for time buffering.
    I recommend reading the Source Code below first.
    Now as you can see the pitch and speed functions are working perfectly, but the problem is that when you move the slider, the songTime text field dosen't work correctly. When you raise the pitch the songTime should just speed up the counting not change it's position, same when you lower the pitch, it should just slow down the counting not change it's position. Well that isn't working for me. The Source Code is there for you below and all the information you need is in the comments in the code. Please help me out. Oh and I recommend focusing on the songTime text field and then moving the slider.
    Source Code:
    Name of the slider: "slider".
    Name of the first text field: "songTime".
    Name of the second text field: "songTotalTime".
    import flash.events.Event;
    import flash.events.SampleDataEvent;
    import flash.media.Sound;
    import flash.net.URLRequest;
    import flash.utils.ByteArray;
    import fl.events.SliderEvent;
    import flash.media.SoundChannel;
    var _playbackSpeed:Number = 2;
    var sound:Sound;
    var sound2:Sound; // Copy of the original sound, to get the right information about the sound because the pitch shifting for the original sound variable ruins it up.
    var myChannel:SoundChannel = new SoundChannel();
    var _loadedMP3Samples:ByteArray;
    var _phase:Number;
    var _numSamples:int;
    var request:URLRequest = new URLRequest("https://sites.google.com/site/pardeepgames/Not%20Afraid%20Instrumental.mp3");
    var songTimeTime:Number = 1000; // The variable that allows the songTime's speed to change accoriding to the value of the slider. See in line 32.
    loadAndplay10(request);
    addEventListener(Event.ENTER_FRAME, enterFrame);
    function enterFrame(event:Event):void
      progressBar.scaleX = myChannel.position / sound2.length;
      _playbackSpeed = slider.value;
      songTimeTime = 1000 / slider.value;
      songTime.text = convertTime(myChannel.position);
      songTotalTime.text = convertTimeLength(sound2.length);
    function loadAndplay10(request:URLRequest):void
      sound = new Sound();
      sound2 = new Sound();
      sound.addEventListener(Event.COMPLETE, mp3Complete);
      sound.load(request);
      sound2.load(request);
    function playLoadedSound(s:Sound):void
      var bytes:ByteArray = new ByteArray();
      s.extract(bytes, int(s.length * 44.1));
      play10(bytes);
    function mp3Complete(event:Event):void
      playLoadedSound(sound);
    function play10(bytes:ByteArray):void
      stop10();
      sound = new Sound();
      sound.addEventListener(SampleDataEvent.SAMPLE_DATA, onSampleData);
      _loadedMP3Samples = bytes;
      _numSamples = bytes.length / 8;
      _phase = 0;
      myChannel = sound.play();
    function stop10():void
      if (sound)
      sound.removeEventListener(SampleDataEvent.SAMPLE_DATA, onSampleData);
      myChannel.stop();
    function onSampleData( event:SampleDataEvent ):void
      var l:Number;
      var r:Number;
      var outputLength:int = 0;
      while (outputLength < 2048)
      // until we have filled up enough output buffer
      // move to the correct location in our loaded samples ByteArray
      _loadedMP3Samples.position = int(_phase) * 8;// 4 bytes per float and two channels so the actual position in the ByteArray is a factor of 8 bigger than the phase
      // read out the left and right channels at this position
      l = _loadedMP3Samples.readFloat();
      r = _loadedMP3Samples.readFloat();
      // write the samples to our output buffer
      event.data.writeFloat(l);
      event.data.writeFloat(r);
      outputLength++;
      // advance the phase by the speed...
      _phase +=  _playbackSpeed;
      // and deal with looping (including looping back past the beginning when playing in reverse)
      if (_phase < 0)
      _phase +=  _numSamples;
      else if (_phase >= _numSamples)
      _phase -=  _numSamples;
    function convertTime(milliSeconds:Number):String
      var Minutes:Number = (milliSeconds % (songTimeTime * 60 * 60)) / (songTimeTime * 60);
      var Seconds:Number = (milliSeconds % (songTimeTime * 60 * 60)) % (songTimeTime * 60) / songTimeTime;
      if (Minutes < 10)
      var displayMinutes:String = "0" + Math.floor(Minutes);
      else
      displayMinutes = Math.floor(Minutes).toString();
      if (Seconds < 10)
      var displaySeconds:String = "0" + Math.floor(Seconds);
      else
      displaySeconds = Math.floor(Seconds).toString();
      return displayMinutes + ":" + displaySeconds;
    function convertTimeLength(milliSeconds:Number):String
      var Minutes2:Number = (milliSeconds % (1000 * 60 * 60)) / (1000 * 60);
      var Seconds2:Number = (milliSeconds % (1000 * 60 * 60)) % (1000 * 60) / 1000;
      if (Minutes2 < 10)
      var displayMinutes2:String = "0" + Math.floor(Minutes2);
      else
      displayMinutes2 = Math.floor(Minutes2).toString();
      if (Seconds2 < 10)
      var displaySeconds2:String = "0" + Math.floor(Seconds2);
      else
      displaySeconds2 = Math.floor(Seconds2).toString();
      return displayMinutes2 + ":" + displaySeconds2;

    this is a public forum.  no one here (or anywhere else that i know of) is obligated to work for you for free.
    your options are to keep working on this yourself or hire someone to help you.  if you can narrow down the problem's location and post the problematic code you could still get free help.
    or just wait.  given enough time maybe someone willing to donate their time to help you will read your post.

  • (urgent) did audio chat in JMF will work in internet

    hai all,
    i have created a voic chat using JMF.. in that to connect the remote system iam asking for IP address and i will connect it. the main thing is that if i try to connect from a dial up connetion that is public IP to an network IP means do we get connected?? or not... suppose if iam not connected with it means what should i do..
    please help me.
    regards
    subramania

    Hi, prabal
    First, I want to clarify. Did you mean PRIVATE IP address (e.g. 192.168.0.1) when you said DUPLICATE?
    I am not sure if what you are asking is possible. There are number of issues:
    1. Dial-up bandwitdth might not be enough for your audio. Normally it says 56kbps, but in reality it is much less. The smallest bandwidth consumer is GSM codec. So, you should use it on the first place.
    2. Dial-up means, that your friend will probably get a private IP adddress. In this case, you can still have a chat (but it will be really difficult to manage!!!) if you send your audio to the public address of your friend's gateway. If you directly send stream to a private address, it will be dropped by the first router. Plus, you have to send your stream to the same port, which your friend uses to send his audio to you (this is called Symmetric RTP, take a look at definition here http://www.voip-info.org/wiki/index.php?page=RTP+Symmetric). But dont hope for it to work, when either of you use private addresses.
    3. On the other hand, if your friend gets a public address and you also have a public adderess, then you should not have many problems sending audio both ways, as long as his firewall allows you to.
    4. NATed networks (i.e. the one that uses private ip addresses for its hosts) can be different. There are number of ways to implement NAT, some NATs will easily allow you to send traffic, and some dont.
    5. I think there are some more smaller issues to address to, but cannot recall them at the moment.
    Anyway, if you want to implement chat and use IP addresses directly, I believe you will run into tons of problems, when you'll use it through Internet. However, this chat program will probably work very well on a local net (i.e. LAN).
    Best of luck.

  • MP3 sound stream in JMF

    Does anyone have any idea on how to add MP3 stream support back into the newest version of JMF? The reason i am asking is i am half way through a divx movie player and i came across i a bug in the last verson of JMF so to fix the bug i need to update my JMF to the newest version but if i do that i lose support for MP3 audio streams which is the audio stream for most divx movies. I know there are java programs to play MP3 files etc but i am not sure about MP3 streams of a divx file.
    Anyone have any ideas?

    Hi. I too am working on a project with the JMF that requires support for decoding an MP3 stream. Have you been able to resolve this problem? Thanks.
    -Rich

Maybe you are looking for

  • Taking too much time using BufferedWriter to write to a file

    Hi, I'm using the method extractItems() which is given below to write data to a file. This method is taking too much time to execute when the number of records in the enumeration is 10000 and above. To be precise it takes around 70 minutes. The writi

  • Compare reporting tools

    Hi, Could some one point in the right direction - we are trying to finalize the reporting tool. We have worked with BI-Publisher(not as dynamic) and Discoverer(formatting a big issue) - trying to find a tool that would overcome the limitations that t

  • Renaming a Project causes error when running locally

    The app uses an HTTPservice on a remote webserver. I have been running the same app locally for weeks. I occasionally publish up to the web server and all has been fine. I renamed the project (in the IDE) but now anytime I try to run the app locally

  • Range of number in numeric control

    hi,      im new to this program and im trying to generate a range of number (ex. 5.0 1.0 0.25 and 0.10) using a numeric control. can anyone please shed some light? thanks.

  • Fetch screen fields Line item wise

    Hi All, I have a requirement where i've to display some popup messages based on some conditions in MIGO transaction when POST button is clicked. For that i have done certain changes in a BAdI IF_EX_MB_MIGO_BADI~POST_DOCUMENT . But i require to read t