# Set IP Camera Viewer Video Mode by Scripting

**URL:** <https://forum.inductiveautomation.com/t/set-ip-camera-viewer-video-mode-by-scripting/16549>\
**Category:** Ignition\
**Created:** [January 10, 2018, 6:02pm UTC](https://forum.inductiveautomation.com/t/set-ip-camera-viewer-video-mode-by-scripting/16549 "2018-01-10T18:02:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![salbrechtsen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/salbrechtsen/32/18660_2.png) [@salbrechtsen](https://forum.inductiveautomation.com/u/salbrechtsen)\
**Post date:** [January 10, 2018, 6:02pm UTC](https://forum.inductiveautomation.com/t/set-ip-camera-viewer-video-mode-by-scripting/16549/1 "2018-01-10T18:02:39Z")

</div>

Is there a way to set the IP Camera Viewer Video Mode property by scripting? I have noticed the property is an int datatype. I have tried setting it to 0 and 1 and can’t seem to get it to change.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 10, 2018, 6:15pm UTC](https://forum.inductiveautomation.com/t/set-ip-camera-viewer-video-mode-by-scripting/16549/2 "2018-01-10T18:15:59Z")

</div>

`setMode()` should work - the values are 0 for MJPEG and 1 for JPEG.

---

<div class="post-metadata">

**Author:** ![salbrechtsen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/salbrechtsen/32/18660_2.png) [@salbrechtsen](https://forum.inductiveautomation.com/u/salbrechtsen)\
**Post date:** [January 10, 2018, 8:03pm UTC](https://forum.inductiveautomation.com/t/set-ip-camera-viewer-video-mode-by-scripting/16549/3 "2018-01-10T20:03:44Z")

</div>

Awesome, thanks so much. Is this in the docs somewhere?

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [January 10, 2018, 9:36pm UTC](https://forum.inductiveautomation.com/t/set-ip-camera-viewer-video-mode-by-scripting/16549/4 "2018-01-10T21:36:33Z")

</div>

Check [this](http://files.inductiveautomation.com/sdk/javadoc/ignition79/794-beta1/index.html?com/inductiveautomation/factorypmi/application/components/PMIIPCamViewer.html) out for some more detail on the IP Camera, and other things…

---

<div class="post-metadata">

**Author:** ![salbrechtsen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/salbrechtsen/32/18660_2.png) [@salbrechtsen](https://forum.inductiveautomation.com/u/salbrechtsen)\
**Post date:** [January 11, 2018, 6:52pm UTC](https://forum.inductiveautomation.com/t/set-ip-camera-viewer-video-mode-by-scripting/16549/5 "2018-01-11T18:52:25Z")

</div>

Perfect, thank you. I had tried searching the Java Docs, but didn’t see anything. Much appreciated!

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [January 11, 2018, 7:21pm UTC](https://forum.inductiveautomation.com/t/set-ip-camera-viewer-video-mode-by-scripting/16549/6 "2018-01-11T19:21:50Z")

</div>

Yeah, I don’t know if its an IA thing or the underlying javadoc format but I’ve always had a hard time finding things in it. I use a custom search in Chrome using a google site search:

[https://www.google.com/search?lr=&hl=en&as\_qdr=all&ei=JD9WWuHEIMHGjwO4wpygBw&q=%s+site%3Ahttp%3A%2F%2Ffiles.inductiveautomation.com%2Fsdk%2Fjavadoc%2Fignition79%2F](https://www.google.com/search?lr=&hl=en&as_qdr=all&ei=JD9WWuHEIMHGjwO4wpygBw&q=%25s+site%3Ahttp%3A%2F%2Ffiles.inductiveautomation.com%2Fsdk%2Fjavadoc%2Fignition79%2F)

If you add a custom search engine w/ that as the URL, you can search the javadocs pretty easily.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 11, 2018, 7:27pm UTC](https://forum.inductiveautomation.com/t/set-ip-camera-viewer-video-mode-by-scripting/16549/7 "2018-01-11T19:27:26Z")

</div>

Javadocs are incredible useful, but incredibly obtuse and hard to use. There’s also some client-side search implementations that I’ve had mixed success with:

> **[Javadoc Search Frame](https://chrome.google.com/webstore/detail/javadoc-search-frame/mfgkihmpcjjnijmkchojlbccbmhcdfcd/related?hl=en)**
>
> Javadoc incremental search for packages and classes.
