Is push RTP possible only on request? #3230
Replies: 2 comments 3 replies
-
|
Hello, MediaMTX has been conceived for broadcasting, therefore no interactions between readers and the publisher of each stream are allowed, otherwise a single reader would influence all others. No RTSP commands can be forwarded from readers to the publisher. However, if you're interested into forwarding RTP packets only when there are actually connected readers, you can do this by triggering some kind of event through paths:
mypath:
runOnRead: curl http://remote_host:8080/start-fowarding-rtp-packetsYou can then improve your application in order to listen for this HTTP request and behave accordingly. |
Beta Was this translation helpful? Give feedback.
-
|
This discussion is being locked automatically because the last update was more than 2 years ago. Do not use the content of this discussion as reference since it's probably outdated! The official documentation is the only place in which you can find up-to-date answers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hello.
I'm trying to send a video through NAT to the server. BUT I need RTP packets to start being forwarded only by command (for example, PLAY)
Are there any ways to do this using mediamax using the RTSP protocol?
As I understand it now, mediamtx does not send any RTSP commands for this and the end of the dialogue looks like this, after which RTP starts to be sent immediately
Beta Was this translation helpful? Give feedback.
All reactions