寺委书记

Good good study, day day up!

导航

08 2011 档案

摘要:转自http://dxwang.blog.51cto.com/384651/138849RTMP协议概述介绍:RTMP协议是被Flash用于对象,视频,音频的传输.该协议建立在TCP协议或者轮询HTTP协议之上.RTMP协议就像一个用来装数据包的容器,这些数据可以是AMF格式的数据,也可以是FLV中的视/音频数据.一个单一的连接可以通过不同的通道传输多路网络流.这些通道中的包都是按照固定大小的包传输的.网络连接(Connection)一个Actionscript连接并播放一个流的简单代码:[Copy to clipboard]CODE:var videoInstance:Video = you 阅读全文

posted @ 2011-08-24 00:36 MonkChen

摘要:Message Type ID: 0×01 Chunk Size changes the chunk size for packets 0×02 Unknown anyone know this one? 0×03 Bytes Read send every x bytes read by both sides 0×04 Ping ping is a stream control message, has subtypes 0×05 Server BW the servers downstream bw 0×06 Client BW 阅读全文

posted @ 2011-08-18 00:10 MonkChen 阅读(1225) 评论(0) 推荐(0)

摘要:+-------------+----------------+-------------------+--------------+ | Basic header|Chunk Msg Header|Extended Time Stamp| Chunk Data | +-------------+----------------+-------------------+--------------+ (图1.包头header 构成)0 1 2 3 4 5 6 7 +-+-+-+-+-+-+-+-+ |fmt| cs id | +-+-+-+-+-+-+-+-+ Figure 6 Chunk . 阅读全文

posted @ 2011-08-17 02:07 MonkChen 阅读(929) 评论(0) 推荐(0)

摘要:RTMP Message Formats June 2009 Adobe Systems Inc. [Page 6] with IDs 3-6 are reserved for usage of RTMP. Protocol message with ID 7 is used between edge server and origin server. Protocol control messages MUST have message stream ID 0 (called as control stream) and chunk stream ID 2, and are sent wit 阅读全文

posted @ 2011-08-15 22:25 MonkChen 阅读(523) 评论(0) 推荐(0)