RTP Manager can't support multicast

I want to transmitt voice from one to many using multicast address. I put "230.0.0.1" with port 2222.
I worked with this code (I show just on createTransmitter and stopStreaming method).
private String createTransmitter() {
     InetAddress ipAddr;
     SendStream sendStream;
     SourceDescription srcDesList[];
     String ipAddr = "230.0.0.1";
     int portBase = 2222;
     try {
            rtpMgrs = RTPManager.newInstance();
            ipAddr = InetAddress.getByName(ipAddress);
               localAddr = new SessionAddress(InetAddress.getLocalHost(), portBase);
               destAddr = new SessionAddres(ipAddr, portBase);
            rtpMgrs.initialize(localAddr);
            rtpMgrs.addTarget(destAddr);
            System.err.println("Created RTP session: " + ipAddress + " " + portBase);
            sendStream = rtpMgrs.createSendStream(dataOutput, 0);
            sendStream.start();
        } catch (Exception  e) {
            e.printStackTrace();
            return e.getMessage();
     return null;
public void stopStreaming() {
     synchronized (this) {
         if (processor != null) {
                try {
                    processor.stop();
                    processor.close();
                    processor = null;
                    rtpMgrs.removeTarget(destAddr, "destination disconnect");
                    rtpMgrs.removeTarget(localAddr, "local disconnect");
                    rtpMgrs.removeTargets("disconnect all");
                    rtpMgrs.dispose();
                } catch (InvalidSessionAddressException ex) {
                    Logger.getLogger(AudioTransmitter.class.getName()).log(Level.SEVERE, null, ex);
}I can using this, just once (start and stop then). When I'm going in second, I've got the error message that say
"javax.media.rtp.InvalidSessionAddressException: Can't open local data port: 22224"
I debug this, and found that the problem when I initialize RTP Manager. I have noticed that initialized() method just call once. But, I have stopped the stream, and make RTPManager removeTargets and dispose. Show where is the problem?
Edited by: 831279 on Apr 12, 2011 6:21 PM

Update :
I've tried work with AVTransmit2.java. It has same problem. Cannot open local port when meet second chance.
        String deviceName = "javasound://0";
        String ipDest = "224.112.112.112";
        String port = "22222";
     AVTransmit2 at = new AVTransmit2(new MediaLocator(deviceName),
                              ipDest, port, null);
     // Start the transmission
     String result = at.start();
     if (result != null) {
         System.err.println("Error : " + result);
         System.exit(0);
     System.err.println("Start transmission for 60 seconds...");
     try {
         Thread.currentThread().sleep(10000);
     } catch (InterruptedException ie) {
     // Stop the transmission
     at.stop();
        at = new AVTransmit2(new MediaLocator(deviceName), ipDest, port, null);
     result = at.start();
     if (result != null) {
         System.err.println("Error : " + result);
         System.exit(0);
     System.err.println("Start transmission for 60 seconds...");
     try {
         Thread.currentThread().sleep(60000);
     } catch (InterruptedException ie) {
     at.stop();
     System.err.println("...transmission ended.");
     System.exit(0);
result :
Track 0 is set to transmit as:
dvi/rtp, 8000.0 Hz, 4-bit, Mono
Created RTP session: 224.112.112.112 22222
Start transmission for 60 seconds...
Track 0 is set to transmit as:
dvi/rtp, 8000.0 Hz, 4-bit, Mono
Error : Can't open local data port: 22222
So, how to fix this? Thx for advance..

Similar Messages

  • Can mpls support multicast?

    Hi,
    Can mpls support multicast packets?
    Meaning, can multicast packets be sent to destinations over mpls network?
    If so, how does it work?
    I read in this forum somewhere that someone mentioned mpls and multicast can co-eixt.
    What exactly does it mean?
    Thanx!

    In the MPLS network you can either use native multicast or you could implement mVPN on the PE routers if you implement MPLS VPN. mVPN uses native multicast in the core to encapsulate the multicast messages coming from a CE router and to forward these messages to PEs containing the same VRF.
    For more information on mVPN, see the following link:
    http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122newft/122t/122t13/ftmltvpn.htm
    Hope this helps,

  • Does Flash Media Server support MULTICAST?

    I've been looking thru all the doc's but I can't seem to find
    a single thing about whether Flash Media Server can actually
    support multicast.

    If by
    multicast you mean each user can have an individual "stream"
    that they can control independent of other users, then yes. HTH...

  • Solution Manager - Can support user user changes manegement ??

    Hi All,
    In solution manager can change request type as a "New user creation" or "User authorization Change".
    So that we can keep track of New user creation or change in authorization that are created in respective R/3 system.
    The process flow is same like change management for developement correction or customization correction.
    Please give me your comments. It will be very valuable for me.
    Thanks in advance.
    Ravindra Nikam

    As I said, it will depend on the scenarios you will configure.
    For the installation, you will not need any. When it comes to the configuration (SOLMAN_SETUP) you'll need the authorizations in SMP for S-User.
    You can also check here:
    Home - SAP Solution Manager Setup - SCN Wiki
    Check the prerequisites at these Guide:
    https://service.sap.com/~sapidb/011000358700001119962013E.pdf
    https://service.sap.com/~sapidb/011000358700001120342013E.pdf
    Regards

  • RTP Manager session address settings

    I'm trying to use RTP Managers to send and receive a video transmission. On the server I set the initialize address to some port on the local machine, I set the addTarget address to some clients IP address and port.
    On the client I set the initialize address to the local machine and port to which the server RTP manager is sending. I set the addTarget address to some other port on this machine.
    The broadcast works, but the Server will fail when processor.close() is called, it just hangs there and I have to kill it with the task manager.
    I am actually running both client and server on the same machine, is this a potential problem?
    What is the correct way to configure the ip addresses and ports for the initialize and addTarget calls to the RTP Managers on the client and server respectively?
    How can I dynamically have additional clients connect to the server and receive the broadcast, I am not in a multicast environment instead connecting over the internet? At the moment the server is broadcasting to only 1 client.
    Please help.

    thanks for the info. So really the best way is to provide an RMI call for clients to initiate the connection, and then call the addTarget for the sendstream, specifying the connecting clients IP address and port. If the client is the first to connect, then I would create the sendStream and start it. Also the client would have to call another RMI method to disconnect from the stream, and if it is the only client connected, then to close and stop the sendStream.
    Is this an accurate description?

  • SOLMAN EHP1 - anyone can create support message in Satellite System's Help?

    Hi,
    I just curios that why everyone can create support message in satellite system-> help -> create support message?
    I tested with restricted profile user and without role SAP_SUPPDESK_CREATE, NO BP created but he still manage to create support message???? Any idea??
    Also, same goes to any user can process ticket in SOLMAN with no BP-Employee role and SAP_SUPPDESK_* roles assigned.
    Your kind input is very much appreciated.
    Thanks,
    Nicholas Chang

    Hi Nicholas
    If you are using a "Named" user instead of the Trusted Relationship in the RFC maintained in BCOS_CUST for entry OSS_MSG then this is quite possible. In this case the "Named" user will be used to call the interface to create message and the calling user ie the end user creating the ticket will only be used as "Reporter" of the message.
    The user entered in the RFC details probably has the authorization to create Support desk messages.
    Regards
    Amit

  • Project Manager can´t see my .lso files

    Hello logicusers, I am new at the forum and this is my first trouble: Project Manager can´t see my .lso files. I would like to start using PM but it seems to be difficult without seeing .lso files in the navigator window.
    I´ve read the books, I´ve checked here for this tip and got a lot of useful information, but no solution found. I hope somebody could help me please:
    - Macbook white with LP 7.2.3
    - Reinstalled and cleaned all
    - Installed OSX upgrade 0.4.9 manually
    - Installed pro application support 3.1
    - PM Data and logic preferences deleted
    - permissions applied to "all enclosed folders"
    - Performed a complete scan in PM
    If I create a new song from logic, PM can´t see this .lso file.
    If I scan a external hard drive (lacie f.a.porsche) through PM, it only recognizes one .lso file from a lot of old songs, and I don´t imagine why.
    Yesterday I tried this: opened PM, copied a Template song from the Templates folder to the Desktop; renamed it as "Sidload" (my particular "Autoload" term); until here, everything correct, PM seems to be able to manage "Sidload". But when I open Sidload and save the first change, and .bak folder comes, I can´t make more "visible copies for PM" of this file. Finder can see the new copies, but PM not (files that has created "itself"); so I can´t manage a song that has been copied, renamed and saved for first time -through PM, from a Template; invisible, dissapears. No saving PM data, no checking folder, no advanced search helps.
    I wish to have a way to talk to logic support via mail, but I don´t know how. So I came here to beg you friends for your help. Thank you very much for being here.

    yep, I have scanned at every level, from everything to just a single folder that contains song files. After scanning a folder that conatins songs on my SATA B drive (the one that PM can't find songs), still the songs will not appear.
    I have copied over my songs to the drive that PM seems to see songs on and guess what? It doesn't see those songs copied over.
    This is driving me so nuts I have forgotten that I engaged in this thread...
    http://discussions.apple.com/thread.jspa?threadID=1046126&tstart=0
    Does anyone know what the option in the PM's file menu "import file maps" and delete all exported file maps" does? Or what its for?
    It feels to me that some sort of database or referrence list etc etc has gone very wrong, but I have already tried deleting (manually) the PM data file in somewhere in the library folder etc etc.
    Using file buddy I see that PM stores the a PM database as an invisable file on each drive you have connected. Presumably info for what is on that drive. Perhaps these invisable files need to be manually deleted???
    Message was edited by Thomas O'Carroll because this forum doesn't work properly

  • Firefox is freezing. When I close Firefox, and try to re-start it, it will not open. I need to access Task Manager, where I find Firefox still running. I close Firefox in Task Manager & can re-start Firefox.

    Firefox is freezing in the middle of a browsing session. When I close Firefox, and try to re-start it, it will not open. I need to access Task Manager, where I find Firefox to still be running. Once I close Firefox in Task Manager, I can re-start Firefox. This can happen several times in the space of a few hours? I'm running Vista Home premium with Firefox 3.6.16, and this problem has only started in the last 4 weeks. Can Anyone Help? Core 2 Duo E7300 with 4GB RAM.

    Sounds like it is hanging when you exit and later try to restart Firefox.
    * How to stop the running Firefox process
    ** In Task Manager, does firefox.exe show in the '''<u>Processes</u>''' tab?
    ** See: http://kb.mozillazine.org/Kill_application
    **Windows 7 users: http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576
    * What may cause Firefox to hang at exit
    **Windows 7 Task Manager: http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576
    ** http://support.mozilla.com/en-US/kb/Firefox+hangs
    ** http://kb.mozillazine.org/Firefox_hangs
    ** https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding
    * You may need to try Firefox Safe Mode
    ** You may need to use '''Safe Mode''' to locate the problem: ***See: http://kb.mozillazine.org/Safe_Mode
    ***Firefox 4 users, hold the Shift key while clicking the Firefox 4 desktop icon to enter Safe Mode.
    ***Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox.
    ****In Firefox 4, Safe Mode also disables Plugins and Hardware Acceleration.
    ****If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes '''<u>before</u>''' starting Safe Mode (In Firefox 4, Tools > Add-ons > Appearance). See: http://support.mozilla.com/en-US/kb/Using%20themes%20with%20Firefox#w_managing-themes-and-personas
    ****When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode".
    ****Test to see if the problem you are experiencing is corrected.
    *** If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it
    ***#by enabling '''<u>one at a time</u>''' until the problem reappears.
    ***#You can also enable a few at a time (3-5), keeping track of what you just re-enabled to see if the problem re-occurs; this will help narrow down the possibilities if you have a large number of add-ons.
    ***#'''<u>You MUST close and restart Firefox after EACH change</u>''' via File > Restart Firefox (on Mac: Firefox > Quit).
    ***#You can use "Disable all add-ons" on the Safe Mode start window.
    **See the following for more information
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+plugins
    *** http://support.mozilla.com/en-US/kb/Basic+Troubleshooting
    <br />
    <br />
    '''You need to update the following:'''
    *Adobe Shockwave for Director Netscape plug-in, version 11.0
    *Shockwave Flash 10.2 r152
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE

  • Can DRM support multiple  currency ?

    Can DRM support multiple currency ?

    Hi,
    DRM is a master data management tool - so if you have a currency dimension, then yes it would be easy to manage multiple currencies.
    Can you expand on your question a bit?

  • ADF Desktop Integration - Can it Support Master Detail Information

    I reviewed the OBE and also the user guide. I could not see any specific details as to whether the ADF Desktop integration can support master detail relationship - either master table with detail table or Master form with detail form, to be linked with the excel sheet.
    Defining both the master and detail table as "tables" I was able to get the data into the excel sheet for the entire master and the child of the first master. The fetch of the child records for the second or third master records is not happening, obviously because I am missing suitable actions.
    Please let us know if:
    - the Master detail can be supported in a view only mode in the integrated excel sheet - with partial page functionality?
    - The master - detail page can be used to upload a header record (master) and many detail records.
    Appreciate any inputs.
    Thanks
    Ram.

    Yes. ADFdi can be configured for "master-detail" type use cases.
    You can create cases with a master form and a detail table. Or, you can create cases with multiple tables.
    ADFdi does not automatically manage the relationship between the form and table, or between the tables. So, the implementation details depend on your specific use case.
    For example, given two tables (one above the other), you might choose to make one column in the "master" table double-clickable. The double-click action set can then invoke the download action of the second, "detail" table.
    For a master form - detail table case, you can configure a "next" button to navigate to the next "master" record and download the details into a table.
    HTH

  • RTP Manager

    Hi!
    I want to transmit a video over RTP to a multicast address and used the code from AVTransmit2.java:
    1. create dataoutput from a processor
    2. Initialize the rtpManagers[] with my local address
    3. Add target (multicast) address
    4. Create a SendStream with the rtpmanager and start it
    5. Start Processor
    Everything works fine for the first transmission.
    On EndOfMediaEvent I stop and close the Processor. Then I remove the targets from each rtpmanager and call dispose() for each RTPManager in the list.
    BUT if I want to retransmit, the 2nd Step fails with this exception:
    javax.media.rtp.InvalidSessionAddressException: Can't open local data port: 42050
         at com.sun.media.rtp.RTPSessionMgr.initialize(RTPSessionMgr.java:2688)
    I know the problem is that a port is still in use, but I don't know how that can be, since I call dispose on the rtpManagers list
    Can anybody help, please!!

    hi,
    we r working on a project to transmit media on lan. till date we have tried implementing AVTransmit2 & AVReceive2 simultaneously, WITHOUT ANY SUCCESS. the error is that both do not bind to the same port (we use the following command line to run the progs)
    java AVTransmit2 file:/d:/../filename.avi 127.0.0.1 8000
    java AVReceive2 127.0.0.1/8000 127.0.0.1/8002
    at present we are trying this on a single comp.
    please help us!!!! ITS URGENT!!!!

  • Have a Question regarding RTP Manager?

    Please SomeBody Tell me!
    I am Creating an RTP Player for Each New Receive Stream using RTP Manager.
    I have some question::
    What is the role of SourceDescription in initialize(SessionAddress[] local,Source
    Descritpion[] source,double d,double d,EncryptionInfo encry)?
    Is there any role of AddTarget(SessionAddress dest) nedeed in my application?

    What is the role of SourceDescription in initialize(SessionAddress[] local,Source
    Descritpion[] source,double d,double d,EncryptionInfo encry)?From the API:
    sourceDescription - An array of SourceDescription objects  containing information to send in RTCP SDES packets for the local participant.  This information  can be changed by calling setSourceDescription() on the local Participant object.
    So, source description is used to tell the remote participants things about the sender.
    Is there any role of AddTarget(SessionAddress dest) nedeed in my application?AddTarget tells the RTPManager where to send the RTP streams, so if you expect anyone to receive your streams, you damned well better add them as a target.

  • Cannot create the RTP Session: Can't open local data port

    Hi,
    I'm trying to connect to two webcams simultaneously in the order:
    MediaLocator inputLocator1 = new MediaLocator("rtp://hostname1:8000/video");
    MediaLocator inputLocator2 = new MediaLocator("rtp://hostname2:8000/video");
    But I get this during the second connection:
    Cannot create the RTP Session: Can't open local data port: 8000
    And I can't see the video from hostname2.
    I did a check via netstat, and it seems that both mycomputer is receiving the video from both hostname1 & hostname2:
    TCP mycomputer:3236 hostname1:8000 ESTABLISHED
    TCP mycomputer:3264 hostname2:8000 ESTABLISHED
    TCP connections to both host were established!! But why can't I see the video of hostname2???? I've thought of 2 possible reasons why I cannot see the video of hostname2:
    1. Is this set of local data port maintained by Java? i.e It's not the same as the TCP port 8000 that I see in mycomputer's netstat. If yes, Java has assigned its local data port 8000 to hostname1, so it fails to reassign that port 8000 to hostname2 while hostname1 is still connected. Any other way to fix this apart from changing the portnumber of hostname2?
    2. It has to do with the custom.jar? I've read in an article somewhere in the forum that the custom.jar has to be customized (using JFMCustomizer) to receive video from two hosts with the same portnumber. Can someone elaborate the necessary boxes to check in the JFMCustomizer?
    Thanks much,
    Rach

    After all this while, I finally figured out the problem. In my code, I use MediaLocator to code the receiver and the transmitter. E.g.:
    MediaLocator inputLocator1 = new MediaLocator("rtp://hostname1:8000/video");
    player1 = Manager.createPlayer(inputLocator1)
    MediaLocator inputLocator2 = new MediaLocator("rtp://hostname2:8000/video");
    player2 = Manager.createPlayer(inputLocator2)
    Manager would complain "Cannot create the RTP Session: Can't open local data port: 8000" because port 8000 is already used up by player1, i.e.:
    mycomputer:8000 maps to hostname1:8000
    mycomputer:8000 cannot re-map to hostname2:8000
    To work around this, I'll need to use SessionAddress. SessionAddress provides the flexibility to do an independent local port mapping, e.g.:
    mycomputer:5000 maps to hostname1:8000
    mycomputer:5002 maps to hostname2:8000
    Rach

  • Adobe cloud application manager - can not connect to internet

    To ADOBE - The Adode cloud Order no is DSSY006786009DT and is current
    The Adobe cloud application manager - can not connect to internet even though there is internet connection and says it might be time zone error but that is correct  - Sydney Australia
    Question:
         1. Is anybody else having this problem
         2. How do we fix
    I already changed the time zone east coast US - did not change anything
    Could it be a corrupt program - thus requiring to reinstall program Application manager
    I am using Windows 7.
    It has been like it for ten days - It asks to log in everytime I turn computer on
    All programs in Creative Cloud work
    Any suggestions and solution
    Online help and phone help had no solutions other than what I suggested - that is reload application manager
    Thanks for help
    Ian Cleland

    The Creative Cloud File Synching was just offline, should be online now again.
    See top off: http://forums.adobe.com/community/creative_cloud/creative_cloud_connection
    Maybe that was your problem.

  • K7T Turbo limited edition can't support Windows XP!!!!

    i'm user of K7T Turbo Limited Edition mainboard, i treid to upgrade my OS to Windows XP currently and i found that the installation aborted abnormaly when it reach windows is restarting phase, and my PC will just hang without giving any response, i'm wondering my mianboard can't support Windows XP. Another prob i face is my hp deskject 630c printer couldn't supported by the mainboard also, i had tested on other PC and it works truly well. Anyone facing similar situation ?? can i solve my prob with update the latest BIOS

    Hi!
    There is no reason why your mobo (or printer for that matter, XP-drivers, both for parallel and USB interface can be downloaded from the HP site) would NOT support Windows XP.
    It could be, however,  that you need to update BIOS first. If you have a BIOS version prior to 3.0, you will have to update.
    Regards,
    Hans

Maybe you are looking for

  • Invalid Serial number for Adobe Acrobat 7.0 Pro downloaded from your site

    I understand that you no longer will activate Acrobat 7.0 Pro...so I went to adobe.com\go\activation and downloaned the file for Acrobat 7.0 pro...which is file 22020134.exe and noted the serial number provided which is <removed by mod - kglad>..howe

  • Itunes match on different devices

    I have itunes match turned on. I see the album arts on all devices except my ipad. Does any one know on how to fix this.

  • Can I use the JDK 1.4 compiler?

    I'm getting a build error when trying to use the java.util.Currency class. I was assuming (obviously wrongly) that since Workshop uses the 1.4 JRE that it would access the 1.4 javac. Can I make it do so?

  • Hierarchy Structure

    Hi Folks,      My source structure is  Hierarchy level.. and my target structure is also  almost same like that Hierarchy.. but the thing is.. In the target level Each lower level   we need to populate  the e Source- Hierlevel fileds data also.. for

  • A message is marked as unread - so why doesn't the Inbox count show it?

    There is a message marked as unread (the little blue ball) in an IMAP account's inbox. So why doesn't the Inbox show a (1) next to it to indicate there are unread messages? doug