rayryeng / rtsptest Goto Github PK
View Code? Open in Web Editor NEWThis is a library as well as a test GUI that I wrote that implements the RTSP Signalling Protocol to communicate with RTSP servers
License: MIT License
This is a library as well as a test GUI that I wrote that implements the RTSP Signalling Protocol to communicate with RTSP servers
License: MIT License
To whom it may concern,
For some reason this library adds an unwanted string to SETUP requests, an example of the added string would be "track=" or "trackID=".
I am not sure why you choose to hard code these tokens especially since you go through the trouble to parse them, the tokens can be literally anything allowed in the grammar such as but not limited to "audio", "video", "text", "track", "stream", "XYZ"....
See Wikipedia for an example that doesn't use track or trackId...
https://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol
Or the RFC for many more
https://www.ietf.org/rfc/rfc2326.txt
Please also this this IETF mailing list entry which specifically clarifies this for someone else...
https://www.ietf.org/mail-archive/web/mmusic/current/msg00880.html
In short, the 'control' line of the Media Description of the Session Description is used to specify aggregate control of a media item. (This means that each stream can be controlled independently of the other)
If that media item does not specify a control line or specifies "*" then the Session Description Control Line is used.
If the control line specifies a relative format it is usually accompanied by a 'Content-Base' header in the RTSP Response which specifies the absolute portion of the relative URI in the control line.
This means that literally anything can appear in the control line, even another servers address.
This needs to be handled especially because the resource may not reside within the same domain as the rtsp server itself, thus the request needs to be sent to the server indicated in the control line.
You can see how I handled this in my RtspClient by obtaining the Content-Base header when required
http://net7mma.codeplex.com/SourceControl/latest#Rtsp/RtspClient.cs
You can see how I retrieve the AggregateControl Uri from the MediaDescription or SessionDescription
http://net7mma.codeplex.com/SourceControl/latest#Sdp/MediaDescription.cs
This prevents your client form working with my RtspServer as well as various other servers which do not use the 'track' or 'trackId' string but something else.
Since this project is advertised as standards compliant I figured I should let you know.
Regards,
Hi, nice job with this RTSP client implementation. Saved me a lot of work.
It worked out of the box with an IP camera, except for one thing:
The track id on that RTSP server was not represented as "TrackId=" nor "stream", but "track".
I find that the RTSPControl class have no username and password Construction method,so I have one rtsp like this: rtsp://username:password@ip:port//h264/ch1/main/av_stream,I can not use this Java library to finish RTSP command.If you have some suggestion,please tell me how to do this.Thank you very much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.