I’m a bit confused after studying varied blogs and solutions on Stack and ideas are being too messy for me, nevertheless I’m gonna clarify my downside like this,
1. I’ve a Python script that connects my gadget to a worldwide MQTT dealer to recieve instructions on Pub/Sub mannequin which is operating completely positive.
2. I’ve tried one other Python script which has entry to the units webcam, and is utilizing WebRTC to stream dwell video over the browser on a localhost port. I’ve used
aiortc https://github.com/aiortc/aiortc/tree/grasp/examples/server in Python for this.
Now I really feel caught or I really feel I’m not going into the correct route, as a result of my dwell video feed is simply restricted to the native community and relies on opening the browser and giving it permission to entry the webcam every time and integrating the 2 scripts appears difficult.
The gadget that I’m making simply must do the next issues:
1. It ought to be capable to obtain sure instructions from an Android App. That is considerably moving into the correct means as I’m utilizing a worldwide MQTT dealer service in between which acts as a middleware between my Backend server(deployed on AWS EC2) with its frontend(or say Cell App) and the gadget subscribed to matters on the dealer.
2. On receiving a sure command from the Cell App the gadget ought to begin sending dwell video feed which needs to be seen on the App with minimal latency. So right here I really feel WebRTC can do my work however I’m not capable of configure it to ship video feed over the worldwide community and I don’t know the way it will work within the structure and be accessible on the App.
Can any person clarify me what will probably be one of the best ways to efficiently implement each the above two factors in a manufacturing degree state of affairs, if the present process I’m pondering wouldn’t work, OR if my pondering goes in the correct route then simply inform my how can I make this WebRTC factor work globally with the Python bundle
aiortc I’m utilizing.