• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Making P2P Video Chat with FMS

New Here ,
Dec 06, 2011 Dec 06, 2011

Copy link to clipboard

Copied

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?

Views

5.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Dec 07, 2011 Dec 07, 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

...

Votes

Translate

Translate
Advocate ,
Dec 06, 2011 Dec 06, 2011

Copy link to clipboard

Copied

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.htm...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 06, 2011 Dec 06, 2011

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 07, 2011 Dec 07, 2011

Copy link to clipboard

Copied

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.htm...

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 !

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 07, 2011 Dec 07, 2011

Copy link to clipboard

Copied

Thank you, that makes a lot more sense now. I also came across this

article that has a main.asc resource that covers a similar bootstrapping

process:

http://www.adobe.com/devnet/flashmediaserver/articles/real-time-collaboration.html

Brent

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 07, 2011 Dec 07, 2011

Copy link to clipboard

Copied

Cool. As long as it works for you, I am good

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 29, 2012 May 29, 2012

Copy link to clipboard

Copied

Nikhil Pavan Kalyan wrote:

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/WSa4cb07693d1238 84520b86f312a354ba36d-7ffe.ht...

I think I have a similar problem. I am using FMS 4.0 and I can't receive any NetGroup event except NetGroup.Connect.Success. There is no events as NetGroup.Neighbor.Connect or NetGroup.Posting.Notify. I made a discussion (http://forums.adobe.com/message/4429330#4429330) and one of the Adobe employees wrote that I don't need to write any bootstrapping (any server side code):

Chandan_Abhishek worte:

You don't have to implement any server side code. Just keep a blank app on the server and make two client side apps.

Can please someone explain, do I have to write any server side code or not? Do I have to bootstrap clients or not?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 18, 2012 Jul 18, 2012

Copy link to clipboard

Copied

LATEST

i have same problem ,acturally i have server side code ,i use multicast  sample application,and i can get info NetGroup.Connect.Success but   cannot get NetGroup.Neighbor.Connect or NetGroup.Posting.Notify ,i donot know any thing qrong ,i use fms 4,  i double there are two NetGroup,i have confuse many days....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines