用户名: 密码: 验证码: QQ--程序群:31736530 动画群:38836599
闪无忧
 
首 页 业界新闻 业界杂谈 Flash教程 Flash源码 Flash图书 Flash酷站 Flex & AIR 供求信息
   本栏目通告:   无论老手还是新手,只要有自己的想法和建议,请大家积极投稿本栏目
当前位置 :首页>业界杂谈>业界前沿>列表

Flash Player10 beta 的p2p的一些介绍

[来源:weni.cn | 作者:weni | 时间:2008-05-27 | 点击:  | 收藏本文  【 】]
下面是转载:
http://justin.everett-church.com/index.php/2008/05/23/astrop2p/
的一篇关于Flash player10 beta p2p 技术的一些英文介绍,并对重要的一些部分进行了简单的翻译解释:
如果你还不了解什么是Peer to Peer (P2P),建议先百度一下,了解了再来看本文。

Flash Player 10 beta的p2p协议是基于RTMFP(Real Time Media Flow Protocol)协议的,和之前的RTMP(Real Time Media Protocol)应该有一定的联系。

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 with.
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 支持(P2P)通信技术吗?
Flash Player 10 beta has new methods on the NetConnection and NetStream objects 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 to. If the NetConnection to the server is lost or closed, any peer connection that was initiated through the same NetConnection will also be closed.
答案是肯定的,目前Flash Player 10 beta的p2p通信都是基于NetConnection 和NetStream 来实现的。

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 would 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.
Through NetStream.send you 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?

我能够选择使用UDP还是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.
不行,RTMFP是使用UDP的,而RTMP才是基于TCP的。

Will RTMFP enable massive file-sharing applications through Flash Player 10 beta?

能不能使用 RTMFP来传输共享文件?
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 would need to be loaded manually by the end-user and remain in memory for the entire time the file would be needed. The drain on system resources would make this style of application impractical.
不行,……

Can I get started with RTMFP now?

我现在可以创建基于RTMFP的应用了吗?
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 would like to be considered for access to private beta programs around RTMFP, please send an email to fmsprerelease@adobe.com
目前Flash player10已经内置了RTMFP 协议的p2p支持了,但是还没有公开的RTMFP服务器(所以还不行)。

通过上面对话式的介绍,我们可以知道,Flash的p2p离我们不远了,但是要注意的是flash的p2p也有一定的限制的。
我猜Flash 10出来时应该会同时出一个新版本的 Flash Media Server服务器(有可能是4.0,目前最高版本是3.02)来作为p2p的服务端,否则没有服务端的支持Flash Player 10集成了p2p技术也派不上用场。
Flash 的p2p最大的好处应该是视频的发布和广播了,对于视频网站和音视频会议、教学等领域的应用是个天大的福音来的。
文章如果有错误或者缺少文件,请发邮件提交给我们
上一篇:flash player 10操作本地文件
下一篇:Adobe Acrobat 9发布与CS3紧密集成
Tags:    
>>> 最新评论:(共有 0 位网友发表了评论)      查看所有评论
  发表评论
用户名: 新注册) 密码: 匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
·本站发布内容均为客观表达作者观点,不代表闪无忧立场,请勿攻击和漫骂
·用户发表意见仅代表其个人意见,并且承担一切因发表内容引起的纠纷和责任
·本站管理人员有权在不通知用户的情况下删除不符合规定的评论信息或留做证据
·请客观的评价您所看到的资讯,提倡就事论事,杜绝漫骂和人身攻击等不文明行为
  业界杂谈
  业界前沿   资源分享
  经验技巧   七嘴八舌
  热门文章
·如何把fla,swf文件转换为flv格式问答
·flv制作工具大全
·Adobe Flex编码指南v1.2(AS3 Flex3程
·2006年Flex大型优秀网站欣赏
·在线flv转换mpeg4
·Flash 3D引擎汇集(附演示)
·flash8中文版高速下载地址
·我对as3声音架构的理解
·电脑flash绘画心得
·Flash常用的3D engine心得分享
关于我们 - 免责声明 - 网站地图 - 商务服务 - 联系我们 - RSS地图
©CopyRight 2006-2008, 5UFlash.COM, Inc. All Rights Reserved
鲁ICP备06034971号