[RTMP]RTMP协议?什么是rtmp协议?
[RTMP]RTMP协议?什么是rtmp协议?RTMP包结构
RTMP:Real Time Messaging Protocol
默认端口:1935
RTMP是工作在TCP之上的协议(Over TCP)
RTMP包结构:
握手
RTMP协议参考:
http://www.pigg.co/rtmp-protocol-handshake.html
https://github.com/simple-rtmp-server/srs/wiki/v1_CN_RTMPHandshake
http://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol
RTMP协议的使用:
- <script type="text/javascript" src="/player/images/swfobject.js"></script>
- <div class="video" id="CuPlayer"> <b> <img src="/player/images/loading.gif" /> 网页视频播放器加载中,请稍后...</b> </div>
- <script type="text/javascript">
- var so = new SWFObject("/player/player.swf","ply","980","460","9","#000000");
- so.addParam("allowfullscreen","true");
- so.addParam("allowscriptaccess","always");
- so.addParam("wmode","opaque");
- so.addParam("quality","high");
- so.addParam("salign","lt");
- <!-- HTML代码参数/Begin -->
- so.addVariable("JcScpServer","rtmp://www.cuplauyer.com/vod"); //rtmp流媒体服务器地址
- so.addVariable("JcScpVideoPath","mp4:test.mp4"); //文件地址
- so.addVariable("JcScpImg","/player/Images/flashChangfa2.jpg");
- so.addVariable("JcScpFile","/player/CuSunV2Set.asp");
- <!-- HTML代码参数/End -->
- so.write("CuPlayer");
- </script>
热门文章推荐
- [FMS]Adobe FMS产品(Adobe Flash Media Server)使用介绍(组图)
- [FMS]Flash Media Server之教程附示例代码
- [RTMP]国产RTMP/HLS直播服务器simple-rtmp-server
- [WOWZA]用wowza流媒体服务器发布和播放直播流(RTMP)
- [RTMP]又一款rtmp类的服务器openrtmfp流媒体服务器
- [RTMP]adobe之FMS视频直播解决方案流程介绍(组图)
- [RTMP协议]实时消息传输协议 (RTMP) 常识性介绍
- [FMS]Adobe的Flash Media Server服务器(FMS服务器)安装
请稍候...