Problem with video chat, please help

September 13th, 2006 at 10:43pm Administrator

Flexets Forum - learn Flex / AIR / Flash / ActionScript

If you're new here, you may want to subscribe to my RSS feed. If you like my site, consider linking back. I prefer text "Free Flash Tutorials" to http://www.franto.com
Thanks for visiting my site! If you need anything just contacting through Contact page

Hi all,

i got problem with Video chat, which runs on FMS (Flash media server 2). I was googling, searching mail archives, no help. I hope that my blog + MXNA (and other aggregators) will help me again.

Here is situation:
I got FLA of working chat (text, audio, video) between 2 users. Problem is that I do not have main.asc for FMS. Till now, I've implemented almost all parts of main.asc. Text messages works, audio works, but not video. Audio and video uses same functions on server and client as well. I've traced all on clients and server, and it seems all works correctly =>

publish stream

Actionscript:
  1. myVideoOutNetStream = new NetStream(chaterConnection);
  2. cam_ns.setMode(audioVideoSettings.captureWidth, audioVideoSettings.captureHeight, audioVideoSettings.captureFps);
  3. cam_ns.setQuality(audioVideoSettings.bandwidthLimit, audioVideoSettings.frameQuality);
  4. myVideoOutNetStream.attachVideo(cam_ns);
  5. myVideoMC.attachVideo(cam_ns);
  6. myVideoOutNetStream.publish(("_"+myName+"_"+chatToUsername+"_video")
  7. .toLowerCase());
  8. chaterConnection.call("streamActions", null, "video", true);

and receiving it on client

Actionscript:
  1. userVideoStream = new NetStream(chaterConnection);
  2. userVideoStream.receiveVideo(true);
  3. userVideoStream.play(("_"+chatToUsername+"_"+myName+"_video").toLowerCase());
  4. debugtrace("new userVideoStream: "+userVideoStream);
  5. videoMC.attachVideo(userVideoStream);

so I think only problem can be cause on server side. Must be anything set for video streams? Or if audio streams works, video streams should work as well? I've looked at Adobe video conference example, but in FLA i cant find URL for FMS (rtmp), so I cant use it, but in main.as for this example was just 1 line:

load( "components.asc" );

and this line on server side runs this (from Details section for this application)

FCApplication loaded successfully.
Communication Framework loaded successfully.
Base Component loaded successfully.
AudioConference loaded successfully.
AVPresence loaded successfully.
Chat loaded successfully.
ConnectionLight loaded successfully.
Cursor loaded successfully.
PeopleList loaded successfully.
PresentationText loaded successfully.
RoomList loaded successfully.
SetBandwidth loaded successfully.
SimpleConnect loaded successfully.
UserColor loaded successfully.
VideoConference loaded successfully.
Video Playback loaded successfully.
WhiteBoard loaded successfully.
Communication Components loaded successfully.

But it doesn't help me. I'm completly lost, i can't find answer, what's wrong. Please help me, what should I do for running video chat on FMS.

Thanks a lot in advance.
Franto

AddThis Feed Button

Entry Filed under: , , , ,


Do you want to receive fresh news from my site?
Subscribe to my RSS

»Related posts:



3 Responses to “Problem with video chat, please help”

  1. 1
    Administrator Says:

    OK, i got solution ;)

    audioVideoSettings was not setted ;)

  2. 2
    Steve M Says:

    That’s really a smart and quick sloution for video conferencing, without much efforts and time.
    http://www.sony-conferencing.com/

  3. 3
    Free Video Conference Says:

    if you’re looking for video conference, check this site out baselux.com.. no hassle

Leave a Reply