Stratus service for developing end2end applications using RTMFP in Flash Play 10
仅个人学习之用
http://www.adobe.com/devnet/flashplayer/articles/rtmfp_stratus_app.html
Reference Site:http://labs.adobe.com/technologies/cirrus/
YOU CAN GETTING START FROM THE LINKS ON THE BOTTOM "Getting Started", LIKE "Review the RTMFP groups overview"
?
Stratus serviceFlash Player instances must connect to the?Adobe Stratus service?(usingrtmfp://stratus.rtmfp.net
) in order to communicate with one another. Stratus is a hosted rendezvous service that helps Flash Player instances contact one another even if they are located behind NATs. Although connecting to Stratus service is very similar to connecting to Flash Media Server, Stratus does not provide any of the typical Flash Media Server features (media relay, shared objects, remoting, etc.). Flash Player endpoints must stay connected to Adobe Stratus during the entire time of communication. In order to access Stratus, you will need a developer key that is generated when you create your Adobe Developer ID.
RTMFP support will be available in Flash Media Server 4. With Flash Media Server, it will be possible to enable communications between Flash Player 9 or earlier clients (using RTMP) and Flash Player 10 clients (using RTMFP).
SecurityRTMFP provides secure communications between endpoints. It uses a 128-bit AES with the key negotiated using the?Diffie-Hellmann?key exchange method. However, it does not provide strong endpoint authentication such as SSL or RTMPS. To aid endpoint authentication, RTMFP and ActionScript expose?secure nonces?to application developers. These nonces are available at both communicating Flash Player endpoints and are guaranteed to match. By verifying these nonces, end users can ensure that there is no man-in-the-middle attack. These nonces can also be used to develop key continuity mechanism.
It is important to note that Flash Player only enables sending media from your microphone and webcam devices to other Flash Player endpoints that subscribe to your media streams.
ActionScript 3 API supporting RTMFPThere is a new ActionScript 3 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 with either Flash Professional (CS4 or later) or Flash Builder 4 targeting Flash Player 10 or AIR 1.5.
As I mentioned before, first you must connect to the Adobe Stratus service:
onPeerConnect()?method) and subscribes to client A's media stream. Through this media stream, client A notifies client B about his or her user-friendly name (using theNetStream.send()
?method), which is presented to the user to either accept or reject the call. If the call is accepted, client B publishes the media stream and two-way communications is established.Where to go from hereIn this article, I presented some of the most exciting features of the new RTMFP protocol along with an overview of the new ActionScript 3 API. After reading this article, you should have a good understanding of how to use this revolutionary protocol. I hope you will be developing blockbuster applications using the end-to-end and advanced media capabilities of Flash Player 10 and AIR 1.5.
?