(function () { var videocss = document.createElement('link'); videocss.type = 'text/css'; videocss.rel = "stylesheet"; videocss.href = 'https://stream.manchester.ac.uk/js/videojs/video-js.min.css'; document.getElementsByTagName("head")[0].appendChild(videocss); var videoscript = document.createElement('script'); videoscript.type = 'text/javascript'; videoscript.src = 'https://stream.manchester.ac.uk/js/videojs/video.js'; document.getElementsByTagName("head")[0].appendChild(videoscript); // Load jquery script var jscript = document.createElement("script"); jscript.type = 'text/javascript'; jscript.src = 'https://stream.manchester.ac.uk/js/jquery-1.11.2.min.js'; jscript.onload = function () { var jq = $.noConflict(); jq(document).ready(function () { var video = jq(''); video.addClass("video-js vjs-default-skin vjs-paused vjs-controls-enabled vjs-user-active"); video.attr('id', 'my-video31857'); video.appendTo('#player31857'); videojs("my-video31857", { autoplay: false, preload: true, width: "640", height: "385", controls: true, poster: "https://video.manchester.ac.uk/weblounge-previews/00000000-646f-f262-0000-015125166b48", playbackRates: [0.75, 1, 1.25, 1.5, 2], sources: [{ src: "https://video.manchester.ac.uk/weblounge-files/00000000-646f-f262-0000-015125166b48", type: "video/mp4", }] }); }); }; document.getElementsByTagName("head")[0].appendChild(jscript); document.getElementById('player31857').innerHTML = ''; })();