Problem :
I want make live stream from my camera attached to Raspberry pi 3 b+, which is connected to home WiFi. Streaming should be over internet. So that any client like Android/ iOS can stream it from anywhere. It is a security camera. There can be multiple Raspberry pi connected to home WiFi.
What I have tried :
1. Raw H.264
I could achieve the same by generating raw H.264 which android app could render. It was perfect. But this needs global IP and port to stream over internet. Problem in this method - I can not assign global IPs to multiple raspberry pi. and it needs port forwarding. Which is not acceptable in automated setup of security camera.
2. Another way
Tried this way too, but this tutorial shows a way to stream locally.
What is needed?
What is preferred way to stream Raspberry Pi camera over internet to any device (at least Android/iOS)?
What could be the methods that YI Home Cameras are using?