# Camera Viewer Component

**URL:** <https://forum.inductiveautomation.com/t/camera-viewer-component/5300>\
**Category:** Ignition\
**Created:** [October 22, 2012, 1:47am UTC](https://forum.inductiveautomation.com/t/camera-viewer-component/5300 "2012-10-22T01:47:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shawn\_75](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@shawn\_75](https://forum.inductiveautomation.com/u/shawn_75)\
**Post date:** [October 22, 2012, 1:47am UTC](https://forum.inductiveautomation.com/t/camera-viewer-component/5300/1 "2012-10-22T01:47:29Z")

</div>

Support for Pelco D protocol and a rudimentary joystick control would sure be nice additions to the camera component. I would no longer need this Pelco joystick/keyboard and just imagine my cameras moving to predetermined locations on alarms.

---

<div class="post-metadata">

**Author:** ![nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@nathan](https://forum.inductiveautomation.com/u/nathan)\
**Post date:** [October 22, 2012, 1:11pm UTC](https://forum.inductiveautomation.com/t/camera-viewer-component/5300/2 "2012-10-22T13:11:52Z")

</div>

Here is request information for obtaining information about their proprietary, non-public, protocol.

[pelco.com/sites/global/en/sa … tocol.page](http://www.pelco.com/sites/global/en/sales-and-support/support-services/obtaining-pelco-protocol.page)

---

<div class="post-metadata">

**Author:** ![shawn\_75](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@shawn\_75](https://forum.inductiveautomation.com/u/shawn_75)\
**Post date:** [October 23, 2012, 2:38am UTC](https://forum.inductiveautomation.com/t/camera-viewer-component/5300/3 "2012-10-23T02:38:41Z")

</div>

The D protocol is considered by Pelco to be non-proprietary and its use is encouraged by other manufacturers in order to increase the chances of their products being specified in projects.

That summary is from Pelco’s document CP-1464 which is their guidelines for protocol requests. I would think that they would jump at the chance to put their protocol in a whole new market segment.

In the meantime, a joystick component would be nice.

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [October 23, 2012, 3:48pm UTC](https://forum.inductiveautomation.com/t/camera-viewer-component/5300/4 "2012-10-23T15:48:03Z")

</div>

This is pretty rough and untested, but it might be a good starting point for getting some rudimentary control using scripting.

//snip, see below

Usage example:

```auto
options = pelco_options()
options.pan_left = 1
camera = 0

sendBytes(pelcod(camera, options, 254, 254))
```

---

<div class="post-metadata">

**Author:** ![shawn\_75](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@shawn\_75](https://forum.inductiveautomation.com/u/shawn_75)\
**Post date:** [October 23, 2012, 9:45pm UTC](https://forum.inductiveautomation.com/t/camera-viewer-component/5300/5 "2012-10-23T21:45:46Z")

</div>

Well, that is just fantastic!

Thanks Greg!!!

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [October 25, 2012, 7:09pm UTC](https://forum.inductiveautomation.com/t/camera-viewer-component/5300/6 "2012-10-25T19:09:32Z")

</div>

Put this up at [https://gist.github.com/3954748](https://gist.github.com/3954748) so other people can edit it. I don’t have access to a Pelco camera at the moment, so if you get it working, I’m sure it would be a nice resource for others.

[gist]3954748[/gist]

---

<div class="post-metadata">

**Author:** ![ecujak](https://avatars.discourse-cdn.com/v4/letter/e/839c29/32.png) [@ecujak](https://forum.inductiveautomation.com/u/ecujak)\
**Post date:** [November 8, 2012, 5:21pm UTC](https://forum.inductiveautomation.com/t/camera-viewer-component/5300/7 "2012-11-08T17:21:12Z")

</div>

I really just wish I could view my pelco cameras from inside ignition.

Has anyone done this?
