How to display Motion JPEG binary data stream on Ionic App?


#1

Hi, I’m coding an app for a device, such device will receive a POST request, and send back a multipart/x-mixed-replace binary data stream. I must display such stream on one section of my app’s home page.

I searched through, there’s very limited resource on such case. So far, I found that if the Motion JPEG is sent from a specific URL, then maybe it’s possible to use iframe/image tag to display it. However, my case is different, it seems I have to parse such binary stream then create an Observable to alter the image element on an image html tag once I get a frame from the Motion JPEG binary stream.

Is there a simpler way to do that ? I found https://gist.github.com/legege/5301477, can I use this ?