(function ($) {
var settings = '{"file_mime":"video/mp4","height":"360","width":"640","caption":"","androidhls":"true","autostart":"false","primary":"html5","title":"Amherst Video on Demand","playlist":[{"image":""}],"autoplay":false,"controlbar":"bottom","logo":{"hide":true},"abouttext":"Amherst College Multimedia","aboutlink":"https://www.amherst.edu/news/multimedia"}', settings_t;
if (settings.indexOf('#token#') !== -1) {
$.ajax({
url: 'https://www.amherst.edu/ajax/fetch_wowza_token',
async: false,
success: function (data) {
settings_t = settings.replace(/#token#/gi, data);
}
});
}
else {
settings_t = settings;
}
var p_settings = JSON.parse(settings_t);
jwplayer.key = "W6dMPFgnQ/VXqz3MObTZhFPjC8oyk8OOm6JEd5/Za8s=";
var state = 0;
jwplayer('media-0f68891a504fcee29f4bfa5bd7f8f581').setup(p_settings);
jwplayer('media-0f68891a504fcee29f4bfa5bd7f8f581').on('error', function () {
state = 1;
});
jwplayer('media-0f68891a504fcee29f4bfa5bd7f8f581').on('idle', function () {
if (state === 1) {
$('.jwtext').html('Error loading media:
Your browser cannot play this file or you do not have permission to view it.');
}
});
jwplayer('media-0f68891a504fcee29f4bfa5bd7f8f581').on('setupError', function () {
var message = $('#media-0f68891a504fcee29f4bfa5bd7f8f581 p');
message.html('Error playing video:
This video requires Flash to play.');
});
jwplayer('media-0f68891a504fcee29f4bfa5bd7f8f581').on('play', function () {
typeof dataLayer !== "undefined" && dataLayer.push({
mediaFile: '',
event: 'onMediaPlay',
position: jwplayer('media-0f68891a504fcee29f4bfa5bd7f8f581').getPosition()
});
});
jwplayer('media-0f68891a504fcee29f4bfa5bd7f8f581').on('complete', function () {
typeof dataLayer !== "undefined" && dataLayer.push({
mediaFile: '',
event: 'onMediaComplete'
});
});
/****jwplayer('media-0f68891a504fcee29f4bfa5bd7f8f581').on('ready', function () {
$('.jwplay button').each(function () {
$(this).attr('id', 'media-0f68891a504fcee29f4bfa5bd7f8f581-jwplay');
$(this).before('Play');
});
$('.jwprev button').each(function () {
$(this).attr('id', 'media-0f68891a504fcee29f4bfa5bd7f8f581-jwprev');
$(this).before('Previous');
});
$('.jwnext button').each(function () {
$(this).attr('id', 'media-0f68891a504fcee29f4bfa5bd7f8f581-jwnext');
$(this).before('Next');
});
});****/
})(jQuery);
Whether it’s a lecture by an Amherst alumnus who’s a top authority on Russia or a reading of poems by leading Russian poets, the Center for Russian Culture at Amherst College has stuck to its mission despite sometimes chilly official relations between Russian and the United States.
“Our philosophy is to promote better understanding and establish more informed relations between the two countries,” said Stanley Rabinowitz, professor of Russian at Amherst and director of the Center.
That tradition continued on a recent Monday, with a lecture by Andrew Kuchins ’81, Director and Senior Fellow of the Russia and Eurasia Program at the Center for Strategic and International Affairs in Washington, D.C.