|
研究过real rtsp在线播放的进
这是我写的一个RTSP服务器,
要能适应REAL客户端。
下面是输出:
可就是SETUP不起来。
------------------------------receive data :
OPTIONS rtsp://192.168.0.106:5555 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://192.168.0.106:5555/aaddd 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://192.168.0.106:5555/aaddd 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://192.168.0.106:5555 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的交互过程,希望指点下。
谢谢。 |
|