# Refresh IP Camera Module on Error

**URL:** <https://forum.inductiveautomation.com/t/refresh-ip-camera-module-on-error/9822>\
**Category:** Ignition\
**Created:** [March 20, 2015, 1:58am UTC](https://forum.inductiveautomation.com/t/refresh-ip-camera-module-on-error/9822 "2015-03-20T01:58:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cory](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@cory](https://forum.inductiveautomation.com/u/cory)\
**Post date:** [March 20, 2015, 1:58am UTC](https://forum.inductiveautomation.com/t/refresh-ip-camera-module-on-error/9822/1 "2015-03-20T01:58:28Z")

</div>

Greetings,

I need to find a way to refresh/reload the IP Camera module when it encounters any error. I know that this can basically be accomplished via a change in URL or mode; however, I have not found a way to know programmatically when an error has occurred. Due to the environment, that cannot be changed at this point, the viewer will receive multiple SOI or EOI tags in a row and dies until refreshed/reloaded.

Any assistance is much appreciated.

---

<div class="post-metadata">

**Author:** ![cory](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@cory](https://forum.inductiveautomation.com/u/cory)\
**Post date:** [March 21, 2015, 1:35am UTC](https://forum.inductiveautomation.com/t/refresh-ip-camera-module-on-error/9822/2 "2015-03-21T01:35:41Z")

</div>

For the moment I’m testing using the web browser module with the mjpeg stream embedded in an html ![]() tag. It is stable thus far and seems to be a decent alternative for less than spectacular connections.

On another note, I’ve found that the IP Camera viewer does not play well with RTP B2 frames enabled on the stream. (Neither does the web browser module for that matter.)

Hopefully I’ll have some more information after it runs for a while.

---

<div class="post-metadata">

**Author:** ![cory](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@cory](https://forum.inductiveautomation.com/u/cory)\
**Post date:** [April 16, 2015, 4:43pm UTC](https://forum.inductiveautomation.com/t/refresh-ip-camera-module-on-error/9822/3 "2015-04-16T16:43:26Z")

</div>

I finally found the reason for the module errors, or most of them at least. On the Acti cameras we are using there is a setting tucked in for RTP B2 frames. This setting is enabled by default and wreaks havoc on the IP Camera module. Once the RTP B2 frames are disabled the module works with a high degree of reliability.

The short version:  
Disable RTP B2 Frames on IP Cameras used with the IP Camera module.

---

<div class="post-metadata">

**Author:** ![jsorlie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jsorlie/32/3645_2.png) [@jsorlie](https://forum.inductiveautomation.com/u/jsorlie)\
**Post date:** [May 16, 2018, 9:15pm UTC](https://forum.inductiveautomation.com/t/refresh-ip-camera-module-on-error/9822/4 "2018-05-16T21:15:06Z")

</div>

see here

> [@IP camera status - how to catch "Stream ended." status](http://forum.inductiveautomation.com/t/ip-camera-status-how-to-catch-stream-ended-status/18030):
>
> Is there any way to programmatically monitor the status (quality) of the IP Camera component’s video stream? Seems like there would be some response code attribute available to check if/when things go wrong. There are two situations I need to catch if possible: When the number of connect retries has been reached When (for whatever reason) the stream ends inadvertently. Is there any hidden properties that can be used in scripting (eg. property change scripts) to catch these events?
