Welcome, Guest
  • Author Topic: Re:private chat with video  (Read 33828 times)

    toddt

    • Server what's that
    • *
    • Posts: 26
      • View Profile
      • Email
    No video in private chat window after hours of trying...
    « Reply #45 on: 09/28/04, 19:33 »
    Hello,
    Just in case someone else has the problem above, it was simply when I copied and pasted the code from the example, it also pasted in some invisible returns/gibberish. I'm on a Mac so that may have been it. Once I deleted the spaces, the code was clear or errors.

    Now my hopefully last problem:::::

    I have got the main window working fine, the initial video in the main window, when you click for the private chat, that comes up, the guest trace is being passed and there are 2 new streams in the flashcom window with the chatters name in the 'name of the stream' area.

    So apparently that all works, but I still, after hours and hours, cannot get the video in the private chat window to display.

    Can anyone/has anyone gotten the example to work and if so, can you shed any light on this?

    I'm burnt out trying.

    For those who have read this far:
    In the newRoom MC I've placed a video instance named my_video.
    Something I didnt' understand was the attachMovie in the code, why do I need to attachMovie?, shouldn't the video instance sitting in the newRoom MC be enough?:

    this.attachMovie("my_video","my_videodest",599,{_x:225, _y:0});
    dstStream = new NetStream(_root.client_nc);
    dstStream.play(guest);
    this.my_videodest.my_video.attachVideo(dstStream);
    //my_audio.attachAudio(dstStream);

    trace(guest);


    Please help...sleepless in Canada.

    jay

    • Jr. Programmer
    • **
    • Posts: 99
      • View Profile
    Re:private chat with video
    « Reply #46 on: 09/29/04, 07:46 »
    I am new to the site and I first wanted to say THANK YOU to all the people putting up code and posts. I am fairly new the FCS and spend a limited time playin with it. Plus I dont have a computer background so learning complicated things like this is very hard for me. So I wanted to really say I appriciate everyones hard work and time.

    Gaby, I have been looking at your posts and I am a little lost. With your latest post is a video window supposed to open when you open a new message to someone. So for example...lets say I was chatting with someone in the room and then I sent a private room request to them. When they opened it would he see me and I see them? Is that how it is supposed to work?

    Also, I dont know if there is a place to download the entire room you have made with the private video or not...if there is can you give me the link. If not can you Email it to me. username is jaynkim4fun@aol.com  

    Thanks again for everyones time and help

    Jay

    gaby

    • Moderator
    • Seasoned Programmer
    • *****
    • Posts: 241
    • To code or not to code
      • View Profile
    Re:private chat with video
    « Reply #47 on: 09/29/04, 08:19 »
    hi Jay and welcome to the board.

    That's right that with my example when users accept the private invitation they see your webcam and you see their if launched...just read my post from begin to the end, all steps are explained...

    good luck
    The courage to begin is the main step to achievement

    jay

    • Jr. Programmer
    • **
    • Posts: 99
      • View Profile
    Re:private chat with video
    « Reply #48 on: 09/29/04, 08:26 »
    Gabby, thank you very verymuch for you quick reply. I have read the entire thing for two days now and no more luck. Im not really a programmer. I simply play with FCS in my spare time so im a little lost. Basically what I have done so far is this.

    I placed the first part of the code in the ACTIONS layer on the main flash area. I then placed the second (smaller portion of code //LECTURE) in the ACTIONS area of the newRoom component.

    Then I dragged an avPressance component onto the newRoom component and name it myVideo

    From what I have told you so far what have I dont wrong. It does not load the video.

    Matter of fact it does not even change the text in the video box to "click to load video" It still says "login to send audio and video"

    I guess I have done something wrong.

    Thanks
    Jay

    toddt

    • Server what's that
    • *
    • Posts: 26
      • View Profile
      • Email
    Re:private chat with video
    « Reply #49 on: 09/29/04, 09:59 »
    Hi,
    from what I can tell, you shouldn't be using the AV presence, you should be using an embedded video and name it accordingly.
    I still, with that, haven't been able to get the video to load, though I do have the streams listed in flashcom after the username. I traced with 'guest' and saw the username appear, but can't get the video to load?

    Todd

    jay

    • Jr. Programmer
    • **
    • Posts: 99
      • View Profile
    Re:private chat with video
    « Reply #50 on: 09/29/04, 10:01 »
    yea i have the same problem

    jay

    • Jr. Programmer
    • **
    • Posts: 99
      • View Profile
    Re:private chat with video
    « Reply #51 on: 09/29/04, 10:02 »
    what is an embebed video? is it a flash mx component that you can drag and drop?

    Thanks
    Jay

    toddt

    • Server what's that
    • *
    • Posts: 26
      • View Profile
      • Email
    Re:private chat with video
    « Reply #52 on: 09/29/04, 10:08 »
    Yes, go to your library and choose from the little triangle (top right), 'video'.
    this places an instance of the embedded video in your library. Drag it out on the stage and name.

    jay

    • Jr. Programmer
    • **
    • Posts: 99
      • View Profile
    Re:private chat with video
    « Reply #53 on: 09/29/04, 10:09 »
    Yea I tried that just now and still no luck. Also what is all this PARAMs being passed. Like guest and all that. Is that needed?

    jay

    • Jr. Programmer
    • **
    • Posts: 99
      • View Profile
    Re:private chat with video
    « Reply #54 on: 09/30/04, 06:12 »
    hello everyone...i was wondering if anyone can help me a little more, as i have been unable to get this to work. when you first sign on it prompts you to allow the video connection, but it does not show video when you chat with someone.

    any idea's on what i am missing?

    what is the code below all about and is it needed? is the EXP needed? I have listed in the prior posts what I have done. I am reallt stumped....any help would be appreciated.

    Thanks
    Jay  ???


    ##code  URL
    http://localhost/mymovie.swf?exp=boubou

    and a second one like this:

    http://localhost/mymovie.swf?exp=bb

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:private chat with video
    « Reply #55 on: 09/30/04, 07:34 »
    Hi Jay and all others on this thread.

    Doing some implementation of video in private rooms imply:

    - Know how to route messages between different clients
    - Know how to manage streams (subscribe, buffer, seek, unsubscribe)
    - Know how instances (streams instances in this case) interact with FlashCom app

    This is so far a complex task. Another "detail" is that each one-to-one conversation consummes 4 streams (two broadcasting, two subscriber), so server overhead is a risk based on your license (bandwidth)

    My opinion is that such an implementation imply a strong provider behind (and a considerable cost in bandwidth consuption) so is not a low-medium client target, but big ones, who can confront this kind of expensive proyects. Working for MTV (not Perez Brothers), we have closed a room in a couple of days, due to incredible bandwidth consuption and server overhead.

    So in resume, if you're playing around FlashCom and his capabilities, take your time to study posted topics, don't begin in the other end, you can't build this only with components !
    If you're really thinking about use this in a site, also take in account possible problems.

    I'll publish when having time some privat implementation with video. If Gaby or other want to do it, please PM me, will be a pleasure to publish it.

    This thread is closed. Those who wants to ask about this, please post new topics on this same Board.

    Jorge

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:private chat with video
    « Reply #56 on: 07/22/05, 03:00 »
    Ok, some time now, I have updated the private chat app and added video in a second file (on the same zip from the download on http://www.flash-db.com/Tutorials/privchat/ )
    This is really a very basic implementation: no stream control on server side, no quality settings. Probably you want to add this features, because video streams can quickly overflow your server bandwidth or license. Anyway, this could be a starting point. So if you use this movie in a production server, probably some users could not use video (even having camera) if your application overpass server limits. If you don't have camera, the other will see a "no video" message.
    The code for create streams is inside newRoom MC

    Jorge

    heatfun

    • Server what's that
    • *
    • Posts: 38
      • View Profile
    Re:private chat with video
    « Reply #57 on: 07/23/05, 12:49 »
    good job!!!!!!!!!!!!!!!!!!!!!!!!!!

    may i ask that how to merge my SQL username and password login method instead of just input username in your application?

    how to set only 56k bandwidth in client side and only one ip to connect at once,if same ip connect,then reject in your application?

    thank you!
    « Last Edit: 07/23/05, 13:05 by heatfun »
    FUN

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:private chat with video
    « Reply #58 on: 07/25/05, 15:39 »
    Ok, this is a looong thread. More question in new ones please. Will close this again.

    Jorge