fix: quirk with rtmp auth when pushed from ome
This commit is contained in:
		
							parent
							
								
									cd2a2af948
								
							
						
					
					
						commit
						0d9a60c6ff
					
				| 
						 | 
					@ -30,6 +30,11 @@ def callback_srs(request):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        app_name = json_data['app']
 | 
					        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']
 | 
					        stream_name = json_data['stream']
 | 
				
			||||||
        param = json_data['param']
 | 
					        param = json_data['param']
 | 
				
			||||||
    except KeyError:
 | 
					    except KeyError:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue