“There is a new ActionScript 3.0 API in Flash Player 10 to support RTMFP. Connecting to the Stratus service and creating end-to-end media streams are analogous to working with Flash Media Server. Please note that you must use ActionScript 3.0 with either Flash Professional CS4 or Flex Builder 3 targeting Flash Player 10 or AIR 1.5.”

Why use Stratus? hmm, well, Stratus is one sweet way to connect and trade data between users direct from Flash Player, eg. audio and video call or multi-player games. Like the AMFPHP, using Stratus you need first connect to service as show my code bellow:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package {
 
	import flash.display.*;
	import flash.events.*;
	import flash.net.*;
	import flash.media.*;
 
	public class stratusSample extends MovieClip
	{
 
		private const StratusAddress:String = "rtmfp://stratus.adobe.com";
		private const DeveloperKey:String = "YOUR_STRATUS_ID";
		private var netConnection:NetConnection;
		private var sendStream:NetStream;
		private var recvStream:NetStream;
 
		public function stratusSample():void
		{	
			netConnection = new NetConnection();
			netConnection.addEventListener(NetStatusEvent.NET_STATUS, netConnectionHandler);
			netConnection.connect(StratusAddress + "/" + DeveloperKey);
		}
 
		private function netConnectionHandler(e:NetStatusEvent):void
		{	
			trace("Net Status : " + e.info.code);
		}
	}
}

This will connect and show the status of connection, if was successfull or fail. To work you must use YOUR_STRATUS_ID that you will create in “labs.adobe.com/stratus”. I am working in one chat using Stratus and soon i ll publish source code here.  Any question comment. Thanks for all.

Read too:

3 Responses to “Stratus service for developing end-to-end applications using RTMFP in Flash Player 10”

  1. satzpal Says:

    Sir,
    we are the beginners in Flex.We are planning to do video streaming in P2P without using the server for streaming.Can we do chat applications in stratus by secure manner without knowing to all connected peers?

    thanx advance

  2. satzpal Says:

    Can we do chat applications in P2P without switching of protocols(rtmfp to rtmp) while at the time of chattting?

  3. Pablo Davi Says:

    Can you try use XMLSocket. ONe simple way to create text chat is using the beta Union Platform : http://www.unionplatform.com/ ultra easy way to do it.

Leave a Reply