');
if (host == 'youtube') {
var dataSetup = '{"techOrder": ["youtube"], "src": "' + extURL + '"}';
} else if (host == 'vimeo') {
var dataSetup = '{"techOrder": ["vimeo"], "src": "' + extURL + '"}';
}
$video.attr('data-setup', dataSetup);
$video.css('display', 'none');
$('body').append($video);
var player = videojs(id + '_video', {/* Options */}, function () {
// How about an event listener?
this.on('ended', function () {
//nothing
});
});
$('.' + id + ' .image-play-btn,.' + id + ' .play-btn').click(function () {
var $this = $('.' + id),
$overlay = $('