Comments (3)
Hello, in my opinion the bug is in media-stream-library-js, and i also found where it is. When an RTSP client contacts a server, this happens:
- the client sends a DESCRIBE request to obtain infos about a stream on a certain path
- the server sends back a SDP document, which describes the stream (how many tracks there are, what is their codec). This document contains, for each track, an URL that is needed to connect to this specific track, that is saved in the
control
field of the document.
The track URL can be relative, for instance (taken from the RTSP 1.0 specification https://tools.ietf.org/html/rfc2326#appendix-C.2):
a=control:trackID=1
the leading slash is omitted, so if the stream URL is
rtsp://example.com/movie
The resulting track URL is
rtsp://example.com/movie/trackID=1
media-stream-library-js does not insert the leading slash between the absolute URL and the relative URL:
https://github.com/AxisCommunications/media-stream-library-js/blob/master/lib/components/rtsp-session/index.ts#L350
so http://localhost:554/proxyStream/trackID=0
becomes http://localhost:554/proxyStreamtrackID=0
.
Try to use http://localhost:554/proxyStream/
as url (with the trailing slash) or edit the library. If it works, we can then send a PR.
from rtsp-simple-proxy.
Hi,
Thank you so much, adding the slash in the javascript did helped !
from rtsp-simple-proxy.
This should be definitively fixed in v0.3.10 - i added a trailing slash to the Content-Base header, so editing media-stream-library-js is not needed anymore.
from rtsp-simple-proxy.
Related Issues (10)
- Trying to work with a WyzeCam -- user/pass supported? HOT 6
- can't read dahua streams? HOT 6
- Stream set credentials is not feasible HOT 1
- Feature Request: Pre/Post Script HOT 1
- Unable to connect to v4l2rtspserver-0.2.0 ERR: expected 'RTSP/1.0', got HOT 6
- Read messages while receiving UDP streams, do not just write keepalives HOT 1
- "invalid SDP" while connecting to IP-camera HOT 2
- unable to parse key-value HOT 2
- High CPU usage HOT 2
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 rtsp-simple-proxy.