之前被告知可以自行实现Flash p2p的点播功能, 但一直疑惑, 印象中NetStream并未提供相关方法, 前天看订阅时发现的文章:
ByteArray Access to NetStream in Flash Player 10.1 [ by Thibault Imbert ]
进而找到文档:
NetStream.html#appendBytes()
看过上述两篇文章后, 对appendBytes这个方法有一定了解, 简单来讲就是在数据生成模式下提供NetStream音视频数据供其播放.
另: Jinni在微博中提到Flash P2P for VOD 的 Demo也快发布了, 之前有组织过多次的P2P直播, P2P文件下载测试, 如果你对这方面有兴趣, 可关注他的微博及BLOG.
下面是我山寨的例子(请使用Flash Player 10.1测试), 点击”File”按钮, 选择FLV文件, 文件数据加载到内存后开始播放.
Source:

Perfectly pent articles , Really enjoyed studying.
[Reply]
LOLOLOLOLPHONE
[Reply]
http://www.miamiheatsjerseysshop.com/Authentic+lebron+james+jersey+c+6_9.html
[Reply]
Hi there, I found your blog by means of Google even as searching for a comparable topic, your web site came up, it appears to be like good. I’ve added to favourites|added to my bookmarks.
[Reply]
With havin so much content do you ever run into any issues of plagorism or copyright violation? My site has a lot of completely unique content I’ve either created myself or outsourced but it seems a lot of it is popping it up all over the web without my authorization. Do you know any techniques to help protect against content from being stolen? I’d truly appreciate it.
[Reply]
strongzz Heya i am for the first time here. I found this board and I find It really useful & it helped me out a lot. I hope to give something back and help others like you helped me.
[Reply]
I was very thrilled to find this site on yahoo.I wanted to say many thanks to you with regard to this superb read!! I certainlyloved every little bit of it and I’ve you bookmarked to look into new stuff you post.
[Reply]
strongzz I do not even know how I ended up here, but I thought this post was great. I do not know who you are but certainly you are going to a famous blogger if you are not already
Cheers!
[Reply]
Usually I don’t learn post on blogs, but I would like to say that this write-up very forced me to check out and do it! Your writing style has been surprised me. Thank you, very great post.
[Reply]
我也在学习 AppendBytes,,,我的想法是:
var ba:ByteArray = new ByteArray;
ba.writeInt(5241);
ns.appendBytes(ba);
[Reply]
AppendBytes()我正要学习这个
[Reply]
另外这个特性也不是为P2P VOD准备的,而是为HTTP Streaming Server,呵呵
[Reply]
kingnare Reply:
May 17th, 2010 at 04:15
原来如此, 那么HTTP Streaming Server是独立的服务程序还是依附在其他如IIS/FMS/FLASH ACCESS上的一个组件?
[Reply]
强!
[Reply]
kingnare Reply:
May 16th, 2010 at 17:16
[Reply]
Jinni Reply:
May 17th, 2010 at 00:44
其实用AppendBytes()播放视频很简单,但是牵扯上P2P的文件分块和Seek就有点麻烦,NetStream在DGM下Seek的时候,会丢掉所有buffer,并需要重新将文件块按照指定的字节位置写进去
[Reply]
kingnare Reply:
May 17th, 2010 at 04:14
嘿嘿, 我这个基本上第一步后就没第二步了.
想想分块那里就会晕, 你竟然给做出来了, 厉害 -__-
[Reply]
as3kenn Reply:
June 28th, 2010 at 23:51
请问使用AppendBytes()播放视频,如何实现seek跳帧。
我使用SEEK后,正如你所说的,NetStream中的数据全丢掉了。
[Reply]
Frank Reply:
July 28th, 2010 at 23:46
我现在也再做使用AppendBytes()播放视频,如何实现seek跳帧..
希望可以加QQ共通研究..86525104
[Reply]
szhang Reply:
October 26th, 2010 at 00:35
加QQ:79188094共同研究
[Reply]