RTP Transmission always lose the last packet

Hi,
I transmit a audio file through rtp by using the JMFStudio(V 2.1.1e), then capture the rtp packets on the sending port, but the last rtp packet is missing every time.
Several developers of my team tried on their own machine and got the same result.
Did anyone try this before or if anybody can tell me how to solve it?
Thanks a lot!

Several thoughts...
If the last "packet" isn't big enough, IE, a full payload worth of data, the underlaying transport mechanism may keep it trapped in the buffer forever. If it sends packets based on a BufferFull event of some sort, then the last packet won't ever be sent because it'll get trapped in the buffer. This is a big problem with TCP sockets, and in that instance, the buffer is flushed automaticlly when a close operation is called on the socket.
I have no idea how you're managing the sending of RTP packets, but that's a possible reason.
Another possible reason would be how you're handling the EndOfMedia event. If you were to, say, stop the entire process down before the final RTP packet got sent out, then you'd also not be getting the last packet sent out. Everything in JMF pretty much spawns a new execution thread, so it's possible the main thread is shutting those other threads down before they're done doing work with calls to whatever.Stop() and whatever.Close()...
Those are just 2 ideas off the top of my head to explain why a last packet may not be sent out...

Similar Messages

  • How come when I open Safari it does not open to my set homepage it always opens the last page I was on

    how come when I open Safari it does not open to my set homepage it always opens the last page I was on

    Check Safari/Preferences/General/Safari opens with -try setting it to new window.

  • When I start Safari 5.1 in Lion, it always opens the last page opened.  Is there a way to start on the homepage?

    When I start Safari 5.1 in Lion, it always opens the last page opened.  Is there a way to start on the homepage?

    That sounds great, but on my system, that box is not at the bottom of my Pref/General page, but is when I log out and put it to sleep.  What is really annoying is that I have to do this every time, instead of unchecking it and it being permanent.  Yes, I have Safari 5.1 and Lion.  I would like to permanently disable this as I too, think it is absurd and not a great idea when banking, paying bills, etc.

  • Why does Safari 5.1/Lion 5.7 always open the last Web sites  when you open Safari?

    Why does Safari 5.1/Lion 5.7 always open the last Web sites  when you open Safari?
    MacBook Pro 2.33 GHz intel core2 Duo

    Welcome to the iOS world of nonthinking, wherein the OS decides everything for you, whether or not that's what you want. Salient details described in http://www.apple.com/macosx/whats-new/features.html#resume
    See one of these to disable it:
    http://hints.macworld.com/article.php?story=20110918051930924
    http://osxdaily.com/2011/08/01/turn-off-resume-per-app-in-mac-os-x-lion/
    http://restoremenot.info/

  • HT4859 What do I do every time I tap "Back up Now" (through iCloud) it always says "The last backup could not be complete". My iPad is plugged in, locked and connected to wi-fi.  I still have available 11GB storage from 15GB total storage from iCloud.

    What do I do every time I tap "Back up Now" (through iCloud) it always says "The last backup could not be completed". My iPad is plugged in, locked and connected to wi-fi.  I still have available 11GB storage from 15GB total storage from iCloud.

    I'm having exactly the same problem. I have a new iPad, my iCloud account is set up and verified (I wouldn't be logged in and writing this otherwise), auto backups are turned on, but it's never completed a backup. If I manually select 'Backup Now' in iCloud Settings, it times out while estimating time remaining. Strangely, today my iCloud free storage space went from 5G to 4.9G then back to 5G. Annoyingly, I'm now getting reminders that I've never backed it up! The iCloud help I followed from the forum didn't cover this error message.

  • Why my vector() always always return the last record?

    Whenever i uses Vector, my whole vector always return the last element.. why?? Anyway to solve this?
    some examples of my codes..
    (String)rowVector.elementAt(2)
    My rowVector vector always return the last element..
    while(rs1.next())
    Vector rowVector = new Vector();
    for (int currentCol = 0; currentCol < numCols; currentCol++)
    rowVector.add(rs1.getString (currentCol + 1));
    tableData.addElement(rowVector);

    That means that every element in the Vector refers to the same object. I am surprised that your JDBC driver does not return different string objects for each call, but to work around that, try this:
    rowVector.add(new String(rs1.getString (currentCol + 1)));

  • How to set a JScrollPane always display the last line?

    I have put a JTextArea in a JScrollPane.
    Whenever I append a new line of sentence to the JTextArea, the JScrollPane only shorten the vertical scroll bar.
    Is there any command that can scroll down to the last line whenever I append a new sentence to the JTextArea?

    I have tried to add the line you shown, but it can just show the second last line. It cannot scroll down to the last line.
    e.g. I have these message:
    AAA
    BBB
    CCC
    If the message board can only show 3 lines and I enter one more line "DDD", then the last line will be shown is CCC. I need to scroll down a bit more myself to see DDD. If I scroll to the top and enter another line"EEE", it will scroll down to show "DDD" but not "EEE".

  • Why do applications always open the last document or page viewed?

    I love my Mac.  But since I got my new iMac and OS Lion, I've had a hard time with one option and I can't figure out how to turn it off.
    When I open Excel, it opens the last document viewed.  Even when I click on a new document, it still opens the last document.  When I open Safari, it takes me to the last page viewed.  Its very annoying, probably useful to someone other then me. How do I turn this feature off?
    Thanks
    Jim

    That is part of Resume, a feature that re-opens the documents that were open when you quit.
    You can turn it off system-wide in the General System Preferences.
    On a per-app basis, you can only use the cmd-option-q shortcut or menu to close all windows and quit.

  • Why my c:forEach loop always grab the last element ONLY????

    Hi, I have the following codes:
    <c:forEach var="current" items="${output}" begin="0" varStatus="status" step="1">
    <U>Order <c:out value='${status.index}' /></U>
         <B>Orderid: </B><c:out value='${current[0].orderid}' /><br>
    </c:forEach>
    the screen output is:
    Order 0 Orderid: 263
    Order 1 Orderid: 263
    Order 2 Orderid: 263
    Order 3 Orderid: 263
    Order 4 Orderid: 263
    Order 5 Orderid: 263
    Order 6 Orderid: 263
    Order 7 Orderid: 263
    Order 8 Orderid: 263
    Order 9 Orderid: 263
    Order 10 Orderid: 263
    Order 11 Orderid: 263
    Order 12 Orderid: 263
    Order 13 Orderid: 263
    Is there anyone who knows what's wrong with the codes?
    Thanks in advance!

    Hi, evnafets:
    You are right. It does print out the same memory address for each records.
    I used a servlet to print this output to jsp:
    Vector output = db.selectTransactionByConditionDate(conditions,fromtimestamp,totimestamp,sform.getCondition());
    request.setAttribute("output", output);
    and this selectTransactionByConditionDate method is actually a DB function to read this 13 records:
    rs = pstmt.executeQuery();                    
    Order order = new Order();
    while (rs.next()) {
    order.setOrderid(new Long(rs.getLong("orderid")));
    Vector transaction = new Vector();
    transaction.add(order);
    result.add(transaction);                                   
    rs.close();
    pstmt.close();
    return result;
    when I use System.out.println() to trace the orderid in the while loop above, it shows me:
    SystemOut O order id: 264
    SystemOut O order id: 265
    Thus I think it does add each different object record to the vector.

  • Last packet not arriving after binary data transfer

    Hi folks,
    I have written a server app that receives a text header and a binary data block (e.g. an image). To read the text header I use a scanner "in" (to be more comfortable). Then after that I use the "bis" to get the binary data.
    That works so far. I get a header and binary block and then I want to send back a header and a binary data block to the client in the same way.
    My problem: In most of the cases (not always but mostly reproducable) delivering the result the last packet is not delivered to the client.
    These are my streams, readers and writers:
    bis = new BufferedInputStream(client.getInputStream());
    sr = new InputStreamReader(bis);
    in = new Scanner(sr);
    bus = new BufferedOutputStream(client.getOutputStream());
    response = new PrintWriter(bus);Here is the part of the file transfer back to the client:
    int copyBytes = 0;
    long copyTotal = 0;
    byte[] copyBuf = new byte[client.getSendBufferSize()];
    while ((copyBytes = cis.read(copyBuf)) != -1)
        bus.write(copyBuf, 0, copyBytes);
        copyTotal = copyTotal + copyBytes;
        System.out.println(copyBytes + "/" + copyTotal + " / " + fileSize);
        if (copyTotal >= fileSize)
            break;
    bus.flush();
    System.out.println("Finished copyStream");
    [...]On the client I have basically the same (the other way round - first send a header + binary block and then receive it):
    while ((bytesRead = bis.read(buffer)) != -1)
        fileStream.write(buffer, 0, bytesRead);
        bytesTotal = bytesTotal + bytesRead;
        System.out.println(bytesRead + "/" + bytesTotal + " / " + resultLength);
        if (bytesTotal >= resultLength)
            break;
    System.out.println("here i am");The output on the server is something like:
    Start copyStream
    46966/46966 / 46966
    Finished copyStreamOn the client it is like
    38950/38950 / 46966It never comes to the point where it should say "here i am" although on the server it writes that everything has been transferred.
    I found out that when I do a bus.close() at the server afterwards at the server then the last package arrives. But then I cannot continue using this connection, but I want to keep the connection waiting for additional header + binary block (or waiting for a "quit").
    I tested this on Windows and Linux (for the case there could be an OS specific strange behavior).
    What am I doing wrong? Wherever I search I don't find really different approaches to receive and send data. The only difference I can see from other samples is that I do use a reader and just when expecting binary data I use the underlying byte oriented stream. After flushing I go back reading from the "higher level" reader.
    The strange thing is that receiving the text header and binary block on the server works fine but when sending response back to the client it does not work.
    What I already tried:
    I tried nulling my readers while reading from the underlying byte oriented stream for the case they get confused with the binary data and if data is read from the underlying byte oriented stream (did that on server and client side). That did not help.
    I tried - as already mentioned - closing the bus stream - which closed my connection which I don't want but delivered the last package.
    I also tried using different type of binary stream. I used a TIF image, JPG image and finally tried also with a text content (treated as binary data) and only with the last text content the problem did not occur. But this should not make a difference when reading the byte stream.
    I am struggling now for two days with this problem and my last idea is trying to remove the readers in general and using just the binary oriented streams (which is more work for identifying the header lines which are plain text - anyway). But I have the doubt that this will not help because I already tried dropping them when transferring the binary block.
    Another link that I found is [http://rox-xmlrpc.sourceforge.net/niotut/index.html|http://rox-xmlrpc.sourceforge.net/niotut/index.html] - is it possible that I have to use nio for this? - But why can I then see plenty of examples without the use of nio what sense would it then make having the "normal" sockets without nio?

    jtahlborn wrote:
    yes, you generally cannot mix Readers and InputStreams. you mentioned that you were reading "byte by byte". but you weren't. you were reading "char by char" (with some more buffering). as mentioned by a previous poster, put a DataInputStream on top of your BufferedInputStream and use that exclusively.Thanks, that was the reason - now it works! Thanks a very lot!
    I have seen many samples and documentation where streams where taken to an upper level with readers with and without buffering. But I was not aware that I then have to use always exclusively the object on the upmost level. Reviewing some samples I can see that there is indeed no mixed usage.

  • Identify the last data package in start routine

    Hi Everyone
    We have a start routine in transformations. We require to do some special processing in the start routine only when the last data package is executing. How can we determine in the start routine that current package is last one or not ? Any pointers in this direction are appreciated.

    Hi,
    You can get packet Id from datapackid in start routine and end routine. But I'm not so sure how to identify the last packet ID, alternatively you can store this packet id in some where else and read the same value in End routine if your logic(processing) permits to do this in End routine instead of Start routine.
    METHODS
          start_routine
            IMPORTING
              request                  type rsrequest
              datapackid               type rsdatapid
            EXPORTING
              monitor                  type rstr_ty_t_monitors
            CHANGING
              SOURCE_PACKAGE              type tyt_SC_1
            RAISING
              cx_rsrout_abort.
    hope it helps...
    regards.
    Raju

  • Windows CS6 "save as" action always defaults to last save place instead of saving where action is intended to. Please help

    Hi all,
    I am using CS6 64bit on a Windows 7 Enterprise machine at work. I have used Macs here for years and never had this problem but when I create an action that is designed to "save as" (because I must change the file name) a single file into a specific directory on the network Photoshop always defaults to saving into the last place I saved instead of saving into the place where the action tells it to save to. The action contains 2 saves and then a close and only the first save brings up the dialogue so we can change the name of the file. That dialogue box always contains the last save location instead of the desired location the action is intended to save to. The second save always goes to the correct place and the close works fine.
    The only time this does not happen is when Photoshop is first launched. In that case when I click the action it always tries to save into the original folder on the network where I opened the file from.
    I have already unchecked the box in preferences for "save as to original folder" and do not know what else to try.
    Previously on Macs I have never experienced this issue at all. I have been opening files on my network and saving them to other network directories for years over many different versions of Photoshop on a Mac and not once have I had an issue. Is it a PC thing? Is there something else I can try? I need to deploy these PC's to employees and can not do so unless this action works as we process high volumes of images and do not have the time to navigate manually to each directory we must save in.

    Welcome to the club! I hate that but live with it.
    When I download from the camera, Photoshop Bridge generates a folder according to the date shot, say 20141212. The images then are 20141212_1 to 20141212_xxx; whatever the final count is from the download. But let's say I rename the image or perhaps have a Photomerge of several frames. Then the connection is lost and Photoshop reverts to the last folder before the current one. So one has to watch to steer that "Save As" to the one you want, in this case 20141212. However, after that occurs, subsequent Saves will go to folder, 20141212. (because it is now the last one)
    The principle I follow is that if the folder with the images is new, I am careful with "Save As" if the file I am saving is not directly connected with that folder"s numbering system.

  • WAD - display only the last value in the chart

    hi...
    I designed a chart in WAD wich displayed a range of values in a line. Now im searching for a possibility to display the value for the points in my chart, but not for all values, only for the last value in the line! And every month the line will extended with new value-points, so it is necassary that the function is dynamic, always for the last point in the chart the value should displayed!?
    thx for some ideas!
    david

    hi @ all... once more information:
    the chart displayed only one keyfigure of a query. for example it display the revenue per month. in jan. = 10, feb. = 15, mar. = 25, apr. = 13, jun. = 23. these values should be displayed in a line in the chart aaaand additional for the last one in the line the valuecaption direct in the chart (f.e.: jun. = 23). not for all "periods-points"only for the last one.
    in jul. = 25 the chart changed and only for july the value-caption should be displayed. Is it possible?
    Regards,
    David

  • Adding A Quit Button to the Last Slide

    Hi all,
    One of the most requested features on our first Breeze
    project was a "quit" button. The easiest way to do so in an HTML
    environment is to use the command
    javascript: window.close();
    Type this into the address bar on your browser, and hit
    return. Isn't that neat?
    Okay, the scripting language in Flash (Actionscript) can
    simulate typing something in the address bar with the command
    getURL ("javascript: window.close();");
    ...all we have to do is add that actionscript to the
    onRelease event handler for a button in Flash. Then, add the button
    to your PowerPoint before you use Presenter, and when the student
    clicks it... voila!
    This same trick can be used to replace that MacroDobe©
    logo in the Breeze player. This time, when the user clicks the
    button, we'll use javascript to pop up an alert box with a clever
    message:
    getURL ("javascript: alert('Aren't we clever?');";
    This button has to be small, around 50 x 29 pixels, to
    properly replace the logo. To actually replace it, you need to
    publish your presentation to the hard drive like normal. Next, find
    the folder you published to, and place a copy of your "button.swf"
    file in the "data" subfolder. Then, edit (don't "open") the
    vconfig.xml file in the same subfolder using notepad. Near the top,
    you'll find an entry that says:
    <uireplace name="logo" value= "" />
    place the name of your button file between the quotation
    marks and save:
    <uireplace name="logo" value= "button.swf" />
    When you load up the training next time, the logo will have
    changed to your button.
    You'll have to do this every time you publish the training,
    as Presenter deletes & recreates all those subfolders each time
    you do. BTW, MacroDobe© does offer a small applet to parse
    this xml file for you... but they want 5 grand per copy. I'm
    thinking notepad works just as well :)
    cheers!
    Marc B

    sorry
    i mean, public void addDealer()
    players.addLast(new Player("Dealer"));
    you see i have lets say 3 players and i want the dealer to always be the last element of the list

  • Preview doesn't remember the last page opened

    I have noticed that Preview doesn't remember the last page of the PDF documents after 30 mins of usage (or opening up several PDF files). Is there any way to make Preview always remember the last page of files irrespective of time the file was last used and number of PDF files opened? I think in SL-ML era this was probably the case but since Mavericks it seems to have changed.

    Deleting "browser.download.lastDir" makes firefox unusable.
    It's very annoying. I'm sick of the update to 3.6. It's getting worse with each minor update.
    Hour after hour researching about this odd behavior sucks!

Maybe you are looking for

  • Is the following possible in OBIEE

    I have a requirement: that runs like this - There r four dimensions (let's say d1, d2, d3, d4). There are also measures like m1, m2, m3, m4. I have got a requirement that a OBIEE report needs to be produced that has d1 columns at the left, one of (d2

  • Oracle 11 G problem

    How to make a scheduler/trigger that will automatically delete last 100 data after 20 days? Thanks in advance.

  • Where to give the points

    Good morning guys, I dont know at where to give the points for the answers. pl help me. Thanks in advance. HAVE A NICE DAY

  • Help Purchasing 4 Copies of Photoshop CS6 with Discs?

    Hi All, I am the Team Leader of a very busy medical photography dept at the largest public hospital in New Zealand and we wish to buy 4 new copies of Photoshop CS6 for our medical photogapher ie one for each photographer. We cannot, nor will ever, us

  • Zoom follows keyboard focus doesn't work?

    "zoom follows keyboard focus" does not work.  I am using Pages and massively hampered by the erratic function of "zoom follows keyboard focus".  The quality of zoom is excellent but this core function's non functioning is appalling. any solutions?