Render MJPEG streams in React-Native

21 Dec

Rendering MJPEG streams in React-Native on iOS or Android is relatively simple.  You leverage a WebView component and the right configuration to size it and it will look like a native video stream.

Here is an example – just update the formatHtml() method to use the Url to your mjpeg stream.

Tweet about this on TwitterShare on Google+Share on FacebookShare on RedditEmail this to someoneShare on LinkedInShare on StumbleUpon

Leave a Reply

Your email address will not be published. Required fields are marked *