From 0d9a60c6ff32016e8ff91d1a131f506b0515cbf0 Mon Sep 17 00:00:00 2001 From: Jan Koppe Date: Sun, 31 Oct 2021 20:16:30 +0100 Subject: [PATCH] fix: quirk with rtmp auth when pushed from ome --- rtmp/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtmp/views.py b/rtmp/views.py index d96ab60..31e10a8 100644 --- a/rtmp/views.py +++ b/rtmp/views.py @@ -30,6 +30,11 @@ def callback_srs(request): try: app_name = json_data['app'] + # QUIRK this is a weird bug when pushing from OME to SRS. wtf. + # for some reason srs interprets the incoming app as app/stream, and passes this on to portier. + # only keep the stuff infront of a (potential) slash, and throw away the rest. problem solved^tm + app_name = app_name.split('/')[0] + # ENDQUIRK stream_name = json_data['stream'] param = json_data['param'] except KeyError: