What is an RTMP server and how to connect to it with flash SharedObject?

I need to create a flash file SharedObject on a server on the internet for communication between several .SWFs. It is necessary that this communication is fast and if possible in real-time. After some research on the site of Adobe reference , I found the following code:

var nc:NetConnection = new NetConnection();
nc.connect("rtmp://somedomain.com/applicationName");
var myRemoteSO:SharedObject = SharedObject.getRemote("mo", nc.uri, false);
myRemoteSO.connect(nc);

From what I understand, you need to have a server RTMP, which is a type of media server used by Flash to handle live-streaming media and also data with the SharedObject.

In this Wikipedia link I found an Open-Source media server called Red5, but I'm having trouble learning how to use it.

Has anyone worked with this type of server? Are there any that are free? Can I integrate it into Wamp Server, for example? How does the connection to this server work?

 5
Author: Tuyoshi Vinicius, 2014-02-20

1 answers

RTMP server is nothing more than a media server for distribution of live and on-demand content. These servers are independent and have their own modules.

There are several software on the market, but the most used are:

Wowza Media Server: http://www.wowza.com / (Payment)
Adobe Media Server: http://www.adobe.com/br/products/adobe-media-server-family.html (Payment)
And Red5 which is free.

If you want to have a server RTMP to offer this service to third parties, you need to have a good server, joining Good Data Processing and network. Depending on your need, you can use an out-of-country server so you can reduce costs and have a great infrastructure.

There are many offers for this type of service on the market, where all the infrastructure is in charge of the hosting company and you would only take care of making the transmission.

Search Google for video Streaming and analyze the offers by paying attention to the value and the number of simultaneous users.

With respect to your code, it would look like this:

var nc:NetConnection = new NetConnection();
// Na linha abaixo é feita a requisição para o servidor
nc.connect("rtmp://ip-ou-host-do-servidor:1935/live/live");
var myRemoteSO:SharedObject = SharedObject.getRemote("mo", nc.uri, false);
myRemoteSO.connect(nc);

For this to work, you would need to be sending data to the server, using programs like Adobe Flash Live Encoder: http://www.adobe.com/br/products/flash-media-encoder.html

Follow the Wowza Media Server documentation so you can better clarify your questions:

Http://www.wowza.com/forums/content.php?217-Quick-Start-Guide

There are still public services at no cost, but with reduced quality of Service. Below are some of them:

Http://www.zstream.eu/
http://livestreamcast.org/
http://www.justin.tv/
http://new.livestream.com/
http://www.ustream.tv/
http://www.livecast.com/
http://www.google.com/+/learnmore/hangouts/onair.html

 4
Author: anderson, 2014-02-27 14:30:11