NetConnection and NetStream in Director: Is it impossible to have more than one incoming Stream?

Hi there,
I'm working on a Director 11.5 video chat for 3 people. You shall see your webcam video as a little and the two you are connected with as a big video panel. So good so far, I managed to show my own webcam video without streaming it and managed to see one of the others as an incoming stream.
The problem is: as soon as there's a second script initiating a second InStream (no matter how I name it), only the one with the lower sprite number shows it's stream. When I disable the script for this lower sprite, then the second one is playing, so it can't be due to an incorrect script.
I already emilinated two misstakes which made it not working at all at the beginning:
First I tried to use the NetConnection object (for sending my own video stream, works fine) also for creating an input stream. That didn't work. It's a different scene where I set up and play the inStreams (I made the NetConnection object global). So now I set up a new NetConnection for each stream: one outStream and two inStreams.
First I also used only one swf member and made several sprites of it. This didn'Ät work at all, also using the same behavior for the two other-perople-players. So i copied ad pasted the swf and also the behavior. I also renamed every variable in the second behavior with a "2" at the end, just to be sure.
Then it worked at least - but still only for one inStream.
The architecure of my Director film is the following:
I've got two scenes. First scene is an input field to type your name and a "connect" button. Behind this button there's a behavior setting a connection to the server (by using a swf sprite which isn't visible yet) and sending my webcam video and name to the server. This part works fine.
(Picture shows scene 2)
Second scene consists of three swf sprites - one is to show my own webcam video directly from PC. This one already existed in the first scene, for I have to use a swf for setting up a NetConnection. The second and third swf sprites are connected to a behavior script which sets up a new connection (in exitFrame, with a bool variable "firsttime" to make sure it only happens once).
I also have two drop down field each below a partner chat swf. Here I show all people who are logged in at the server, it automatically updates. The one you chose in the drop down is the video you will see in the swf sprite above. Thid works fine (if it works with the inStream).
The script for playing the own webcam video is placed at the first frame of the second scene and only refers to the swf for my own video (which already occurs in scene 1). Well, that's all I think. I'll post the code for the two partner player swf here. Please have a look at it to find a misstake - or maybe again it's some strange Director behavior (like two sprites of one member didn't work) which I cannot think of...
Code for the behavior script of the partner swf for partner 1. The script for partner 2 is exactly the same, but every variable has a "2" at it's end.
global firsttime1
global gUserList
property gNetConn
property InStream
on exitFrame  me
  if (firsttime1) then  
    pSprite = sprite(me.spritenum)  
    gNetConn = pSprite.newObject("NetConnection")  
    gNetConn.connect("rtmp://212.122.56.2/flashcam")  
    InStream = pSprite.newObject("NetStream", gNetConn)    put "InStream " & InStream
    InStream.play(gUserList[1])  
    pVideoClip = pSprite.getVariable("VideoClip",FALSE)
    put "pVideoClip " & pVideoClip
    pVideoClip.attachVideo(InStream)  
    firsttime1 = false
  end if
end exitFrame
on updateInStream aArg1, aArg2
-- that method is called by the drpdown script when some change occured
  put "neuer Partner 1: " & aArg2
  partner = aArg2
  InStream.play(partner) 
end updateInStream
on endsprite me
  if not(voidP(InStream)) then
    InStream.close()
  end if  
end endsprite
I'd appreciate every idea or help! Thank you!
Jana

No you can only have one - so you'll need to manually merge

Similar Messages

  • I need to connect my iPad to a projector and USB ports. What do I need to do this and where can I get the suitable fittings? I really need to have more than one USB connection port. Help

    I need to connect my iPad to a projector and have USB ports. What do I need to do this and where can I get the suitable fittings? I really need to have more than one USB connection port. Help

    You can connect via a cable or wireless using an Apple TV.
    http://ipad.about.com/od/iPad_Guide/a/How-To-Connect-Your-Ipad-To-Your-Tv.htm
    Connect an iPad to a Television or Projector
    http://www.everymac.com/systems/apple/ipad/ipad-faq/how-to-connect-ipad-to-tv-te levision-projector.html
    Connecting iPad iPhone or iPod to TV or Projector
    http://www.disabled-world.com/assistivedevices/computer/ipad-tv.php
    iPad Accessories: Connections for a TV or Projector
    http://www.dummies.com/how-to/content/ipad-accessories-connections-for-a-tv-or-p rojector.html
    You may be interested in AirPlay on the Apple TV:
    http://www.apple.com/airplay/
    Alternately, there are Apple Digital AV Adapters for hardwired connections:
    http://support.apple.com/kb/ht4108
    If your location does’t have wifi to use with the Apple TV, use a portable router.
    Portable routers http://compnetworking.about.com/od/routers/tp/travel_routers.htm
     Cheers, Tom

  • HT6154 Can someone please just help me figure out how to update this stupid phone without losing anything? I somehow have more than one Apple ID on this,but I just want my music and my pictures to stay and I'm terrified of losing these things.

    Can someone please just help me figure out how to update this stupid phone(iPhone 4)without losing anything? I somehow have more than one Apple ID on this,but I just want my music and my pictures to stay and I'm terrified of losing these things. I have a lot of music from old CDs on here,and for some reason I can't even transfer them manually onto my computer. I'm not tech savvy whatsoever. Someone please help,having my music is the the whole reason I still have this phone.

    First read about back http://support.apple.com/kb/ht1766
    Then  read on how to transfer photos to your computer http://support.apple.com/kb/ts3195
    Then
    UPDATING iOS
    Over the air updating of iOS needs iOS 5 or later so unless you have iOS 5 or later you will not see updating in setting
    The following link explains how to update http://support.apple.com/kb/HT4972
    This link explains how to update using wireless http://support.apple.com/kb/HT4623
    This explains how to transfer purchases to your computer http://support.apple.com/kb/ht1848

  • How do i sign up for a new e-mail address @icloud or @me; and can I have more than one e-mail address?

    how do i sign up for a new e-mail address @icloud or @me; and can I have more than one e-mail address?

    Cessna007 wrote:
    how do i sign up for a new e-mail address @icloud or @me; and can I have more than one e-mail address?
    You create an @icloud.com address in the first place by signing into Settings>iCloud with your Apple ID and choosing an addres - you can only create an @icloud.com address, not @me.com.
    Then if you want further addresses on the same account you can add up to three 'email aliases' - these are additional addresses (not accounts) which deliver into the same inbox as the main account. (In fact it's a good idea to give out alias addresses, rather than the main address, because if they attract spam you can easily change them.) (New aliases can only be @icloud.com ones; @me.com addresses cannot now be created.)
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account or move it to another account.
    More information on aliases here: http://help.apple.com/icloud/#mm6b1a490a

  • My sister has a mac and i want to update my phone onto the computer but i dont want her to see all my stuff can you somehow have more than one itunes account on the same computer so my stuff with save?

    my sister has a mac and i want to update my phone onto the computer but i dont want her to see all my stuff can you somehow have more than one itunes account on the same macbook so my stuff with save?

    How to use multiple iPhone, iPad, or iPod devices with one computer. The only way is for you to have a separate user account to log into on that computer.

  • HT2731 can i have more than one apple id on a computer? As when we go away we want to facetime from our macpro to our main mac at home and both are registered under the same apple ID. Thanks

    Can you have more than one apple id on a computer. We are going away and want to facetime from our macpro to the mac computer at home but both are registered under the same apple ID. What should we do ?

    I will share with you what I have done to manage this with my family.  While the solution isn't without flawes, it seems to do the trick.  First, you need to have one person who is managing the synching of everyone's devices.  In my family, I have three iphones, about to be four, and five ipads.  We all synch to the same apple ID to allow one another to take seemless advantage of our Itunes, which is on our Imac.  To synch individual music or video interests, we simply select which playlists we want and manually synch that way.  A couple of us use imatch and the cloud to make the entire library accessable as well.  With respect to the imessage, mail, contacts, etc. we each have a gmail account for our individual emails, contacts etc.  So for instance, my forth grade daughter has a gmail account that we choose to synch her contacts, calendar, etc to and then that is also the account where she receives her imessages from on her ipad and itouch. My son, who has an iphone and ipad, does the same thing, but under settings, he goes to imessage and checks his phone number and his email as his preferred way to receive imessages and texts.  My wife and I do the same thing.  To avoid having everyone see one anothers contracts etc, we only synch contacts from our individual email accounts.  Here is the downfall to this:  When you update your phone or add a new device, apple always wants to reset everyone's facetime and imessage settings and then low and behold we are all receiving imessages from one another's friends etc.  To work around this, I simply take each of their devices and go to their imessage settings and only check the email and phone numbers relative to their devices.  I dont' know is this is the best solution, but it seems to work for us. 

  • Can't I get my old iTunes that I have purchased downloaded from Apple?  I don't have the old computer anymore.  Also, is there a number to call if I think I have more than one account and would like them to consolidate my accounts?

    I have two problems:
    1.  I no longer have my old computer and want to download the iTunes I have purchased in previous years.  Aren't they all in "the cloud?"
    2.  I think I have more than one account and would like to get them combined.  Is there a good number or email to Apple that I could get that done?
    THanks!
          SHawn

    It has always been very basic to always maintain a backup copy of your computer.  Have you failed to do this?
    You can redownload some iTunes purchases in some countries:
    Download past purchases - Apple Support
    As provided, you cannot merge accounts
    Sorry

  • I have more than one apple id and need to coordinate them

    I have more than one Apple ID and cant coordinate them over my devices

    That's correct. They cannot be merged nor terminated. You can stop using them. Note that anything you purchased (free or paid) is permanently connected with the Apple ID used to purchase those items. Only Apple has the ability to make those changes, so you would need to ask them for help.
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • I have more than one copy of the same song in my iTunes. Some have the icloud symbol next to them and some do not. I need to clean this up but I am afraid to delete the songs for fear I will lose them.

    I have more than one copy of the same song in my iTunes. Some have the icloud symbol next to them and some do not. I need to clean this up but I am afraid to delete the songs for fear I will lose them. Please help! On top of that my Mac keeps telling me my start up disc is full and I am deleting stuff like crazy!

    Welcome to the  Discussion Forums
    It won't be a problem if you delete your extra copies.
    I don't download very much to my tv, I do sometimes if I'm in bed but usually I do it from itunes. However if you have not fully downloaded something to the tv it is possible to start the download from itunes as well, you have likely activated 'check for downloads fin itunes in some way, could be by opening itunes, selecting 'check or downloads' from the advanced menu or that you simply have automatically check for downloads set in your prefs and it has checked coincidentally.

  • Hi, can anyone tell me if I can have more than one iTunes account on the same PC. I've just bought my wife an iPad2 and want to create a separate account for her. Can I do that on the same PC as mine?

    Hi, can anyone tell me if I can have more than one iTunes account on the same PC. I've just bought my wife an iPad2 and want to create a separate account for her. Can I do that on the same PC as mine? Thanks.

    I would advise that you not set up a second Apple ID. It's really not necessary - having two Apple IDs won't affect how iTunes works with your iPads - and will just complicate matters. Each iPad will be treated independently and can be set to sync only the items you want on that particular iPad. If you really want to keep the two iPads separate, set up different iTunes libraries and have only those items you want on the related iPad in that library, rather than a different Apple ID. If you plan not to use a computer and just download directly to the iPads, you can again choose what apps and content each iPad gets.
    But answering your specific question, you can have content from up to five iTunes Store accounts on any one computer or iPad. To create a new iTunes Store account, you'll need a different email address, and from there you just create the account the same way you did the first one.
    Regards.

  • I have a game in the game center(clash of clans) and i have more than one apple mobile on the same account and i dont know how to delete the game(clash of clans) from the game center

    i have a game in the game center(clash of clans) and i have more than one apple mobile on the same account and i dont know how to delete the  game(clash of clans) from the game center.

    Hello ayhamnaser,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Using Game Center
    http://support.apple.com/kb/ht4314
    If in Game Center > Me > Games > my iOS Games > swipe to the left on the game > Remove.
    Have a nice day,
    Mario

  • I have business and personal e-mail accounts with different contacts. Can I have more than one address book on my iPhone?

    I have business and personal e-mail accounts with different contacts. Can I have more than one address book on my iPhone?

    Set up an additional user account and use one for work and one for personal stuff - each will have a separate address book. Turn on fast user switching for easy switching between the two.
    AK

  • HT5019 MacPro laptop display and 2 external monitors (three displays). Can I have more than one application displayed at a time?

    I would like to have my MacPro laptop display and 2 external monitors (three displays). Question, how can I have more than one application displayed at a time? IE: I would like email on one monitor, Finder on my laptop, and iTunes on the other. Possible?
    With extended desktop, it appears that I can only have one application presenting at a time. Sort of defeats the purpose of having multiple displays.
    I am using the HDMI and the mini HDMI connectors.

    I would like to have my MacPro laptop display and 2 external monitors (three displays). Question, how can I have more than one application displayed at a time? IE: I would like email on one monitor, Finder on my laptop, and iTunes on the other. Possible?
    With extended desktop, it appears that I can only have one application presenting at a time. Sort of defeats the purpose of having multiple displays.
    I am using the HDMI and the mini HDMI connectors.

  • HT204053 i have more than one id and want to link these so i can transfer my contacts from my icloud to my new phone help please

    i have more than one apple id i want to link these so i can transfer my contacts from old phone to new phone please help

    Welcome to the Apple community.
    You can't link your Apple IDs, all you need to do is use the same ID on all devices and your contacts etc will sync.

  • Why is my cursor taking holidays and choosing to not respond to my mouse or mice as I have more than one that I can  use and it refuses to respond for a period of time

    Why is my cursor taking holidays and choosing to not respond to my mouse or mice as I have more than one that I can  use and it refuses to respond for a period of time

    Hi 
    Yes you can delete the expired certificate which are showing  as it is not functional anymore and they remain as stale entries 
    You can use  below command
    Remove-ExchangeCertificate -Thumbprint "specify the value "
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com

Maybe you are looking for

  • Brutalizing my Hard Drive... and other problems

    I just got an iBook G4 a month ago, and I am first trying to edit a movie now. I can't buy Final Cut pro, and I don't feel like I should have to based on the kind of movies I would like to make. But I have the following problems: 1) I would like to b

  • Trying to add a movie to an iPod makes the computer shutdown?

    This is my first time posting here, so please bear with me if I do something incorrectly. One of my new movies refuses to be added to my iPod. When I try to add it, the progress bar gets most of the way there before freezing. Then my computer complet

  • In Windows only not on my mac. I get the connection was reset. And it only happens on my windows pc with http websites

    This gos on all my windows pcs a mac with windows 7 on it, desktop with windows 7 and laptop with windows 7. this gos in and out, all the https websites work like gmail and icloud. but nothing besides that. I also have advast on all of them, I have t

  • Awt.image writing to mysql

    I am trying to write an Image datatype to a mysql database. The problem is that all the tutorials and books tell you how to do this directly from a file then get a filestream etc etc. I am working on the server side of a system so the image wont have

  • Datasource for SD Open & Delivered orders

    Hi Experts, My requirement is to build an report in SD with below fields, 1. Open orders  qty - 2. Open orders GSV 3. Open orders NIV 4. Open delivered orders Qty - delivery done, but billing is pending 5. Open delivered orders  - GSV 6. Open deliver