Chinaunix首页 | 论坛 | 博客
  • 博客访问: 718316
  • 博文数量: 759
  • 博客积分: 7000
  • 博客等级: 少将
  • 技术积分: 4775
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-22 15:16
文章分类

全部博文(759)

文章存档

2008年(759)

我的朋友

分类:

2008-09-25 15:55:53

这是我写的一个RTSP服务器,
要能适应REAL客户端。
下面是输出:
可就是SETUP不起来。

------------------------------receive data :
OPTIONS RTSP/1.0
CSeq: 1
User-Agent: RealMedia Player HelixDNAClient/10.0.1.65 (win32)
Supported: ABD-1.0
ClientChallenge: ee950b8223fd2ce76e42dc34ad510365
ClientID: WinNT_5.1_6.0.12.1741_RealPlayer_R41CND_zh-CN_UNK
CompanyID: jTz7j2MaPjcy8AK78qUIig==
GUID: 00000000-0000-0000-0000-000000000000
PlayerStarttime: [24/05/2008:18:01:36 08:00]
Pragma: initiate-session
RegionData: 0

----------------OPTIONS--------------------
send: RTSP/1.0 200 OK
CSeq: 1
Public: OPTIONS, DESCRIBE, ANNOUNCE, PLAY, SETUP, GET_PARAMETER, SET_PARAMETER, TEARDOWN
Session:1234

------------------------------receive data :
DESCRIBE RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: RealMedia Player HelixDNAClient/10.0.1.65 (win32)
Session: 1234
Bandwidth: 524300
ClientID: WinNT_5.1_6.0.12.1741_RealPlayer_R41CND_zh-CN_UNK
GUID: 00000000-0000-0000-0000-000000000000
Language: zh-CN, zh, *
RegionData: 0
Require: com.real.retain-entity-for-setup
SupportsMaximumASMBandwidth: 1

----------------Describe--------------------
send: RTSP/1.0 551 Option not supported
CSeq: 2
Unsupported: com.real.retain-entity-for-setup

------------------------------receive data :
DESCRIBE RTSP/1.0
CSeq: 3
Accept: application/sdp
User-Agent: RealMedia Player HelixDNAClient/10.0.1.65 (win32)
Session: 1234
Bandwidth: 524300
ClientID: WinNT_5.1_6.0.12.1741_RealPlayer_R41CND_zh-CN_UNK
GUID: 00000000-0000-0000-0000-000000000000
Language: zh-CN, zh, *
RegionData: 0
SupportsMaximumASMBandwidth: 1

----------------Describe--------------------
send: RTSP/1.0 200 OK
CSeq: 3
Content-Type: application/sdp
Content-Length: 199
Server: LR3615

m=video 1 RTP/AVP 96
a=control:rtsp://*/mpeg4live.mp4/video
a=rtpmap:96 MP4V-ES/90000
a=cliprect:0,0,640,480
a=framerate:30
a=I_frame_interval:15
a=mpeg4-esid:1
a=fmtp:96 profile-level-id=1;


accept thread current_client in function after: 0

------------------------------receive data :
SETUP rtsp://*/mpeg4live.mp4/video RTSP/1.0
CSeq: 4
Transport: RTP/AVP;unicast;client_port=6970-6971;mode=play,RTP/AVP/TCP;unicast;mode=play
User-Agent: RealMedia Player HelixDNAClient/10.0.1.65 (win32)
If-Match: 1234
(注:这个rtsp地址是针对vlc给的,real不应该这样,但我是server,我不处理也没事)
----------------SETUP--------------------
send: RTSP/1.0 200 OK
CSeq: 4
Date: Sat, 24 May 2008 06:26:27 GMT
Transport= RTP/AVP;unicast;client_port=6970-6971;server_port=6970-6971
accept thread current_client in function after: 0

------------------------------receive data :
TEARDOWN RTSP/1.0
CSeq: 5
User-Agent: RealMedia Player HelixDNAClient/10.0.1.65 (win32)
Session: 1234

----------------TEARDOWN--------------------
send: RTSP/1.0 200 OK

都SETUP了,可惜就在这里挂掉了。
不知道哪位前辈曾经研究过REAL的交互过程,希望指点下。
谢谢。

[ 本帖最后由 souldump 于 2008-5-24 18:19 编辑 ]

--------------------next---------------------

阅读(620) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~