I am developing an application for a device that will receive a POST request and send back a binary data stream in the format of multipart/x-mixed-replace
. My goal is to display this stream on a specific section of my app's homepage.
After conducting extensive research, I have found limited resources on this particular scenario. While it is possible to use an iframe/img
tag to display Motion JPEG sent from a specific URL, my situation requires a different approach. It seems that I need to parse the binary stream and create an Observable to update the img
element within an image HTML tag whenever a new frame is received.
Is there a more straightforward method to achieve this? I came across a solution at https://gist.github.com/legege/5301477, can I implement this?