This repository has been archived on 2023-12-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2020-11-02 15:46:52 +01:00

80 lines
2.4 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style type="text/css">
html, body, #myExperience {
height: 100%;
width: 100%;
}
* {
padding: 0;
margin: 0
}
body, object {
background-color: #000;
}
</style>
</head>
<!-- Start of Brightcove Player -->
<div style="display:none">
</div>
<!--
By use of this code snippet, I agree to the Brightcove Publisher T and C
found at https://accounts.brightcove.com/en/terms-and-conditions/.
-->
<script type="text/javascript">
var player, APIModules, videoPlayer, experienceModule;
window.addEventListener("resize", experienceResize);
function onTemplateReady(evt) {
videoPlayer = player.getModule(APIModules.VIDEO_PLAYER);
experienceModule = player.getModule(APIModules.EXPERIENCE);
experienceResize();
}
function experienceResize() {
var width = window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
var height = window.innerHeight
|| document.documentElement.clientHeight
|| document.body.clientHeight;
if (experienceModule !== undefined) {
experienceModule.setSize(width, height);
}
}
function parseGet() {
var couples = window.location.search.substr(1).split('&');
var res = new Array();
var couple = new Array();
for (var i = 0; i < couples.length; i++) {
couple = couples[i].split('=');
res[couple[0]] = couple[1];
}
return res;
}
var _get = parseGet();
document.write('<script type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"><' + '/script>');
document.write('<object id="myExperience" class="BrightcoveExperience">')
document.write('<param name="bgcolor" value="#000000"/>')
document.write('<param name="width" value="100%"/>')
document.write('<param name="height" value="100%"/>')
document.write('<param name="playerID" value="' + _get.pid + '" />')
document.write('<param name="playerKey" value="' + _get.pk + '" />')
document.write('<param name="isVid" value="true"/>')
document.write('<param name="isUI" value="true"/>')
document.write('<param name="dynamicStreaming" value="true"/>');
document.write('<param name="templateReadyHandler" value="onTemplateReady" />');
document.write('<param name="@videoPlayer" value="' + _get.vid + '" />');
document.write('</object>');
</script>