<!DOCTYPE html>
<html>
<head>
<title></title>
<!-- Ignite UI for jQuery Required Combined CSS Files -->
<link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
<link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/structure/infragistics.css" rel="stylesheet" />
<style type="text/css">
#player1 {
z-index: 1000;
}
.ui-igslider .ui-igslider-bookmark-tooltip {
width: auto;
}
</style>
<script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
<!-- Ignite UI for jQuery Required Combined JavaScript Files -->
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.core.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.lob.js"></script>
</head>
<body>
<div style="margin-bottom: 10px;">
<span>
Always Play Commercials
</span>
<span style="padding-left: 20px;">
<select id="showCommercials" onchange="showCommercials();">
<option>True</option>
<option selected="selected">False</option>
</select>
</span>
<div style="clear: both;">
</div>
</div>
<div id="player1"></div>
<script>
$(function () {
$("#player1").igVideoPlayer({
sources: [
'https://dl.infragistics.com/pg/2011-1/web/shared/videoplayer/videos/Infragistics_Presentation_lowRes_1.h264.mp4',
'https://dl.infragistics.com/pg/2011-1/web/shared/videoplayer/videos/Infragistics_Presentation_lowRes_1.webmvp8.webm',
'https://dl.infragistics.com/pg/2011-1/web/shared/videoplayer/videos/Infragistics_Presentation_lowRes_1.theora.ogv'
],
width: 720,
height: 272,
posterUrl: '/images/samples/video-player/ig-pres.png',
fullscreen: false,
browserControls: false,
autohide: false,
autoplay: false,
autohideDelay: 2000,
title: 'Infragistics Presentation',
commercials: {
linkedCommercials: [
{
sources: [
"https://dl.infragistics.com/pg/2011-1/web/shared/videoplayer/videos/QuinceIntro_1.h264.mp4",
"https://dl.infragistics.com/pg/2011-1/web/shared/videoplayer/videos/QuinceIntro_1.webmvp8.webm",
"https://dl.infragistics.com/pg/2011-1/web/shared/videoplayer/videos/QuinceIntro_1.theora.ogv"],
startTime: 20,
title: 'Quince<br/>Presentation<br/>Part 1',
link: 'http://www.infragistics.com/'
},
{
sources: [
"https://dl.infragistics.com/pg/2011-1/web/shared/videoplayer/videos/QuinceIntro_Part3_1.h264.mp4",
"https://dl.infragistics.com/pg/2011-1/web/shared/videoplayer/videos/QuinceIntro_Part3_1.webmvp8.webm",
"https://dl.infragistics.com/pg/2011-1/web/shared/videoplayer/videos/QuinceIntro_Part3_1.theora.ogv"],
startTime: 100,
title: 'Quince<br/>Presentation<br/>Part 2',
link: 'https://www.infragistics.com/'
}],
adMessage: {
hideDelay: 13000
}
}
});
});
function showCommercials() {
var alwaysPlay = $("#showCommercials").val() === "False" ? false : true;
$("#player1").igVideoPlayer("option", "alwaysPlayCommercials", alwaysPlay);
}
</script>
</body>
</html>