Comments (4)
Hi,
I made some research the only specification I can found is this document : https://opensource.apple.com/source/QuickTimeStreamingServer/QuickTimeStreamingServer-412.42/Documentation/RTSP_Over_HTTP.pdf
If I understand well the client send an initial GET request to "establish" the tunnel, when the client want to send data it send an POST request and when it need data it send a GET request (when it wait for a response)
To include in sharprtsp you will need to make an other IRtspTransport with return (for GetStream) a custom Stream which make the HTTP request.
Actually I'm between jobs, so I don't have access to CCTV camera to make some test. Wireshark capture of a dialog may be interesting
Some links I have found
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-plugins-base/gst-libs/gst/rtsp/gstrtspconnection.c
https://www.happytimesoft.com/knowledge/rtsp-over-http.html
https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/rtsp.c with RTSP_MODE_TUNNEL
from sharprtsp.
I started to implement it with SharpRTSP being the server but never finished it.
I used the Apple document and used ffmpeg's 'ffplay' command to connect to my test code to so I could see what the HTTP Headers were like.
The main thing was accepting two TCP connections and using information in the HTTP Headers so you know which TCP sockets are the pair needed to send and receive.
Then the code that reads and writes the normal RTSP socket needs a wrapper so instead of reading/writing one socket, it has to work with two TCP sockets
from sharprtsp.
Wireshark-over http samsung.zip
Hello ngrazioano,
I am attaching a zip file with a wireshark for an rtsp over http, as exposed by a program called ODM (OnvifDM, useful for onvif find).
I am not sure this is what correctly needed, as this uses onvif for discovery and connection, but I think is almost what setup by the Rtsp over Http tunneling.
Let me know if can be usefull.
I have understood what is needed to do, will try to implement it, and maybe, when will works, to merge in the main code...
Have a nice day
from sharprtsp.
We can consider this closed with pull #98
from sharprtsp.
Related Issues (20)
- The function AuthenticationBasic make a little mistake. HOT 1
- Bug with library Meziantou.Polyfill HOT 3
- Adding a video display for CameraExample
- Bug In rtp packet extension reading HOT 1
- Android Port Conflict (.NET issue)
- Connection Close with bigger frame size and Unity HOT 3
- Simple H264 Encoder doesn't work with hardware decoders? HOT 2
- feed aac raw data to rtspserver HOT 1
- Android camera server HOT 8
- Could not write header for output file #0 (incorrect codec parameters ?): Server returned 400 Bad Request HOT 6
- TestCard MJPG example HOT 1
- AAC RTP packets with multiple AU units per packet HOT 4
- h265payload question HOT 3
- RtspCameraExample issue when client is Hikvision NVR HOT 1
- Artifacts in H.264 video stream HOT 7
- README File: Spelling Mistakes Correction HOT 2
- repo is behind NuGet package HOT 2
- Update NuGet package please? HOT 2
- netstandard2.1 only? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharprtsp.