-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTSP Server Side implementation of RTSP over HTTP for RtspCameraExample #130
Comments
Hi, I have think a little about adding RTSP over HTTP for the server side but I did not start to code. My thought was to make a new class (called something like
One subject I am not sure : can the client open new TCP connection to send a new POST for the same stream, using the same I think HTTPS can be added after if we have protected method to get the stream in the RtspHttpListerner, or we can ask user to use an external proxy. Nicolas |
Hi. But I've started with some additions to RtspTcpTransport and a custom Stream Class so I can implement a PeekLine() function but it will probably make the existing class too messy. I had avoiding doing the TcpClient because the TLS/SSL negotiation is done deeper into SharpRTSP in a GetStream() function so I'd need to do the TLS/SSL negotiation in the TcpClient so that I could add a PeakLine to see what the first bytes of the Socket contain (RTSP or HTTP) If get stuck I'll do it on a different port and open an internal socket to the existing RTSP code. When I have something working I'll push it to my fork and let you know. Many thanks |
Hi
I can see SharpRTSP has code to be a client of a RTSP over HTTP Server.
I want to add support for RTSP over HTTP and RTSP over HTTPS to the RTSP Server code and test with RtspCameraExample
I wanted to check if anyone has tried this already or if there are any forks worth looking at.
I've already done the research and read the Apple mini spec.
I wanted to keep this on the same port as a RTSP connection so will handle RTSP and the HTTP connection on the same port (eg 8554)
I'd like to keep the rest of the RTSP Server code reading from a Stream.
So I think I need to write some code that will sit between the TCP Server Connections and the Stream Read/Write functions which are written to Read and Write RTSP messages to a stream.
My new code would need to read data from the TCP Socket, and if it is a RTSP message, just pass data straight through.
If the data read from the TCP socket is a HTTP Header, I need to respond and wait for the 2nd HTTP connection with the correct GUID and then pass data read from the HTTP connection to the stream the exisitng RTSP Sharp code uses and handle Stream Writes from the existing Sharp RTSP code.
So just wanted to check if anything has been tried already.
Thanks
Roger
The text was updated successfully, but these errors were encountered: