RTSP Stream via Cloudflared/Zero Trust Tunnel

Related to

Cloudflare Tunnel

What is the issue you’re encountering

Fails to Stream RTSP

What steps have you taken to resolve the issue?

I have tried setting up the tunnel as HTTP and TCP.
I have a Raspberry Pi livestreaming its camera via the mediamtx app which provides an RTSP stream on port 8554.
On that same Pi, I have a cloudflared instance running and connected to my tunnel.

What I would like it to be able to access the RTSP stream through the tunnel at the public hostname I configured (ie. rtsp://cam1-stream.tjcams.dev/cam).

I tried pointing the public hostname in the tunnel to http://localhost:8554 and tcp://localhost:8554 but cannot stream from rtsp://cam1-stream.tjcams.dev/cam
I also tried pointing the public hostname to http://localhost and tcp://localhost and then tried to stream from rtsp://cam1-stream.tjcams.dev:8554/cam

None of this has worked. Is what I’m trying to do even possible or do I need to find another solution?

I am afraid currently the RTSP service is not possible to use with Cloudflare Tunnel.