Giter Club home page Giter Club logo

Comments (3)

aler9 avatar aler9 commented on June 19, 2024

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.

a-detiste avatar a-detiste commented on June 19, 2024

Hi,

Thank you so much, adding the slash in the javascript did helped !

from rtsp-simple-proxy.

aler9 avatar aler9 commented on June 19, 2024

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)

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.