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 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();
});
});
Source: FULL ARTICLE at Car & Driver

Add to favorites 