[英]rtsp client stream to server
I am trying to stream (live rtsp) from a java (android) client to a darwin streaming server. 我正在尝试从Java(android)客户端流化(实时rtsp)到darwin流化服务器。
I searched the internet but i couldn't find out how to do this. 我搜索了互联网,但找不到如何执行此操作。
What i am trying to do first is to call SETUP. 我首先要做的是打电话给SETUP。
What i send is this: 我发送的是这样的:
SETUP rtsp://user:password@ip/ RTSP/1.0
CSeq: 1
Transport: RTP/AVP;unicast;client_port=0-1
User-Agent: RtspClient
and i get: 我得到:
RTSP/1.0 415 Unsupported Media Type
Server: DSS/6.0.3 (Build/526.3; Platform/Linux; Release/Darwin Streaming Server; State/Development; )
Cseq: 1
Connection: Close
That is not a valid Transport Header and your missing a new line before the CSeq Header. 这不是有效的传输头,并且您在CSeq头之前缺少新行。
Check out this article for some guidance... 查看本文以获得一些指导...
http://www.codeproject.com/Articles/507218/Managed-Media-Aggregation-using-Rtsp-and-Rtp http://www.codeproject.com/Articles/507218/Managed-Media-Aggregation-using-Rtsp-and-Rtp
It includes a link to a open project with source code for you to follow. 它包括一个带有源代码的开放项目的链接,供您遵循。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.