Giter Site home page Giter Site logo

Comments (4)

godka avatar godka commented on July 28, 2024

thx for your interest,please fine the reply inline :)
Q:how to have two simultaneous sessions?
A:
what is simultaneous sessions?you mean mix two rtp sessions into one session?
the correct process for establishing rtp-rtmp bridge is:

create rtp protocol -> save sdp file -> ffmpeg read sdp file -> transcode to rtmp

in server.js,you will find this code

                        console.log('my session id:', sessionId);
                        var streamPort = 55000 + session_index;
                        session_index++;    //change to next port
                        var streamIp = '127.0.0.1';//Test ip

According to the process,the session-index should be cumulative while another session requests.
if you wanna mix two rtp in one session,try to fix this code.

from kurento-rtmp.

nishachar avatar nishachar commented on July 28, 2024

This approach of incrementing the session index by one and assigning it to port is not working. You can test this bug on the test link that u have given. I have however figured out the problem. FFMPEG blocks two ports and not one when you run a sdp file. One is the port mentioned in the sdp and the port immidiately after it. Thats why the next incremented port used un second SDP gave "Address already in use" error. I have fixed the error and attaching the updated server.js with this comment. If you find it ok, please commit it. ( please remove the .txt from the file extention )
Once again, awesome work

server.js.txt

from kurento-rtmp.

nishachar avatar nishachar commented on July 28, 2024

And also if i may very humbly suggest you to put up a licence file in your code base.

from kurento-rtmp.

godka avatar godka commented on July 28, 2024

good job bro,I've commit your code and add apache license.
thx for your interest again!

from kurento-rtmp.

Related Issues (20)

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.