(function(e,t,n) {var r="attachEvent",i="addEventListener",s="DOMContentLoaded";if(!t[i])i=t[r]?(s="onreadystatechange")&&r:"";e[n]=function(r){/in/.test(t.readyState)?!i?setTimeout(function(){e[n](r)},9):t[i](s,r,false):r()}}) (window,document,"domReady");
domReady(function() {
var wowza_css=document.createElement('link');
wowza_css.rel='stylesheet';
wowza_css.href= "https://player.cloud.wowza.com/wowza_embed.css";
wowza_css.onload=loadVideoJSCSS;
document.getElementsByTagName('head')[0].appendChild(wowza_css);
function loadVideoJSCSS() {
var ls = document.createElement('link');
ls.rel='stylesheet';
ls.href= "https://player.cloud.wowza.com/js-lib/video-js-5/video-js.min.css";
ls.onload = loadPlayer;
document.getElementsByTagName('head')[0].appendChild(ls);
};
function loadPlayer() {
var playerText="
"
playerText+="
"
var doc = document.createElement('div');
doc.innerHTML = playerText;
var playerDiv = doc.firstChild;
w_ie('wowza_player', playerDiv);
function w_ie(id, div) {
document.getElementById(id).appendChild(div);
}
params = {
poster: "", // Posterframe URL
preload: "none",
playlist: [{
mediaid: "Igualdad RD Live Stream",
title: "Igualdad RD Live Stream",
file: "http://wowzaprodhd8-lh.akamaihd.net/i/b414e359_1@51715/master.m3u8",
sources: [],
live: true, // Live flag
countdown: false, // Countdown flag
countdown_timestamp: "", // UNIX timestamp of the countdown date (required to show the countdown)
live_done: false // Show the "Thanks for watching message"
}],
freecaster: {
player_root: "https://player.cloud.wowza.com/hosted/skj6hkfp/",
get_video_path: "wowza.json", // Will call player_root + get_video_path to get updated playlist item
noactions: true, // Disable internal views counter
template_livedate: "%a %e %b %Y @ %H:%M",
template_countdown: "%days day(s) %hours:%minutes:%seconds",
live_done_message: "Thanks for watching!",
live_done_image: null, // Optional image to append below the live_done message
watermark_path: "", // Path to SVG
watermark_href: "#", // Watermark link URL
watermark_position: "top-left"
}
};
var wpTechOrder=document.getElementById('wowza_player').getAttribute('techOrder')
if (wpTechOrder) {
params.techOrder=wpTechOrder.split(' ');
}
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://player.cloud.wowza.com/js-lib/fc-vjs-wrapper.js"
document.getElementsByTagName("head")[0].appendChild(script);
}
});