var jwp_height = 562;
jQuery(document).ready(function(){
jQuery('#my-video, #my-video_wrapper').bind('resize', function(){
jwplayer('my-video').resize('100%', jwp_calc_height());
});
jwplayer('my-video').setup({
sources: [{
file: "https://5745d0ab31aad.streamlock.net:443/ukmtvhttp/_definst_/smil:ukmno/videos/2021/6086/innslag//2021_6086_innslag_190442_cron_20260.smil/playlist.m3u8"
},{
file: "https://5745d0ab31aad.streamlock.net:443/ukmtvhttp/_definst_/smil:ukmno/videos/2021/6086/innslag//2021_6086_innslag_190442_cron_20260.smil/manifest.mpd"
},{
file: " https://video.ukm.no:443/ukmno/videos/2021/6086/innslag//2021_6086_innslag_190442_cron_20260_720p.mp4"
}],
title: 'Spill av',
image: 'https://videoserver.ukm.no/ukmno/videos/2021/6086/innslag/2021_6086_innslag_190442_cron_20260.jpg',
width: '100%',
height: jwp_calc_height(),
startparam: "starttime",
logo: {
file: 'https://embed.ukm.no/logo/UKMtv_hvit_'+jwp_calc_logo()+'.png',
link: 'https://tv.ukm.no/',
linktarget: '_blank'
}
});
});
function jwp_calc_height() {
return Math.floor( ( parseInt(jQuery('#my-video').css('width')) / 16 ) * 9);
}
function jwp_calc_logo() {
width = parseInt(jQuery('#my-video').css('width'));
if(width > 600) {
return '150';
}
if(width > 250) {
return '100';
}
return '50';
}