You can also view
You are viewing documentation for version 11. This is the most recent stable release!

Embeding a <VideoWall>

Below are instructions on how to embed your VideoWall into a webpage.

Embedding with HTML (static)?
Embeding with JS (dynamic)?

Embedding a <VideoWall> with HTML

First, make sure you have the cameratag.js and cameratag.css files included in the header of your site. The following <script> tag should appear at the bottom of your page's <head> tag

<script src='//cameratag.com/v11/js/cameratag.min.js' type='text/javascript'></script>
<link rel='stylesheet' href='//cameratag.com/static/11/cameratag.css'>
Next, create a new <VideoWall> somehwere in your <body> like the one below.
<VideoWall id='[INSTANCE_ID]' data-app-id='[YOUR_APP_UUID]'></VideoWall>
You will need to replace the values denoted by brackets in the above example.

You will replace [YOUR_APP_UUID] with the UUID of the App you would like to use with this <VideoWall>. This can be found under the name of your App on any of the App pages on CameraTag.

You will replace [INSTANCE_ID] with a unique id for that instance of the <VideoWall>. This will allow you specifically refernce that <VideoWall> on the page.

Pleas note: Each VideoWall on a page MUST HAVE A UNIQUE INSTANCE ID however multiple VideoWalls on a page may be attached to the same App.

Dynamically adding a <VideoWall> to the DOM?

If you want to embed at a VideoWall after the page has loaded simply add the <VideoWall> element to the DOM as described above then call
CameraTag.setup();
This will rescan the DOM for any uninitialized <VideoWall> tags.