P2P in Flash Player 10

Source: Internet
Author: User

It is said that player10 will support P2P. When I see this message, I am very excited. After reading the following content, I may have to wait for a while. In my understanding, p2P transfers data directly through the client in player10, and also requires a server to parse the Client IP address. (The question is, can the client and player of the LAN penetrate? ), The server mentioned here, I think the most promising thing is the FMS. fms3 just came out, but it does not support P2P, so it should wait until fms4 comes out, I think we should support P2P at that time. If we can achieve P2P, then the FMS can also be used on a large scale, after all, it is still a little tight to rely solely on the FMS cluster to relieve the bandwidth pressure. I think this is what Adobe hopes to see.

The following is a reference (URL: http://justin.everett-church.com/index.php/2008/05/23/astrop2p)

There has been a lot of great excitement around rtmfp (real time media flow protocol), especially because of the peer to peer (P2P) communication that is enabled in Flash Player 10 Beta. this is a natural time to speculate about what cool applications you will build with new technology, so I 'd like to give you some more information for you to work.

Since I have been frequently been asked about details on this, a Frequently Asked Questions format somehow seemed appropriate ;). for those that want to start working with rtmfp, make sure to read to the end, there is a goody for you!

Does Flash Player 10 Beta support peer to peer (P2P) communication?
Flash Player 10 Beta has new methods onNetConnectionAndNetStreamObjects that allow communication through peer connections that are managed by a future Adobe server technology. the server will maintain a list of potential peers that can be connected. if the netconnection to the server is lost or closed, any peer connection that was initiated through the same netconnection will also be closed.

How will I make a P2P connection through Flash Player 10 Beta?
Connections from a SwF through a future Adobe server release will be assigned a temporary unique ID that is infeasible to guess or forge. other SWFs connected to the same server can subscribe to the streams and events from that Id once the broadcasting SWF agrees to the connection.

On the server level, these IDs can be mapped to application-specific information such as presence. for a chat application, the ID can be linked to the nickname the user gave when connecting to the application. while the end-user may select the person that they want to chat with, flash player will use the ID to establish the connection with that user.

What can I send through the P2P connection?
In a similar way that you wocould stream local microphone and webcam media up to a server, you will also be able to stream it directly to another Flash Player client that has connected as a peer.

ThroughNetStream.sendYou can also send data which is useful for shared experiences in real-time applications. any data format can be sent through this method though there are size limitations to the packet which may make certain data types less useful.

How does the peer connection work?
Rtmfp UDP packets are sent directly from one flash player to another. the server translates the peer IDs to network addresses, and also assists in setting up the connection if one or both ends is behind a network address translation (NAT) device. if UDP is blocked by a firewall or if rtmfp is blocked through a configuration of MMS. CFG, the peer connection will not go through.

Can I choose between UDP and TCP?

No, rtmfp is a UDP-based protocol while rtmp is a TCP-based protocol. You will automatically use UDP by calling the methods that work over rtmfp.

Will rtmfp enable massive file-sharing applications through Flash Player 10 Beta?
No. large-scale file-sharing network applications rely on the ability to read from and write to the hard drive constantly to only load parts of files into memory when needed. in Flash Player 10 Beta you can load files from the desktop to the Flash Player runtime, but the file wocould need to be loaded manually by the end-user and remain in memory for the entire time the file wocould be needed. the drain on system resources wocould make this style of application impractical.

Can I get started with rtmfp now?
While the support for rtmfp is built in to Flash Player 10 Beta, there is no publicly available server technology to manage the connection process. if you wowould like to be considered for access to private beta programs around rtmfp, please send an email to fmsprerelease@adobe.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.