This article assumes you have already read and understood our article on How do I use my embed code?.

A similar process is required for embedding multiple videos, you will have a script that you can add to your webpage along with multiple <div>s. The script can be added to the <head> or <body> of the document.

First, you need to create a series of <div>s with different ids. For example, if we are embedding three different videos, we could set up the following:

<div id="video1"></div>
<div id="video2"></div>
<div id="video3"></div>
These can then be placed in the HTML of your webpage in the section where the videos are required.
Then, you need to adapt the embed script to accommodate the three <div>s by adding each individual video as an object within the media array. A single object denotes a video. Your secure code is a compulsory value should be added to the embed script. An example of this can be seen below.

<script type="text/javascript" src="http://platform.asset.tv/embed.js"></script>
<script>
var player = new Player({
secureCode: '###########',
media: [
{
containerId: 'video1',
videoId: ######
},
{
containerId: 'video2',
videoId: ######
},
{
containerId: 'video3',
videoId: ######
}
]
}); </script>