Top  | Previous | Next

IP Camera Viewer

display_IPCamViewer

Description

The IP camera viewing component displays a video stream from a network camera directly in one of your windows. This can be a very powerful tool for allowing operators to view remote or inaccessible locations. Cameras can provide positive feedback about the state and position of machinery, weather, and other factors.

 

This component is capable of displaying two types of video:

MJPEG (a.k.a. Motion JPEG) is a streaming video protocol that compresses video frames using standard JPEG compression. Compression rates are quite good, requiring low network bandwidth utilization. Framerates depend greatly on the dimensions of the video, but typically range from 1-20 frames per second.
JPEG stills is not a true video protocol, but is rather the practice of continually refreshing an image that a camera is constantly overwriting. Its simplicity means that many cameras support it (usually along with another protocol). Frame rates are typically lower than MJPEG because a new connection must be opened for each frame.

Most network cameras on the market support one, if not both of these protocols. Even better, if you have an existing CCTV camera system, video server devices are available that CCTV camera inputs and provide MJPEG streams the network.

 

Finding the URL for your network camera's video stream is usually the only challenge in connecting this component. Most, if not all, network cameras have an internal web server, allowing viewers to use web browsers to view their video stream. If you go to that webpage, and look at the HTML source of the page, you should be able to find the URL of the MJPEG or JPEG still stream.

 

Some examples:

Axis 2100 (MJPEG): http://ip.address.here/axis-cgi/mjpg/video.cgi?resolution=640x480
Panasonic BL-C10A (MJPEG): http://ip.address.here/nphMotionJpeg?Resolution=640x480&Quality=Standard
StarDot Netcam (JPEG stills): http://ip.address.here/netcam.jpg

Properties

Appearance

Font

Font of text of this component

Scripting name

font

Data type

Font

Foreground Color

The foreground color of the component.

Scripting name

foreground

Data type

Color

Background Color

The background color of the component.

Scripting name

background

Data type

Color

Show Stats

If true, fps and Kbps statistical information will be overlaid on the video.

Scripting name

showStats

Data type

boolean

Behavior

Video Mode

Choose what type of video stream the URL points to.

Scripting name

mode

Data type

int

Values

0

MJPEG Stream

1

JPEG Stills

Camera Buffer Size

Set the size of the video buffer in bytes.

Scripting name

cameraBufferSize

Data type

int

Flags

expert

Refresh Rate

The rate (in ms) to poll the image if mode is 'JPEG Stills'

Scripting name

refreshRate

Data type

int

Use Authentication?

If true, the URL connection will try to authenticate using the given username and password.

Scripting name

useAuthentication

Data type

boolean

Username

The username to authenticate with.

Scripting name

username

Data type

String

Password

The password to authenticate with.

Scripting name

password

Data type

String

URL

The HTTP URL of the video stream to display

Scripting name

url

Data type

String

User-Agent

If non-empty, the HTTP User-Agent to spoof.

Scripting name

userAgent

Data type

String

Flags

expert

Scale Video

Scale the video to the size of the viewer component. Warning: CPU-intensive.

Scripting name

scaleVideo

Data type

boolean

Flags

expert

Scale Mode

The scaling performance hint to use.

Scripting name

scaleMode

Data type

int

Flags

expert

Values

1

Default

2

Fast

4

Smooth

16

Area Averaging

8

Replicate

Connection Retries

The number of times to attempt to connect to the stream.

Scripting name

connectRetries

Data type

int

Retry Delay

The delay (in ms) to wait between connection attempts

Scripting name

retryDelay

Data type

int

Common

Name

The name of this component.

Scripting name

name

Data type

String

Flags

bindable

Visible

If disabled, the component will be hidden.

Scripting name

visible

Data type

boolean

Flags

bindable

Border

The border surrounding this component. NOTE that the border is unaffected by rotation.

Scripting name

border

Data type

Border

Mouseover Text

The text that is displayed in the tooltip which pops up on mouseover of this component.

Scripting name

toolTipText

Data type

String

Cursor

The mouse cursor to use when hovering over this component.

Scripting name

cursorCode

Data type

int

Values

0

Default

1

Crosshair

2

Text

3

Wait

12

Hand

13

Move

4

SW Resize

5

SE Resize

6

NW Resize

7

NE Resize

8

N Resize

9

S Resize

10

W Resize

11

E Resize

Scripting

Events

The following event sets are fired by this component. See Component Event Handlers to learn more.

mouse
mouseMotion
propertyChange

 

Scripting Functions

This component has no special scripting functions.