Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how exactly do you send multiple people audio/video data in QTJ? facing problems...



I am trying to expand my current unicast program into a multiunicast program so Mac A can talk to Mac B,C and vice versa. here is a part of what I have for sending code:
 
public sender(String filePath) throws QTException {
        QTSession.open();
        QTFile file = new QTFile (new File (filePath));
  try {
     MediaParams mediaParams = new MediaParams();
           mediaParams.setWidth (BROADCAST_WIDTH);
           mediaParams.setHeight (BROADCAST_HEIGHT);
           QDGraphics myGWorld = new QDGraphics (new QDRect (BROADCAST_WIDTH, BROADCAST_HEIGHT));
          mediaParams.setGWorld (myGWorld);
        PresParams presParams =
                new PresParams( presenterTimeScale,
                                QTSConstants.kQTSSendMediaFlag |
                                QTSConstants.kQTSAutoModeFlag |
                                QTSConstants.kQTSDontShowStatusFlag,
                                mediaParams );
   pres = Presentation.fromFile( file, presParams );
            pres.preroll(); 
            pres.start();
            startTasking();
}
 
The above works ( i deleted some stuff for space) for one to one conversation and I thought of making a method for extra people:
 
public void addSend(String filePath){
 
        QTSession.open();
        QTFile file = new QTFil! ! e (new File (filePath));
  try {
     MediaParams mediaParams = new MediaParams();
           mediaParams.setWidth (BROADCAST_WIDTH);
           mediaParams.setHeight (BROADCAST_HEIGHT);
           QDGraphics myGWorld = new QDGraphics (new QDRect (BROADCAST_WIDTH, BROADCAST_HEIGHT));
           mediaParams.setGWorld (myGWorld);
        PresParams presParams =
                new PresParams( presenterTimeScale,
                                QTSConstants.kQTSSendMediaFlag |
                                QTSConstants.kQTSAutoModeFlag |
                                QTSConstants.kQTSDontShowStatusFlag,
                                mediaParams );
   pres2 = Presentation.fromFile( file, presParams );
            pres2.preroll(); 
            pres2.start();
            startTasking();
}
 
The addSender() just makes new variables and attempts to send to another person with different port values and ip address in the SDP file from filePath. I ran and it seems only the first person that I am sending to receives the media data and calling addSender() seems to go through all the way after "startTasking()". I tried taking the QTSession.open() out but samething happened- only the first person from part 1 of my code receives the stream and 2nd person from addSender() gets nothing. I cant seem to find anything on google either for this... Can someone help me out? thank you.


New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.