Skip to main content
Participant
December 6, 2011
Answered

Making P2P Video Chat with FMS

  • December 6, 2011
  • 1 reply
  • 5800 views

Hi, I'm trying to make a P2P video chat application with Flash Builder 4.5 and Flash Media Server 4.5.

First, I've tried a simple sample application using Cirrus(Stratus). It worked very well!

NetConnection -> NetGroup -> 2 NetStreams -> netstream play and publish -> last, netgroup post

The sample was all OK.

But now, I've changed the server url to my flash media development server.

rtmfp://p2p.rtmfp.net/XXXXXXXXXXXXXX -> rtmfp://my-fms/application

Here is my application trace log about NetStatusEvent:

[object NetConnection] NetConnection.Connect.Success

[object NetConnection] NetGroup.Connect.Success

[object NetStream] NetStream.Play.Reset

[object NetStream] NetStream.Play.Start

[object NetStream] NetStream.Publish.Start

[object NetConnection] NetStream.Connect.Success

[object NetConnection] NetStream.Connect.Success

I couldn't get events about NetGroup and NetStream any more!!!!

When using Stratus, It worked well...

I am not familiar with FMS.. did I skip something in FMS setting?

    This topic has been closed for replies.
    Correct answer Nikhil_Kalyan

    I agree to a little extent that there is less documentation / examples for server side script for this. Anyways, the FMS documentation should provide clues for doing that.

    http://help.adobe.com/en_US/flashmediaserver/devguide/WSa4cb07693d123884520b86f312a354ba36d-7ffe.html#WSf888d222081ca19c-7d07484e12a83dec2c4-7fff

    http://help.adobe.com/en_US/flashmediaserver/devguide/WScd14549950cf7821eebb00912febb43a25-8000.html

    Both the above docs should help in better explaining the bootstrapping process.


    The multicast application that comes along with FMS installation is a good example for all RTMFP net group connections. Please take a look at that as well.

    Thank you !

    1 reply

    Nikhil_Kalyan
    Participating Frequently
    December 6, 2011

    Hi,

    Thanks for trying RTMFP.

    When you made your own application on the development server, did you make any server side scripting on this application or is this a blank application ? The point here is that, for P2P, the Cirrus server has a server script that takes care of bootstrapping one client to the other, which in your case (after moving to your server) is not happening. You need to probably add the scripting for bootstrapping one client to the other.

    The following resources can help :

    http://help.adobe.com/en_US/flashmediaserver/devguide/WSa4cb07693d123884520b86f312a354ba36d-7ffe.html#WSa4cb07693d123884520b86f312a354ba36d-7ff9

    iBr3nt
    Inspiring
    December 6, 2011

    I have this same question as well.

    From your link you shared, it looks like it's the client side code for

    making connections. Can you share the server side code for creating the

    connection? All the docs I find say you can do this, but there's no real

    example (or I'm just blind and can't see it). I'd really like to have a

    simple FMS application script that makes these P2P connections when I

    point my app to my server.

    Thanks,

    Brent

    Nikhil_Kalyan
    Nikhil_KalyanCorrect answer
    Participating Frequently
    December 7, 2011

    I agree to a little extent that there is less documentation / examples for server side script for this. Anyways, the FMS documentation should provide clues for doing that.

    http://help.adobe.com/en_US/flashmediaserver/devguide/WSa4cb07693d123884520b86f312a354ba36d-7ffe.html#WSf888d222081ca19c-7d07484e12a83dec2c4-7fff

    http://help.adobe.com/en_US/flashmediaserver/devguide/WScd14549950cf7821eebb00912febb43a25-8000.html

    Both the above docs should help in better explaining the bootstrapping process.


    The multicast application that comes along with FMS installation is a good example for all RTMFP net group connections. Please take a look at that as well.

    Thank you !