Daily Update 11/26 with Courtney Citro

Courtney Citro

//Change the div id to match the name of the file without the “.flv” !!

videotoPlay(‘1126_daily_update_Courtney_Citro1.flv’);//Paste video filename between the quotes

function videotoPlay(file){

var video = file;

var divId = (video.split(“.”,1))[0];

var playlist = [{file: ‘rtmp://flashmedia.kent.edu/fms-jmc/kentWired/’ + video }];

var ad = “TechHelpAd_11152012_600.flv”; //Paste pre-roll ad filename between the quotes

var adPlayed = false;

jwplayer(divId).setup({

file: “rtmp://flashmedia.kent.edu/fms-jmc/kentWired/” + ad,

image: ‘http://www.staterinteractive.com/photos/spring11/0131tv2.jpg’,

captions: [{ file: “http://studio.jmc.kent.edu/jwplayer6/Ad.vtt”, label: “English” }],

width: ‘665’, height: ‘450’, events: {

onPlay: function(){if (adPlayed == false){jwplayer(divId).setControls(false);}},

onComplete: function(){adPlayed = true;

jwplayer(divId).load(playlist).onPlaylist(jwplayer(divId).playlistItem(0)).setControls(true);}}});

}

Contact Courtney Citro at [email protected].