-
I have some non compliant RTMP streams in the form of (rtmp://host[:port]/app/stream/channel/file) and other complaint ones in the form of (rtmp://host[:port]/app/stream/file) I am trying to use AdmissionWebhooks to change the url, however when a noncompliant stream starts I get the following error in the log [2023-04-04 14:00:37.200] I [SPRTMP-t1935:22898] RTMPProvider | rtmp_provider.cpp:189 | A RTMP client has connected from <ClientSocket: 0x7f5f2d401010, #5, Connected, TCP, Nonblocking, 41.13.18.165:49231> My config looks as follows
I can get the complaint ones to work with the AdmissionWebhooks if I add an application into the virtual host for the AdmissionWebhooks The application has an RTMP Provider and RTMPPush Publisher Then the webhook can redirect it to completely different virtualhost on OME. The ControlServerUrl returns the following
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This question is quite important because there are many Chinese devices that are hitting the market and are using rtmp streams in the form of rtmp://host[:port]/app/stream/channel/file, i.e they re adding an extra parameter called channel. AdmissionWebHooks would work fine if it didn't need to match the orginal stream with an application, and rather redirect it to the new url. |
Beta Was this translation helpful? Give feedback.
-
Because RTMP was validating the application before AdmissionWebhooks, it didn't work as intended. I have corrected it. (28085d8) Also, now sending an RTMP stream to the |
Beta Was this translation helpful? Give feedback.
-
Thanks will test shortly |
Beta Was this translation helpful? Give feedback.
-
Thanks it works well |
Beta Was this translation helpful? Give feedback.
Because RTMP was validating the application before AdmissionWebhooks, it didn't work as intended. I have corrected it. (28085d8)
Also, now sending an RTMP stream to the
rtmp://host:port/app/channel/stream
endpoint will create a stream tohost#app/channel
.