Set IP Camera Viewer Video Mode by Scripting

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.

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

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

Check this out for some more detail on the IP Camera, and other things…

1 Like

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

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

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

1 Like

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:

2 Likes