var wbq = wbq || []; wbq.push(function enrichPageWithVideoMeta() { require(['dispatcher'], function(dispatcher) { dispatcher.on('page:enrich', function(page) { // todo: get mpm to page meta page.video_creator_id = '3c72c715-ceed-4685-fb68-d9e5bf2c8ea5'; page.video_creator_name = "ellentube team"; page.video_creator_slug = 'ellentube-team'; page.video_duration = parseInt('338') || 0; page.video_published_at = '2016-03-23T20:00:00-07:00'; page.eref = getQueryStringParamByName('eref'); }); }); }); wbq.push(function loadKalturaEntry_0_0kc5mtwt() { require(['loaders/kaltura-kwidget', 'wb/kaltura-autoplay/1.0.2/kaltura-autoplay'], function(loader, kalturaAutoPlay) { // for lack of a better name, eref == EMBED_REF. The embed ref can tell us what was embedding // the content on another site. possible values: facebook, twitter, tmz, extra, etc. var embedRef = getQueryStringParamByName('eref'); var autoplay = getQueryStringParamByName('autoplay'); var partnerId = '1656501'; // ref ticket #296, then weep switch (embedRef) { case 'ellen': uiconfId = '26016882'; break; case 'facebook': uiconfId = '27358732'; break; case 'twitter': uiconfId = '27495902'; break; default: uiconfId = '33598571'; break; } loader.