Webcam stream doesn't work outside localhost

Hi, I'm working on my own personal remote (outside my network) octoprint control setup useing ngrok

/ngrok http 'port'

and rest api. Ngrok creates a tunnel on server startup and a simple python script then finds the tunnel url and sends it to my website so that i only have to click a link and log in. It works perfectly accept for the webcam stream with only works in my network, not outside. I've tryed everything i cout think of but cant get it to work. Do you have any ideas vhere I'm making a mistake?