Name That Exhaust Note, Episode 201

jQuery(window).load(function () {
jQuery.getScript(“http://admin.brightcove.com/js/BrightcoveExperiences_all.js”, function (data, textStatus, jqxhr) {
window.bcplugin = {};
bcplugin.brightcoveSetup = function() {
function isIOS() {
var types = ["iPad", "iPhone", "iPod"];
var numTypes = types.length;
var agent = navigator.userAgent;
for (var i = 0; i < numTypes; i++) {
if (agent.match(new RegExp(types[i], "i"))) {
return true;
}
}
return false;
}
if (isIOS()) {
var playerHtml = "";
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
jQuery("#bccontainer").html(playerHtml);
brightcove.createExperiences();
var player;
var video;
bcplugin.onTemplateReadyios = function(e) {
player = brightcove.api.getExperience("myExperience");
video = player.getModule(APIModules.VIDEO_PLAYER);
video.loadVideoByID(2710139825001);
}
} else {
var playerHtml = "";
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
// playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
playerHtml += '\n';
jQuery("#bccontainer").html(playerHtml);
brightcove.createExperiences();
var bcVideoPlayer;
var bcNavigation;
window.onTemplateLoaded = function(id) {console.log("ontemplateloaded - "+id)
var player = brightcove.getPlayer(id);
if (!bcVideoPlayer) {
bcVideoPlayer = player.getModule(APIModules.VIDEO_PLAYER);
} else {
var exp = player.getModule(APIModules.EXPERIENCE);
bcNavigation = exp.getElementByID("videoList");
bcNavigation.addEventListener("propertyChange", bcplugin.onVideoChanged);
}
//if(window.location.pathname.length > 1){bcVideoPlayer.play();}
}
bcplugin.onTemplateReady = function(event) {
jQuery(“#BrightcoveNavigation”).addClass(“BrightcoveExperience”);
brightcove.createExperiences();
var isIE8 = $.browser.msie && $.browser.version === 8;
if (isIE8) {
jQuery(‘#_containerBrightcoveNavigation, #_containerBrightcovePlayer’).css({
display: “block”,
width: “626px”
});
}
bcVideoPlayer.play();
}
bcplugin.onVideoChanged = function(event) {
if (event.property == “selectedItem”) {
var video = bcNavigation.getSelectedData();
if (bcVideoPlayer.getCurrentVideo().id != video.id) {
bcVideoPlayer.loadVideo(video.id);
}
}
}
}
}
bcplugin.brightcoveSetup();
});
});

About Car and Driver