Handle HLS manifest requests
(request, channel_id)
| 14 | @csrf_exempt |
| 15 | @require_http_methods(["GET"]) |
| 16 | def stream_endpoint(request, channel_id): |
| 17 | """Handle HLS manifest requests""" |
| 18 | if channel_id not in proxy_server.stream_managers: |
| 19 | return JsonResponse({'error': 'Channel not found'}, status=404) |
| 20 | |
| 21 | response = proxy_server.stream_endpoint(channel_id) |
| 22 | return StreamingHttpResponse( |
| 23 | response[0], |
| 24 | content_type='application/vnd.apple.mpegurl', |
| 25 | status=response[1] |
| 26 | ) |
| 27 | |
| 28 | @csrf_exempt |
| 29 | @require_http_methods(["GET"]) |
nothing calls this directly
no test coverage detected