Big problem with put the same received dataSource on two different panels

Hello All!
I have a big problem, but first what have I done:
I am writting application that is based on AVReceiver2 and AVTransmit2 from Sun help.
I have modified AVReceiver2 to only receive one stream - video stream.
I show received video on scrollPane, but I want to show the same video on second scrollPane in the same time. I have read about cloning dataSource, but I don't know how to modify that code to make it work.
This is my receiver class (logger is my own class that have listbox, so don't watch on it. This is not important):
public class Połączenie implements ReceiveStreamListener, SessionListener,
     ControllerListener
    String session = null;
    RTPManager manager = null;
    public Player player1 = null;
    boolean dataReceived = false;
    Object dataSync = new Object();
    private Logger logger;
    private JPanelŹródłoPołączone panelOgólny;
    private JPanelŹródłoSzczegóły panelSzczegóły;
    private Date dataRozpoczęcia;
    public Połączenie(String session, JPanelŹródłoSzczegóły panelSzczegóły, JPanelŹródłoPołączone panelOgólny, Logger logger) {
        this.session = session;
        this.logger = logger;
        this.panelOgólny = panelOgólny;
        this.panelSzczegóły = panelSzczegóły;
    public void Start()
        if (!initialize())
            System.err.println("Failed to initialize the sessions.");
            System.exit(-1);
            System.err.println("Odbiór rozpoczęty");
    public boolean initialize() {
        try {
         InetAddress ipAddr;
         SessionAddress localAddr = new SessionAddress();
         SessionAddress destAddr;
         SessionLabel sessionLabel;
         // Open the RTP sessions.
           // Parse the session addresses.
          try {
              sessionLabel = new SessionLabel(session);
          } catch (IllegalArgumentException e) {
              System.err.println("Failed to parse the session address given: " + session);
              return false;
          System.err.println("  - Otwarcie sesji RTP: addr: " + sessionLabel.addr + " port: " + sessionLabel.port + " ttl: " + sessionLabel.ttl);
          manager = (RTPManager) RTPManager.newInstance();
          manager.addSessionListener(this);
          manager.addReceiveStreamListener(this);
          ipAddr = InetAddress.getByName(sessionLabel.addr);
          if( ipAddr.isMulticastAddress()) {
              // local and remote address pairs are identical:
              localAddr= new SessionAddress( ipAddr,
                                 sessionLabel.port,
                                 sessionLabel.ttl);
              destAddr = new SessionAddress( ipAddr,
                                 sessionLabel.port,
                                 sessionLabel.ttl);
          } else {
              localAddr= new SessionAddress( InetAddress.getLocalHost(),
                                      sessionLabel.port);
                    destAddr = new SessionAddress( ipAddr, sessionLabel.port);
          manager.initialize( localAddr);
          // You can try out some other buffer size to see
          // if you can get better smoothness.
          BufferControl bc = (BufferControl)manager.getControl("javax.media.control.BufferControl");
          if (bc != null)
              bc.setBufferLength(350);
              manager.addTarget(destAddr);
        } catch (Exception e){
            System.err.println("Cannot create the RTP Session: " + e.getMessage());
            return false;
     // Wait for data to arrive before moving on.
     long then = System.currentTimeMillis();
     long waitingPeriod = 30000;  // wait for a maximum of 30 secs.
     try{
         synchronized (dataSync) {
          while (!dataReceived &&
               System.currentTimeMillis() - then < waitingPeriod) {
              if (!dataReceived)
               System.err.println("  - Oczekiwanie na transmisj&#281; danych...");
              dataSync.wait(1000);
     } catch (Exception e) {}
     if (!dataReceived) {
         System.err.println("No RTP data was received.");
         close();
         return false;
        return true;
     * Close the players and the session managers.
    protected void close() {
         try {
            player1.close();
         } catch (Exception e) {}
     // close the RTP session.
         if (manager != null) {
                manager.removeTargets( "Closing session from AVReceive2");
                manager.dispose();
                manager = null;
     * SessionListener.
    public synchronized void update(SessionEvent evt) {
     if (evt instanceof NewParticipantEvent) {
         Participant p = ((NewParticipantEvent)evt).getParticipant();
         System.err.println("  - Do&#322;&#261;czy&#322; nowy u&#380;ytkownik: " + p.getCNAME());
     * ReceiveStreamListener
    public synchronized void update( ReceiveStreamEvent evt) {
     RTPManager mgr = (RTPManager)evt.getSource();
     Participant participant = evt.getParticipant();     // could be null.
     ReceiveStream stream = evt.getReceiveStream();  // could be null.
     if (evt instanceof RemotePayloadChangeEvent) {
         System.err.println("  - Received an RTP PayloadChangeEvent.");
         System.err.println("Sorry, cannot handle payload change.");
         System.exit(0);
     else if (evt instanceof NewReceiveStreamEvent) {
         try {
          stream = ((NewReceiveStreamEvent)evt).getReceiveStream();
          DataSource ds = stream.getDataSource();
//=========important thing:
                        DataSource cloneableDS = Manager.createCloneableDataSource( ds );
                        DataSource clonedDS = ((SourceCloneable)cloneableDS).createClone();
//========
          // Find out the formats.
          RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
          if (ctl != null){
              System.err.println("  - Recevied new RTP stream: " + ctl.getFormat());
          } else {
              System.err.println("  - Recevied new RTP stream");
          if (participant == null)
              System.err.println("      The sender of this stream had yet to be identified.");
          else {
              System.err.println("      The stream comes from: " + participant.getCNAME());
          // create a player by passing datasource to the Media Manager
//=====important thing:
                        player1 = javax.media.Manager.createPlayer(clonedDS);
//=====
          if (player1 == null)
              return;
          player1.addControllerListener(this);
          player1.realize();
          // Notify intialize() that a new stream had arrived.
          synchronized (dataSync) {
              dataReceived = true;
              dataSync.notifyAll();
         } catch (Exception e) {
          System.err.println("NewReceiveStreamEvent exception " + e.getMessage());
          return;
     else if (evt instanceof StreamMappedEvent) {
          if (stream != null && stream.getDataSource() != null) {
          DataSource ds = stream.getDataSource();
          // Find out the formats.
          RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
          System.err.println("  - The previously unidentified stream ");
          if (ctl != null)
              System.err.println("      " + ctl.getFormat());
          System.err.println("      had now been identified as sent by: " + participant.getCNAME());
     else if (evt instanceof ByeEvent) {
          System.err.println("  - Got \"bye\" from: " + participant.getCNAME());
      player1.close();
        manager.dispose();
    }

I wanted to show the same video stream on 2 panels at the same time. The panels are on 2 different Tabs of TabbedPane.
So I done some kind of switch:
- when user change tab, I change vievport from one panel to another. This works gr8, but I need to record some received video on the same time when user watch it.
I find some code to record - this works on single machine, but now, when I have cloned dataSource I supposed to be able to record received video, but guess what: it doesn't work.
Code of recording part:
           DataSource ds2; // I cloned this the same as I posted earlier
            PushBufferStream pbs;
     Vector camImgSize = new Vector();
     Vector camCapDevice = new Vector();
     Vector camCapFormat = new Vector();
     int camFPS;
     int camImgSel;
     Processor processor = null;
     DataSink datasink = null;
    public void record()
        fetchDeviceFormats();
          camImgSel=0;     // first format, or otherwise as desired
          camFPS = 30;     // framerate
          // Setup data source
          fetchDeviceDataSource();
          createPBDSource();
          createProcessor(ds2); // i'm using cloned datasource
          startCapture();
          try{Thread.sleep(20000);}catch(Exception e){}     // 20 seconds
          stopCapture();
     boolean fetchDeviceFormats()
          Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(null));
          CaptureDeviceInfo CapDevice = null;
          Format CapFormat = null;
          String type = "N/A";
          CaptureDeviceInfo deviceInfo=null;boolean VideoFormatMatch=false;
          for(int i=0;i<deviceList.size();i++)
               // search for video device
               deviceInfo = (CaptureDeviceInfo)deviceList.elementAt(i);
               if(deviceInfo.getName().indexOf("vfw:")<0)continue;
               Format deviceFormat[] = deviceInfo.getFormats();
               for (int f=0;f<deviceFormat.length;f++)
                    if(deviceFormat[f] instanceof RGBFormat)type="RGB";
                    if(deviceFormat[f] instanceof YUVFormat)type="YUV";
                    if(deviceFormat[f] instanceof JPEGFormat)type="JPG";
                    Dimension size = ((VideoFormat)deviceFormat[f]).getSize();
                    camImgSize.addElement(type+" "+size.width+"x"+size.height);
                    CapDevice = deviceInfo;
                    camCapDevice.addElement(CapDevice);
                    //System.out.println("Video device = " + deviceInfo.getName());
                    CapFormat = (VideoFormat)deviceFormat[f];
                    camCapFormat.addElement(CapFormat);
                    //System.out.println("Video format = " + deviceFormat[f].toString());
                    VideoFormatMatch=true;     // at least one
          if(VideoFormatMatch==false)
               if(deviceInfo!=null)System.out.println(deviceInfo);
               System.out.println("Video Format not found");
               return false;
          return true;
     * Finds a camera and sets it up
     void fetchDeviceDataSource() //I test it on localhost so I don't change it
          CaptureDeviceInfo CapDevice = (CaptureDeviceInfo)camCapDevice.elementAt(camImgSel);
          System.out.println("Video device = " + CapDevice.getName());
          Format CapFormat = (Format)camCapFormat.elementAt(camImgSel);
          System.out.println("Video format = " + CapFormat.toString());
          try
               // ensures 30 fps or as otherwise preferred, subject to available cam rates but this is frequency of windows request to stream
               FormatControl formCont=((CaptureDevice)ds2).getFormatControls()[0];
               VideoFormat formatVideoNew = new VideoFormat(null,null,-1,null,(float)camFPS);
               formCont.setFormat(CapFormat.intersects(formatVideoNew));
          catch(Exception e){}
     * Gets a stream from the camera (and sets debug)
     void createPBDSource()
          try
               pbs=((PushBufferDataSource)ds2).getStreams()[0];
          catch(Exception e){}
     public void createProcessor(DataSource datasource)
          FileTypeDescriptor ftd = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
          Format[] formats = new Format[] {new VideoFormat(VideoFormat.INDEO50)};
          ProcessorModel pm = new ProcessorModel(datasource, formats, ftd);
          try
               processor = Manager.createRealizedProcessor(pm);
          catch(Exception me)
               System.out.println(me);
               // Make sure the capture devices are released
               datasource.disconnect();
               return;
     private void startCapture()
          // Get the processor's output, create a DataSink and connect the two.
          DataSource outputDS = processor.getDataOutput();
          try
               MediaLocator ml = new MediaLocator("file:capture.avi");
               datasink = Manager.createDataSink(outputDS, ml);
               datasink.open();
               datasink.start();
          }catch (Exception e)
               System.out.println(e);
          processor.start();
          System.out.println("Started saving...");
     private void pauseCapture()
          processor.stop();
     private void resumeCapture()
          processor.start();
     private void stopCapture()
          // Stop the capture and the file writer (DataSink)
          processor.stop();
          processor.close();
          datasink.close();
          processor = null;
          System.out.println("Done saving.");
     }I run method record() from gui, after I received stream.
IMPORTANT:
     on:           processor.close();
I have an exception:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.sun.media.multiplexer.video.AVIMux.writeFooter(AVIMux.java:827)
at com.sun.media.multiplexer.BasicMux.close(BasicMux.java:142)
at com.sun.media.BasicMuxModule.doClose(BasicMuxModule.java:172)
at com.sun.media.PlaybackEngine.doClose(PlaybackEngine.java:872)
at com.sun.media.BasicController.close(BasicController.java:261)
at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
at com.sun.media.BasicController.close(BasicController.java:261)
at jmonitorserver.engine.Po&#322;&#261;czenie.stopCapture(Po&#322;&#261;czenie.java:684)
And the video file have 0kb, even during recording
datasource ds2 is not null.
any idea?

Similar Messages

  • Has anyone had a problem with viewing the same pdf but it looks different on two computers?

    I am plotting a pdf file from a DWG drawing.  The pdf file looks fine on my computer.  However, when I send it to someone else the lines are not visible and it is hard for them to read.  I have tried exporting to pdf and plotting to pdf. The program I am using is AutoCAD 2012 and Adobe Reader X. I am having problems finding a solution to this.

    Hello, you posted in a forum about the help files, I understand the possible confusion with its name. I'm going to move this post to the Acrobat forum.

  • Can two people share the same Apple ID on two different iPhones and maintain different passwords?  Yes, there is more to the story.

    I have an iMac, and iPhone.  I've had my Apple ID for a few years. 
    My wife got an iPhone 4S a few months back and the salesperson at Verizon set her Apple ID the same as mine, but gave her a different password.  I don't know if this was ok, but that is what happened.
    So, yesterday, we both upgraded to IOS6 and I had no problem logging in to my iPhone with my Apple ID.  When my wife went to log in, she was told that she was entering the wrong password. We entered the password over and over again and still was wrong.
    The question is... can two people share the same Apple ID on two different iPhones and maintain different passwords?  (I have the feeling her iPhone is thinking that since it's my Apple ID, it wants my password.)
    If not, can I still set up a new Apple ID for her even through she's had the iPhone for a few months?
    Thanks.

    Hi
    You shold follow your feelings, its probably right most of the time.
    You can have 5 different devices hucked upp to one Apple ID. What I have done is that my wife and I have one Apple ID, when I bye a new app on my phone, She gets it to. Thats nice.
    You can allways set upp a new Apple ID for your wife.

  • Using the same Credit Card on two different iPhones

    Wanted to know if it's possible to use the same credit card on two different iPhones.
    There have been times that I wished I had a card that was in my wife's possession for certain "Points Purchases"
    It would be so handy to share a single card on two phones.  Has anyone done this?

    I appreciate your response but, the question was in relation to Apple Pay.  I thought that was the forum I posted in.
    So...let me try this again.  We have one Amex card but say I want to purchase something at Home Depot with it and she is out shopping at Nordstrom's.  Can my wife and I have the same card registered in Apple pay on each of our phones so that it's available for both of us to use?  Or are you only allowed to register a card once on one phone?  This has nothing to do with iTunes purchases or Apple ID's.   This is for for using Apple Pay out and about at different retailers.

  • Can I use the same email address on two different iPads?

    Can I use the same email address on two different iPads?
    Jackie

    I use AOL for my work account, I can open an email on my iPad, my iPod Touch, my iMac, another iMac in the office and there are no issues at all. However, my AOL account is IMAP. I read email on the iPad, turn around and read and print from the iMac and someone else is accessing the email at the same time.
    We access the same emails all the time as we have one generic email address that we both use. We like to multitask with AOL.

  • How to link the same horizontal page for two different vertical pages without duplicate them?

    Hey guys,
    Is there a way to link the same horizontal page on two different vertical pages without duplicate the horizontal page?
    I have a doublepage of a book splitted in two parts in different vertical pages but i want link the fullsized image in the horizontal page for both of them. Got that? hahaha
    Thank you all

    Confusing But interesing.
    I think it's possible. I have a idea. It will need one advanced trick.
    To explain it, I need test simply haha.

  • HT204053 Can I use the same Apple ID on two different iphones?

    Can I use the same Apple ID on two different iphones and use facetime to communicate ?

    Yes.
    http://ipad.about.com/od/iPad_Guide/ss/How-To-Use-FaceTime-On-The-iPad_2.htm

  • HT3702 I have two charges to my credit card for the same dollar amount at two different times. First on 2/27/14 & second on 3/25/14 for $4.34. today's is pending payment and last months has been removed form my account. I have not purchased anything.

    I have two charges to my credit card for the same dollar amount at two different times. First on 2/27/14 & second on 3/25/14 for $4.34. today's is pending payment and last months has been removed from my account. I have not purchased anything.

    If they are regular payments for the same amount then it sounds like you have an auto-renewing subscription - there are instructions on this page for managing and stopping them : http://support.apple.com/kb/HT4098

  • Problem with embeding the same view in dynamically created view container

    Hello Experts,
                  I am getiing a dump when i try to embed the same view inside the dynamically created view container of
    dynamically created tabs of a tabstrip
    The requirement go like this, i have 2 views in which i have have to embed the 2nd view to view1 where i have an empty
    tabstrip without tabs. During runtime i create tabs as well as view containers accordingly and then try to embed view2 in tabs.
    I have put the below mentioned code in HANDLEIN,
      DATA: lref_vcntlr  TYPE REF TO if_wd_view_controller,
            lref_comp    TYPE REF TO if_wd_component_usage,
            lv_embed_pos TYPE string.
      lref_vcntlr = wd_this->wd_get_api( ).
      lv_embed_pos = 'FILE_PERS_EDIT/VC_GENERAL'.
      TRY.
          CALL METHOD lref_vcntlr->do_dynamic_navigation
            EXPORTING
              source_window_name        = 'FILE_PERSISTENCE_WND'          " Window
              source_vusage_name        = 'FILE_PERS_EDIT_USAGE_1'       " Source View usage
              source_plug_name          = 'TO_EDIT_LAYOUT'                       " Outbound plug
              target_view_name          = 'PERS_EDIT_LAYOUT'                  " Second view to be embedded
              target_plug_name          = 'IN'                                                  " Second view inboun plug
              target_embedding_position = lv_embed_pos
            RECEIVING
              component_usage           = lref_comp.
        CATCH cx_wd_runtime_repository .
      ENDTRY.
      wd_this->fire_to_edit_layout_plg( ).
    This works fine for the first time.
    However onaction tab select i change the embeding position( 'FILE_PERS_EDIT/view container name of different tab') of the view2 an try to embed view2 in a different tab.
    At this point i get a dump stating View2 already present in the window 'FILE_PERSISTENCE_WND' of component.
    I think, the view2 embediing has to be removed before i add the view2 in a different tab
    Kindly let me know how to remove view2 embedding from tab1 before i add a view2 to a different tab or is there any other
    means to handle this problem?
    Thanks & Best Regards,
    Srini.

    Hello Srini,
    I found a solution to your problem, because I had a similar task.
    In WDDOINIT I changed the method do_dynamic_navigation to if_wd_navigation_services_new~prepare_dynamic_navigation:
    DATA:
        l_view_controller_api TYPE REF TO if_wd_view_controller.
      l_view_controller_api = wd_this->wd_get_api( ).
      TRY.
          CALL METHOD l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation
            EXPORTING
              source_window_name        = 'WDW_MAIN'
              source_vusage_name        = 'VW_SUB_USAGE_1'
              source_plug_name          = 'TO_VW_CONTENT'
              target_component_name     = 'ZTEST_DYNAMIC'
              target_view_name          = 'VW_CONTENT'
              target_plug_name          = 'DEFAULT'
              target_embedding_position = 'VW_MAIN/VC_TAB.VW_SUB/TAB1_VC'
            RECEIVING
              repository_handle         = wd_this->g_rep_handle.
        CATCH cx_wd_runtime_repository .
      ENDTRY.
      wd_this->fire_to_vw_content_plg( param1 = 'TAB1' ).
    In the action I first deleted the navigation targets, then navigated to the empty-view and last I called my target view:
      DATA:
        lv_position           TYPE string,
        l_view_controller_api TYPE REF TO if_wd_view_controller,
        lr_view_usage         TYPE REF TO if_wd_rr_view_usage,
        lr_view_***_t         TYPE wdrr_vca_objects,
        lr_view_***           LIKE LINE OF lr_view_***_t.
      l_view_controller_api = wd_this->wd_get_api( ).
      lr_view_usage = wd_this->g_view->get_view_usage( ).
      lr_view_usage->delete_all_navigation_targets( plug_name = 'TO_VW_CONTENT' ).
      CLEAR lv_position.
      CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' old_tab '_VC' INTO lv_position.
      TRY.
          l_view_controller_api->if_wd_navigation_services_new~do_dynamic_navigation(
          source_window_name = 'WDW_MAIN'
          source_vusage_name = 'VW_SUB_USAGE_1'
          source_plug_name   = 'TO_EMPTYVIEW'
          target_component_name = 'ZTEST_DYNAMIC'
          target_view_name   = 'EMPTYVIEW'
          target_plug_name   = 'DEFAULT'
          target_embedding_position = lv_position ).
        CATCH cx_wd_runtime_repository.
      ENDTRY.
      CLEAR lv_position.
      CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' tab '_VC' INTO lv_position.
      TRY.
          wd_this->g_rep_handle = l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation(
            source_window_name = 'WDW_MAIN'
            source_vusage_name = 'VW_SUB_USAGE_1'
            source_plug_name   = 'TO_VW_CONTENT'
            target_component_name = 'ZTEST_DYNAMIC'
            target_view_name   = 'VW_CONTENT'
            target_plug_name   = 'DEFAULT'
            target_embedding_position = lv_position ).
        CATCH cx_wd_runtime_repository.
      ENDTRY.
      wd_this->fire_to_vw_content_plg( param1 = tab ).
    Ann.: I my example, I had 3 views: VW_MAIN which embedds VW_SUB. VW_SUB has the tabs in it and VW_SUB embedds VW_CONTENT.
    BR,
    Roland

  • Problems with putting the Schema on the query!!!! Need Help.

    Hi guys!
    I have a problem and a doubt about putting schema name on my query. I want to know if is neccesery specify the schema name on the query I want to execute. All my queries are on my application, I connect from the begging to my oracle data base with a user and password, this user is only alow for that schema. So my question is if I can ommit the schema name on the query.
    Explample
    Select * From Table
    Select * from Student
    Select * from Schema.Table
    Select * from Institution.Student
    Thanks, and I hope you can help me,
    Yuni.

    YOU WROTE "I have a problem and a doubt about putting schema name on my query. I want to know if is neccesery specify the schema name on the query I want to execute. All my queries are on my application, I connect from the begging to my oracle data base with a user and password, this user is only alow for that schema. So my question is if I can ommit the schema name on the query."
    don't use words that you don't know!
    also, your example (in the first post) gave the schema.table as INSTITUTION.STUDENT
    so these are all words that you started with.
    now, PAY ATTENTION and RUN THE EXAMPLE SQLS I GAVE
    connect to the database as INSTITUTION (user, schema, I don't care which).
    execute the sql statement "select * from student".
    did it do anything? did it return data, did it say "no rows", or did it have an error? my magic 8 ball and x-ray glasses are broken and I can't see you monitor (my old computer only has that one way window). if it works, then you clearly do not need to put be "putting the Schema on the query!!!!". if it didn't work, then TELL US EXACTLY WHAT HAPPENED (copy AND paste).
    and where are my cigars ;-)
    MERGE AGAIN????? PLZ Somebody HELP ME!!!!!

  • Big problems with updating the new Firmware to my Zen To

    Hi, I'm new and not sure, if this problem has occured to other users too.
    I wanted to update my Zen Touch. I'm trying this now for over month. My Zen Touch had to been send to Creative two times already and as it looks now, I will have to send it to them for a third time.
    Everytime I start the firmware update, the Zen touch crashes and is not recognized by the PC anymore. No way, to fix it from here. I have tried the AutoUpDate option and the manual one. Both with the same result.
    Last time I send the Zen Touch to Creative I have asked them, if they couldn't install the new firmware, before sending it back to me. Unfortunatly they didn't and now I have the same problem again.
    It dri'ves my crazy! I would like to have the newest firmware, but obviously I cannot get it installed from my PC.
    Did anybody of you have this problem too? Or does anybody know a way to solve the problem. I don't want to send it back in. I already couldn't use it now for 4 or 6 weeks. I'm realy pretty angry.

    Are you trying to install the v2 PlayForSure firmware?
    Ordinarily the process should work unless there is some connection issue with your PC. You might want to try the process on another suitably specced PC, but it depends what state your player is in now.

  • How to use the same apple id on two different iphones with different sync?

    Hi all,
    I own an iPhone 4s for personal use. Soon my company is going to give me a business phone and I can choose to have another iPhone. I'd love it but I don't know if what I wanna do is possible.
    Let's say I will have iPhone P (personal) and iPhone B (business) and Apple ID MyID.
    At the moment on iPhone P with account MyID I have application App1, App2, ... App9, I have contacts Cont1, Cont2, ...Cont9, I have songs Song1, Song2, ... Song9. All these are synced on my personal PC via iTunes and stored in the iCloud.
    When I'll get iPhone B I'd love to be able to use on it my Apple ID MyID and to sync it with my business PC (so NOT the same one I use for iPhone P).
    The configuration I'd love to have would be the following.
    iPhone P
    - Applications: App1, App2, App3, App8, App9
    - Contacts: Cont1, Cont2, ... Cont9
    - Songs: Song1, Song2, ... Song9
    iPhone B
    - Applications: App4, App5,App6, App7, App8, App9, App10 etc.
    - Contacts: Cont1, Cont2, Cont10, Cont11, ..., Cont20
    - Songs: Song1, Song2, Song10, Song11, ... Song20
    So will it be possible using the same Apple ID MyID on both iPhones to have this configuration? Some apps, contacts and songs in common and some differents?
    If so, how should I configure the two iPhones and the two PCs?
    Kind regards.

    If you use the same Apple ID for iCloud on each device, yes. However, you can use the same Apple ID for iTunes content on each device, but different Apple ID's for iCloud, iMessage, FaceTime, etc., on each device. That way, you can have whatever iTunes content you want on each phone, but keep all of the other data separate. You can create another Apple ID here:
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleId?loca lang=en_US
    Must be a verified email address.

  • I have the same itunes account on two different devices with different information.  how can I merge the two?

    I have an ipad which was synced with an old computer.   I have moved everything to the icloud from my new computer and iphone besides what is on the ipad.  The itunes account is the same, just different info on the two.  How do I merge them? 

    Hello there, Shininglight66.
    It sounds like you're asking how to get content on the iPad transferred down to your computer. The following Knowledge Base article should help out with that issue:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/HT1848
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • How can I use the same "I Tunes" on two different computers

    I’m using two different kinds of Personal Computer: One is Desktop PC And the other one is Notebook .
    In each computer there are the same songs and when I get the new ones to the Desktop I want them to be placed on the Notebook or reverse.
    Where does the I Tunes save the playlist on the hard drive ?
    I have prepared a playlist on my Notebook and want it to be seen on the Desktop but I dont want to fallow the steps File > Library > Export Playlist on the Notebook. Is there any other way to make this issue instead of the mentioned steps.
    How can I see the same Playlists and songs on two different computers ( notebook and desktop) including the updating processes.
    Operating systems of the computers:
    Desktop: XP Pro
    Notebook: Vista Bussiness

    I use SyncToy 2.0 to keep two instances of my library in sync. SyncToy's preview will show which files it is about to update giving you a chance to spot unexpected changes and during the run only the changed files will be copied saving lots of time.
    As long as I sync after making updates at one instance of the library before making any updates at the other then everything works just fine. I periodically run iTunes Folder Watch to check for any orphaned entries or new items that haven't been imported into the active library. If your machines are regularly networked together this process is fairly straightfoward. Mine are in disparate locations so I use one of the (physically) small WD My Passport host powered drives which I take between home & work, synchronising at either end. This gives me three complete copies of my library so I'm covering backup & synchronisation in the same operation.
    When connecting my iPod at either location iTunes recognises itself as the "home" library for the iPod so I'm able to use the sync with selected playlists option without getting warning messages about the iPod being synced with a different library.
    tt2

  • How to refer to the same JComboBox from object from different panels

    Dear All, i have a question which i could not solve for a past one week.
    In my program i have three panels. In the first panel i have created JComboBox component and throught textfield i add values to it. In my other two panels i make a reference to the JComboBox object which is in my first panel, so that whenever i enter values to it, the same values must be visibile in the other references in second and third panel comboboxes my problem is:
    1. In my second panel JComboBox component reference doesnot appear at all
    2. Can we refer to the same swing component or can we add same swing component in several places
    2.1 If not how to make notify other reference objects when referee' s object state changes.
    thank you in advance

    I'm not PhHeid, but then neither is PhHein.
    Read the API for DefaultComboBoxModel and you'll find how to construct and to modify the state of your model.
    Read the API for JComboBox and you'll find there's a constructor which takes a model as an argument.
    Pass the same model to the constructors of all the JComboBoxes.
    db

Maybe you are looking for

  • 10.10 Clients with 10.6.8 Server?

    I am wondering if any of you can share your experience with running 10.10 clients on a 10.6.8 server.  We are currently running 10.9.4 clients using mobile accounts (no syncing) and our experience has been quite good.  We are also using WGM for prefe

  • Lock form but not fillable fields

    I'm sure this has been discussed and the answer is somewhere, I just can't find it. I created a form from a blank page. When opened in Reader the user is able to move around my text and fields. How do I lock the form from being altered and still allo

  • Using cookies in servlet

    Am setting up a cookie in my servlet as follows: String sessionID = (String) session.getId(); Cookie info = new Cookie("userData", sessionID); response.addCookie(info); response.sendRedirect(response.encodeRedirectURL("http4://localhost:8084/root/wel

  • Export Sales - Variant file

    Guys, Im trying to work on Export sales under bond. But in the configuration doc it is asking me to create customer, Material and CIN master data w.r.t a variant txt file. Kindly let me know how to do this. XD01 Create Customer master manually with r

  • What is the best version of Skype for Mac OS X Version 10.7.3

    What is the best version of Skype for Mac OS X 10.7.3 users?