Giter VIP home page Giter VIP logo

rtsptest's People

Contributors

abhijeetbhanjadeo avatar rayryeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rtsptest's Issues

SETUP Uri from Session Description is incorrect

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,

trackIDOrStream

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".

How to use rtsp://username:password@ip:port/ to build RTSPControl class

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.