# Webthing thing for displaying mjpeg video stream

**URL:** <https://discourse.mozilla.org/t/webthing-thing-for-displaying-mjpeg-video-stream/52894>\
**Category:** WebThings\
**Created:** [January 28, 2020, 10:41pm UTC](https://discourse.mozilla.org/t/webthing-thing-for-displaying-mjpeg-video-stream/52894 "2020-01-28T22:41:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James.agada](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@James.agada](https://discourse.mozilla.org/u/James.agada)\
**Post date:** [January 28, 2020, 10:41pm UTC](https://discourse.mozilla.org/t/webthing-thing-for-displaying-mjpeg-video-stream/52894/1 "2020-01-28T22:41:49Z")

</div>

is it possible to build a WebThings like a camera/video camera but to support an mjpeg stream?

---

<div class="post-metadata">

**Author:** ![mstegeman](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mstegeman](https://discourse.mozilla.org/u/mstegeman)\
**Post date:** [January 29, 2020, 7:50am UTC](https://discourse.mozilla.org/t/webthing-thing-for-displaying-mjpeg-video-stream/52894/2 "2020-01-29T07:50:36Z")

</div>

Yes… theoretically.

The only video streaming we’ve tested thus far is through the [ONVIF add-on](https://github.com/mozilla-iot/onvif-adapter). To make things work well in a web browser, we transcode all video streams to DASH and HLS, since MJPEG is not natively supported by all browsers.

The key is to use a [`VideoProperty`](https://iot.mozilla.org/schemas/#VideoProperty), with one or more links, such as [this](https://github.com/mozilla-iot/onvif-adapter/blob/master/lib/onvif-device.js#L95-L109).
