Comments (4)
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.
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
from kurento-rtmp.
And also if i may very humbly suggest you to put up a licence file in your code base.
from kurento-rtmp.
good job bro,I've commit your code and add apache license.
thx for your interest again!
from kurento-rtmp.
Related Issues (20)
- not work! HOT 3
- NotFoundError: The object can not be found here. HOT 2
- The demo website doesn't work HOT 5
- Demo doesn't work locally HOT 7
- TURN server configuration HOT 4
- centos 上的运行问题 HOT 2
- 高分配率画面模糊的问题 HOT 1
- Idea
- npm install安装时ws失败 HOT 1
- Consider increasing the value for the 'analyzeduration' and 'probesize' options HOT 1
- Could not find codec parameters for stream 1 (Video: h264, none HOT 1
- 本地测试延时5秒左右,想请问下 如何可以改进?
- Camera capture resolution/bitrate very low
- Audio track present, but no sound in rtmp stream HOT 3
- Broswer didn't receive answer
- Please rebuild this project
- Doesn't work for me... HOT 2
- start server.js error
- Empty stream HOT 1
- Demo not working 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 kurento-rtmp.