Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/hopeinstoughton_www/wp-content/plugins/video-archive/ |
Upload File : |
if (typeof jwplayer == "undefined") {
jwplayer = function (a) {
if (jwplayer.api) {
return jwplayer.api.selectPlayer(a)
}
};
jwplayer.version = "6.0.2813";
jwplayer.vid = document.createElement("video");
jwplayer.audio = document.createElement("audio");
jwplayer.source = document.createElement("source");
(function (d) {
var j = document,
g = window,
b = navigator,
h = "undefined",
f = "string",
c = "object";
var k = d.utils = function () {};
k.exists = function (m) {
switch (typeof (m)) {
case f:
return (m.length > 0);
break;
case c:
return (m !== null);
case h:
return false
}
return true
};
k.styleDimension = function (m) {
return m + (m.toString().indexOf("%") > 0 ? "" : "px")
};
k.getAbsolutePath = function (s, r) {
if (!k.exists(r)) {
r = j.location.href
}
if (!k.exists(s)) {
return undefined
}
if (a(s)) {
return s
}
var t = r.substring(0, r.indexOf("://") + 3);
var q = r.substring(t.length, r.indexOf("/", t.length + 1));
var n;
if (s.indexOf("/") === 0) {
n = s.split("/")
} else {
var o = r.split("?")[0];
o = o.substring(t.length + q.length + 1, o.lastIndexOf("/"));
n = o.split("/").concat(s.split("/"))
}
var m = [];
for (var p = 0; p < n.length; p++) {
if (!n[p] || !k.exists(n[p]) || n[p] == ".") {
continue
} else {
if (n[p] == "..") {
m.pop()
} else {
m.push(n[p])
}
}
}
return t + q + "/" + m.join("/")
};
function a(n) {
if (!k.exists(n)) {
return
}
var o = n.indexOf("://");
var m = n.indexOf("?");
return (o > 0 && (m < 0 || (m > o)))
}
k.extend = function () {
var m = k.extend["arguments"];
if (m.length > 1) {
for (var o = 1; o < m.length; o++) {
for (var n in m[o]) {
try {
if (k.exists(m[o][n])) {
m[0][n] = m[o][n]
}
} catch (p) {}
}
}
return m[0]
}
return null
};
k.log = function (n, m) {
if (typeof console != h && typeof console.log != h) {
if (m) {
console.log(n, m)
} else {
console.log(n)
}
}
};
var e = k.userAgentMatch = function (n) {
var m = b.userAgent.toLowerCase();
return (m.match(n) !== null)
};
function l(m) {
return function () {
return e(m)
}
}
k.isIE = l(/msie/i);
k.isFF = l(/firefox/i);
k.isIOS = l(/iP(hone|ad|od)/i);
k.isIPod = l(/iP(hone|od)/i);
k.isIPad = l(/iPad/i);
k.isAndroid = function (m) {
if (m) {
return e(new RegExp("android.*" + m, "i"))
} else {
return e(/android/i)
}
};
k.isMobile = function () {
return k.isIOS() || k.isAndroid()
};
k.saveCookie = function (m, n) {
j.cookie = "jwplayer." + m + "=" + n + "; path=/"
};
k.getCookies = function () {
var p = {};
var o = j.cookie.split("; ");
for (var n = 0; n < o.length; n++) {
var m = o[n].split("=");
if (m[0].indexOf("jwplayer.") == 0) {
p[m[0].substring(9, m[0].length)] = m[1]
}
}
return p
};
k.typeOf = function (n) {
var m = typeof n;
if (m === "object") {
if (!n) {
return "null"
}
return (n instanceof Array) ? "array" : m
} else {
return m
}
};
k.translateEventResponse = function (o, m) {
var q = k.extend({}, m);
if (o == d.events.JWPLAYER_FULLSCREEN && !q.fullscreen) {
q.fullscreen = q.message == "true" ? true : false;
delete q.message
} else {
if (typeof q.data == c) {
q = k.extend(q, q.data);
delete q.data
} else {
if (typeof q.metadata == c) {
k.deepReplaceKeyName(q.metadata, ["__dot__", "__spc__", "__dsh__"], [".", " ", "-"])
}
}
}
var n = ["position", "duration", "offset"];
for (var p in n) {
if (q[n[p]]) {
q[n[p]] = Math.round(q[n[p]] * 1000) / 1000
}
}
return q
};
k.flashVersion = function () {
if (k.isAndroid()) {
return 0
}
var m = b.plugins,
n;
if (m != h) {
n = m["Shockwave Flash"];
if (n) {
return parseInt(n.description.replace(/\D+(\d+)\..*/, "$1"))
}
}
if (typeof g.ActiveXObject != h) {
try {
n = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
if (n) {
return parseInt(n.GetVariable("$version").split(" ")[1].split(",")[0])
}
} catch (o) {}
}
return 0
};
k.getScriptPath = function (o) {
var m = j.getElementsByTagName("script");
for (var n = 0; n < m.length; n++) {
var p = m[n].src;
if (p && p.indexOf(o) >= 0) {
return p.substr(0, p.indexOf(o))
}
}
return ""
};
k.deepReplaceKeyName = function (t, o, m) {
switch (d.utils.typeOf(t)) {
case "array":
for (var q = 0; q < t.length; q++) {
t[q] = d.utils.deepReplaceKeyName(t[q], o, m)
}
break;
case c:
for (var p in t) {
var s, r;
if (o instanceof Array && m instanceof Array) {
if (o.length != m.length) {
continue
} else {
s = o;
r = m
}
} else {
s = [o];
r = [m]
}
var n = p;
for (var q = 0; q < s.length; q++) {
n = n.replace(new RegExp(o[q], "g"), m[q])
}
t[n] = d.utils.deepReplaceKeyName(t[p], o, m);
if (p != n) {
delete t[p]
}
}
break
}
return t
};
var i = k.pluginPathType = {
ABSOLUTE: 0,
RELATIVE: 1,
CDN: 2
};
k.getPluginPathType = function (n) {
if (typeof n != f) {
return
}
n = n.split("?")[0];
var o = n.indexOf("://");
if (o > 0) {
return i.ABSOLUTE
}
var m = n.indexOf("/");
var p = k.extension(n);
if (o < 0 && m < 0 && (!p || !isNaN(p))) {
return i.CDN
}
return i.RELATIVE
};
k.getPluginName = function (m) {
return m.replace(/^(.*\/)?([^-]*)-?.*\.(swf|js)$/, "$2")
};
k.getPluginVersion = function (m) {
return m.replace(/[^-]*-?([^\.]*).*$/, "$1")
};
k.isYouTube = function (m) {
return (m.indexOf("youtube.com") > -1 || m.indexOf("youtu.be") > -1)
};
k.isRtmp = function (m, n) {
return (m.indexOf("rtmp") == 0 || n == "rtmp")
};
k.foreach = function (o, n) {
for (var m in o) {
if (o.hasOwnProperty(m)) {
n(m)
}
}
};
k.isHTTPS = function () {
return (g.location.href.indexOf("https") == 0)
}
})(jwplayer);
(function (o) {
var d = "video/",
i = "audio/",
g = "image",
j = "mp4",
c = "webm",
n = "ogg",
b = "aac",
k = "mp3",
l = "vorbis",
m = {
mp4: d + j,
vorbis: i + n,
ogg: d + n,
webm: d + c,
aac: i + j,
mp3: i + k,
hls: "application/vnd.apple.mpegurl"
}, h = {
mp4: m[j],
f4v: m[j],
m4v: m[j],
mov: m[j],
m4a: m[b],
f4a: m[b],
aac: m[b],
mp3: m[k],
ogv: m[n],
ogg: m[l],
oga: m[l],
webm: m[c],
m3u8: m.hls
}, d = "video",
f = {
flv: d,
f4v: d,
mov: d,
m4a: d,
m4v: d,
mp4: d,
aac: d,
mp3: "sound",
smil: "rtmp",
m3u8: "hls"
};
var a = o.extensionmap = {};
for (var e in h) {
a[e] = {
html5: h[e]
}
}
for (e in f) {
if (!a[e]) {
a[e] = {}
}
a[e].flash = f[e]
}
a.types = m;
a.mimeType = function (q) {
for (var p in m) {
if (m[p] == q) {
return p
}
}
};
a.extType = function (p) {
return a.mimeType(h[p])
}
})(jwplayer.utils);
(function (b) {
var a = b.loaderstatus = {
NEW: 0,
LOADING: 1,
ERROR: 2,
COMPLETE: 3
}, c = document;
b.scriptloader = function (e) {
var f = a.NEW,
h = jwplayer.events,
d = new h.eventdispatcher();
b.extend(this, d);
this.load = function () {
var k = b.scriptloader.loaders[e];
if (k && (k.getStatus() == a.NEW || k.getStatus() == a.LOADING)) {
k.addEventListener(h.ERROR, g);
k.addEventListener(h.COMPLETE, i);
return
}
b.scriptloader.loaders[e] = this;
if (f == a.NEW) {
f = a.LOADING;
var j = c.createElement("script");
if (j.addEventListener) {
j.onload = i;
j.onerror = g
} else {
if (j.readyState) {
j.onreadystatechange = function () {
if (j.readyState == "loaded" || j.readyState == "complete") {
i()
}
}
}
}
c.getElementsByTagName("head")[0].appendChild(j);
j.src = e
}
};
function g(j) {
f = a.ERROR;
d.sendEvent(h.ERROR)
}
function i(j) {
f = a.COMPLETE;
d.sendEvent(h.COMPLETE)
}
this.getStatus = function () {
return f
}
};
b.scriptloader.loaders = {}
})(jwplayer.utils);
(function (a) {
a.trim = function (b) {
return b.replace(/^\s*/, "").replace(/\s*$/, "")
};
a.pad = function (c, d, b) {
if (!b) {
b = "0"
}
while (c.length < d) {
c = b + c
}
return c
};
a.xmlAttribute = function (b, c) {
for (var d = 0; d < b.attributes.length; d++) {
if (b.attributes[d].name && b.attributes[d].name.toLowerCase() == c.toLowerCase()) {
return b.attributes[d].value.toString()
}
}
return ""
};
a.jsonToString = function (f) {
var h = h || {};
if (h && h.stringify) {
return h.stringify(f)
}
var c = typeof (f);
if (c != "object" || f === null) {
if (c == "string") {
f = '"' + f.replace(/"/g, '\\"') + '"'
} else {
return String(f)
}
} else {
var g = [],
b = (f && f.constructor == Array);
for (var d in f) {
var e = f[d];
switch (typeof (e)) {
case "string":
e = '"' + e.replace(/"/g, '\\"') + '"';
break;
case "object":
if (a.exists(e)) {
e = a.jsonToString(e)
}
break
}
if (b) {
if (typeof (e) != "function") {
g.push(String(e))
}
} else {
if (typeof (e) != "function") {
g.push('"' + d + '":' + String(e))
}
}
}
if (b) {
return "[" + String(g) + "]"
} else {
return "{" + String(g) + "}"
}
}
};
a.extension = function (b) {
if (!b || b.substr(0, 4) == "rtmp") {
return ""
}
b = b.substring(b.lastIndexOf("/") + 1, b.length).split("?")[0].split("#")[0];
if (b.lastIndexOf(".") > -1) {
return b.substr(b.lastIndexOf(".") + 1, b.length).toLowerCase()
}
};
a.stringToColor = function (b) {
b = b.replace(/(#|0x)?([0-9A-F]{3,6})$/gi, "$2");
if (b.length == 3) {
b = b.charAt(0) + b.charAt(0) + b.charAt(1) + b.charAt(1) + b.charAt(2) + b.charAt(2)
}
return parseInt(b, 16)
}
})(jwplayer.utils);
(function (a) {
var c = "invalid",
b = "36QXq4W@GSBV^teR";
a.key = function (h) {
var g, i, e;
function f(j) {
if (!a.exists(j)) {
j = ""
}
try {
j = d(j);
var l = j.split("/");
g = l[0];
if (!g) {
g = "free"
} else {
if (a.key.valid.indexOf(g) < 0) {
g = c
}
}
i = l[1];
if (l[2] && parseInt(l[2]) > 0) {
e = new Date();
e.setTime(String(l[2]))
}
} catch (k) {
g = c
}
}
function d(j) {
return a.tea.decrypt(j, b)
}
this.edition = function () {
if (e && e.getTime() < (new Date()).getTime()) {
return c
}
return g
};
this.token = function () {
return i
};
f(h)
};
a.key.valid = ["free", "pro"]
})(jwplayer.utils);
(function (b) {
var c = b.tea = {};
c.encrypt = function (h, w) {
if (h.length == 0) {
return ("")
}
var x = c.strToLongs(a.encode(h));
if (x.length <= 1) {
x[1] = 0
}
var l = c.strToLongs(a.encode(w).slice(0, 16)),
i = x.length,
r = x[i - 1],
s = x[0],
u = 2654435769,
t, o, f = Math.floor(6 + 52 / i),
m = 0;
while (f-- > 0) {
m += u;
o = m >>> 2 & 3;
for (var g = 0; g < i; g++) {
s = x[(g + 1) % i];
t = (r >>> 5 ^ s << 2) + (s >>> 3 ^ r << 4) ^ (m ^ s) + (l[g & 3 ^ o] ^ r);
r = x[g] += t
}
}
var j = c.longsToStr(x);
return d.encode(j)
};
c.decrypt = function (j, w) {
if (j.length == 0) {
return ("")
}
var x = c.strToLongs(d.decode(j)),
l = c.strToLongs(a.encode(w).slice(0, 16)),
i = x.length,
r = x[i - 1],
s = x[0],
u = 2654435769,
t, o, f = Math.floor(6 + 52 / i),
m = f * u;
while (m != 0) {
o = m >>> 2 & 3;
for (var h = i - 1; h >= 0; h--) {
r = x[h > 0 ? h - 1 : i - 1];
t = (r >>> 5 ^ s << 2) + (s >>> 3 ^ r << 4) ^ (m ^ s) + (l[h & 3 ^ o] ^ r);
s = x[h] -= t
}
m -= u
}
var g = c.longsToStr(x);
g = g.replace(/\0+$/, "");
return a.decode(g)
};
c.strToLongs = function (g) {
var e = new Array(Math.ceil(g.length / 4));
for (var f = 0; f < e.length; f++) {
e[f] = g.charCodeAt(f * 4) + (g.charCodeAt(f * 4 + 1) << 8) + (g.charCodeAt(f * 4 + 2) << 16) + (g.charCodeAt(f * 4 + 3) << 24)
}
return e
};
c.longsToStr = function (f) {
var e = new Array(f.length);
for (var g = 0; g < f.length; g++) {
e[g] = String.fromCharCode(f[g] & 255, f[g] >>> 8 & 255, f[g] >>> 16 & 255, f[g] >>> 24 & 255)
}
return e.join("")
};
var d = {};
d.code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
d.encode = function (q, s) {
s = (typeof s == "undefined") ? false : s;
var j, g, f, u, r, n, m, k, l = [],
i = "",
p, t, o;
var h = d.code;
t = s ? a.encode(q) : q;
p = t.length % 3;
if (p > 0) {
while (p++ < 3) {
i += "=";
t += "\0"
}
}
for (p = 0; p < t.length; p += 3) {
j = t.charCodeAt(p);
g = t.charCodeAt(p + 1);
f = t.charCodeAt(p + 2);
u = j << 16 | g << 8 | f;
r = u >> 18 & 63;
n = u >> 12 & 63;
m = u >> 6 & 63;
k = u & 63;
l[p / 3] = h.charAt(r) + h.charAt(n) + h.charAt(m) + h.charAt(k)
}
o = l.join("");
o = o.slice(0, o.length - i.length) + i;
return o
};
d.decode = function (p, g) {
g = (typeof g == "undefined") ? false : g;
var i, f, e, q, m, k, j, s, l = [],
r, o;
var h = d.code;
o = g ? a.decode(p) : p;
for (var n = 0; n < o.length; n += 4) {
q = h.indexOf(o.charAt(n));
m = h.indexOf(o.charAt(n + 1));
k = h.indexOf(o.charAt(n + 2));
j = h.indexOf(o.charAt(n + 3));
s = q << 18 | m << 12 | k << 6 | j;
i = s >>> 16 & 255;
f = s >>> 8 & 255;
e = s & 255;
l[n / 4] = String.fromCharCode(i, f, e);
if (j == 64) {
l[n / 4] = String.fromCharCode(i, f)
}
if (k == 64) {
l[n / 4] = String.fromCharCode(i)
}
}
r = l.join("");
return g ? a.decode(r) : r
};
var a = {};
a.encode = function (e) {
var f = e.replace(/[\u0080-\u07ff]/g, function (h) {
var g = h.charCodeAt(0);
return String.fromCharCode(192 | g >> 6, 128 | g & 63)
});
f = f.replace(/[\u0800-\uffff]/g, function (h) {
var g = h.charCodeAt(0);
return String.fromCharCode(224 | g >> 12, 128 | g >> 6 & 63, 128 | g & 63)
});
return f
};
a.decode = function (f) {
var e = f.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g, function (h) {
var g = ((h.charCodeAt(0) & 15) << 12) | ((h.charCodeAt(1) & 63) << 6) | (h.charCodeAt(2) & 63);
return String.fromCharCode(g)
});
e = e.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g, function (h) {
var g = (h.charCodeAt(0) & 31) << 6 | h.charCodeAt(1) & 63;
return String.fromCharCode(g)
});
return e
}
})(jwplayer.utils);
(function (a) {
a.events = {
COMPLETE: "COMPLETE",
ERROR: "ERROR",
API_READY: "jwplayerAPIReady",
JWPLAYER_READY: "jwplayerReady",
JWPLAYER_FULLSCREEN: "jwplayerFullscreen",
JWPLAYER_RESIZE: "jwplayerResize",
JWPLAYER_ERROR: "jwplayerError",
JWPLAYER_MEDIA_BEFOREPLAY: "jwplayerMediaBeforePlay",
JWPLAYER_MEDIA_BEFORECOMPLETE: "jwplayerMediaBeforeComplete",
JWPLAYER_COMPONENT_SHOW: "jwplayerComponentShow",
JWPLAYER_COMPONENT_HIDE: "jwplayerComponentHide",
JWPLAYER_MEDIA_BUFFER: "jwplayerMediaBuffer",
JWPLAYER_MEDIA_BUFFER_FULL: "jwplayerMediaBufferFull",
JWPLAYER_MEDIA_ERROR: "jwplayerMediaError",
JWPLAYER_MEDIA_LOADED: "jwplayerMediaLoaded",
JWPLAYER_MEDIA_COMPLETE: "jwplayerMediaComplete",
JWPLAYER_MEDIA_SEEK: "jwplayerMediaSeek",
JWPLAYER_MEDIA_TIME: "jwplayerMediaTime",
JWPLAYER_MEDIA_VOLUME: "jwplayerMediaVolume",
JWPLAYER_MEDIA_META: "jwplayerMediaMeta",
JWPLAYER_MEDIA_MUTE: "jwplayerMediaMute",
JWPLAYER_MEDIA_LEVELS: "jwplayerMediaLevels",
JWPLAYER_MEDIA_LEVEL_CHANGED: "jwplayerMediaLevelChanged",
JWPLAYER_CAPTIONS_CHANGED: "jwplayerCaptionsChanged",
JWPLAYER_CAPTIONS_LIST: "jwplayerCaptionsList",
JWPLAYER_PLAYER_STATE: "jwplayerPlayerState",
state: {
BUFFERING: "BUFFERING",
IDLE: "IDLE",
PAUSED: "PAUSED",
PLAYING: "PLAYING"
},
JWPLAYER_PLAYLIST_LOADED: "jwplayerPlaylistLoaded",
JWPLAYER_PLAYLIST_ITEM: "jwplayerPlaylistItem",
JWPLAYER_PLAYLIST_COMPLETE: "jwplayerPlaylistComplete",
JWPLAYER_DISPLAY_CLICK: "jwplayerViewClick",
JWPLAYER_CONTROLS: "jwplayerViewControls",
JWPLAYER_INSTREAM_CLICK: "jwplayerInstreamClicked",
JWPLAYER_INSTREAM_DESTROYED: "jwplayerInstreamDestroyed"
}
})(jwplayer);
(function (a) {
var b = jwplayer.utils;
a.eventdispatcher = function (h, c) {
var e = h,
g = c,
f, d;
this.resetEventListeners = function () {
f = {};
d = []
};
this.resetEventListeners();
this.addEventListener = function (i, l, k) {
try {
if (!b.exists(f[i])) {
f[i] = []
}
if (b.typeOf(l) == "string") {
l = (new Function("return " + l))()
}
f[i].push({
listener: l,
count: k
})
} catch (j) {
b.log("error", j)
}
return false
};
this.removeEventListener = function (j, l) {
if (!f[j]) {
return
}
try {
for (var i = 0; i < f[j].length; i++) {
if (f[j][i].listener.toString() == l.toString()) {
f[j].splice(i, 1);
break
}
}
} catch (k) {
b.log("error", k)
}
return false
};
this.addGlobalListener = function (k, j) {
try {
if (b.typeOf(k) == "string") {
k = (new Function("return " + k))()
}
d.push({
listener: k,
count: j
})
} catch (i) {
b.log("error", i)
}
return false
};
this.removeGlobalListener = function (k) {
if (!k) {
return
}
try {
for (var i = 0; i < d.length; i++) {
if (d[i].listener.toString() == k.toString()) {
d.splice(i, 1);
break
}
}
} catch (j) {
b.log("error", j)
}
return false
};
this.sendEvent = function (k, m) {
if (!b.exists(m)) {
m = {}
}
b.extend(m, {
id: e,
version: jwplayer.version,
type: k
});
if (g) {
b.log(k, m)
}
if (b.typeOf(f[k]) != "undefined") {
for (var j = 0; j < f[k].length; j++) {
try {
f[k][j].listener(m)
} catch (l) {
b.log("There was an error while handling a listener: " + l.toString(), f[k][j].listener)
}
if (f[k][j]) {
if (f[k][j].count === 1) {
delete f[k][j]
} else {
if (f[k][j].count > 0) {
f[k][j].count = f[k][j].count - 1
}
}
}
}
}
var i;
for (i = 0; i < d.length; i++) {
try {
d[i].listener(m)
} catch (l) {
b.log("There was an error while handling a listener: " + l.toString(), d[i].listener)
}
if (d[i]) {
if (d[i].count === 1) {
delete d[i]
} else {
if (d[i].count > 0) {
d[i].count = d[i].count - 1
}
}
}
}
}
}
})(jwplayer.events);
(function (a) {
var c = {}, b = {};
a.plugins = function () {};
a.plugins.loadPlugins = function (e, d) {
b[e] = new a.plugins.pluginloader(new a.plugins.model(c), d);
return b[e]
};
a.plugins.registerPlugin = function (h, g, f, e) {
var d = a.utils.getPluginName(h);
if (!c[d]) {
c[d] = new a.plugins.plugin(h)
}
c[d].registerPlugin(h, g, f, e)
}
})(jwplayer);
(function (a) {
a.plugins.model = function (b) {
this.addPlugin = function (c) {
var d = a.utils.getPluginName(c);
if (!b[d]) {
b[d] = new a.plugins.plugin(c)
}
return b[d]
};
this.getPlugins = function () {
return b
}
}
})(jwplayer);
(function (b) {
var a = jwplayer.utils,
c = jwplayer.events,
d = "undefined";
b.pluginmodes = {
FLASH: 0,
JAVASCRIPT: 1,
HYBRID: 2
};
b.plugin = function (e) {
var l = a.loaderstatus.NEW,
m, k, f, n;
var g = new c.eventdispatcher();
a.extend(this, g);
function h() {
switch (a.getPluginPathType(e)) {
case a.pluginPathType.ABSOLUTE:
return e;
case a.pluginPathType.RELATIVE:
return a.getAbsolutePath(e, window.location.href)
}
}
function j(o) {
n = setTimeout(function () {
l = a.loaderstatus.COMPLETE;
g.sendEvent(c.COMPLETE)
}, 1000)
}
function i(o) {
l = a.loaderstatus.ERROR;
g.sendEvent(c.ERROR)
}
this.load = function () {
if (l == a.loaderstatus.NEW) {
if (e.lastIndexOf(".swf") > 0) {
m = e;
l = a.loaderstatus.COMPLETE;
g.sendEvent(c.COMPLETE);
return
} else {
if (a.getPluginPathType(e) == a.pluginPathType.CDN) {
l = a.loaderstatus.COMPLETE;
g.sendEvent(c.COMPLETE);
return
}
}
l = a.loaderstatus.LOADING;
var o = new a.scriptloader(h());
o.addEventListener(c.COMPLETE, j);
o.addEventListener(c.ERROR, i);
o.load()
}
};
this.registerPlugin = function (r, q, p, o) {
if (n) {
clearTimeout(n);
n = undefined
}
f = q;
if (p && o) {
m = o;
k = p
} else {
if (typeof p == "string") {
m = p
} else {
if (typeof p == "function") {
k = p
} else {
if (!p && !o) {
m = r
}
}
}
}
l = a.loaderstatus.COMPLETE;
g.sendEvent(c.COMPLETE)
};
this.getStatus = function () {
return l
};
this.getPluginName = function () {
return a.getPluginName(e)
};
this.getFlashPath = function () {
if (m) {
switch (a.getPluginPathType(m)) {
case a.pluginPathType.ABSOLUTE:
return m;
case a.pluginPathType.RELATIVE:
if (e.lastIndexOf(".swf") > 0) {
return a.getAbsolutePath(m, window.location.href)
}
return a.getAbsolutePath(m, h())
}
}
return null
};
this.getJS = function () {
return k
};
this.getTarget = function () {
return f
};
this.getPluginmode = function () {
if (typeof m != d && typeof k != d) {
return b.pluginmodes.HYBRID
} else {
if (typeof m != d) {
return b.pluginmodes.FLASH
} else {
if (typeof k != d) {
return b.pluginmodes.JAVASCRIPT
}
}
}
};
this.getNewInstance = function (p, o, q) {
return new k(p, o, q)
};
this.getURL = function () {
return e
}
}
})(jwplayer.plugins);
(function (b) {
var a = b.utils,
c = b.events;
b.plugins.pluginloader = function (i, h) {
var o = a.loaderstatus.NEW,
g = false,
d = false,
k = false,
l, m = h,
e = new c.eventdispatcher();
a.extend(this, e);
function f() {
if (k) {
e.sendEvent(c.ERROR, {
message: l
})
} else {
if (!d) {
d = true;
o = a.loaderstatus.COMPLETE;
e.sendEvent(c.COMPLETE)
}
}
}
function n() {
if (!m) {
f()
}
if (!d && !k) {
var r = 0,
q = i.getPlugins();
for (var s in m) {
var t = a.getPluginName(s),
w = q[t],
v = w.getJS(),
u = w.getTarget(),
p = w.getStatus();
if (p == a.loaderstatus.LOADING || p == a.loaderstatus.NEW) {
r++
} else {
if (v && (!u || parseFloat(u) > parseFloat(b.version))) {
k = true;
l = "Incompatible player version";
f()
}
}
}
if (r == 0) {
f()
}
}
}
this.setupPlugins = function (w, s, z) {
var r = {
length: 0,
plugins: {}
}, u = {
length: 0,
plugins: {}
}, t = i.getPlugins();
for (var v in s.plugins) {
var x = a.getPluginName(v),
y = t[x],
A = y.getFlashPath(),
B = y.getJS(),
p = y.getURL();
if (A) {
r.plugins[A] = a.extend({}, s.plugins[v]);
r.plugins[A].pluginmode = y.getPluginmode();
r.length++
}
if (B && s.plugins && s.plugins[p]) {
var q = document.createElement("div");
q.id = w.id + "_" + x;
q.style.position = "absolute";
q.style.top = 0;
q.style.zIndex = u.length + 10;
u.plugins[x] = y.getNewInstance(w, a.extend({}, s.plugins[p]), q);
u.length++;
w.onReady(z(u.plugins[x], q, true));
w.onResize(z(u.plugins[x], q))
}
}
w.plugins = u.plugins;
return r
};
this.load = function () {
if (a.exists(h) && a.typeOf(h) != "object") {
n();
return
}
o = a.loaderstatus.LOADING;
g = true;
for (var q in h) {
if (a.exists(q)) {
var r = i.addPlugin(q);
r.addEventListener(c.COMPLETE, n);
r.addEventListener(c.ERROR, j)
}
}
var p = i.getPlugins();
for (q in p) {
p[q].load()
}
g = false;
n()
};
var j = this.pluginFailed = function (p) {
if (!k) {
k = true;
l = "File not found";
f()
}
};
this.getStatus = function () {
return o
}
}
})(jwplayer);
(function (a) {
a.playlist = function (c) {
var d = [];
if (a.utils.typeOf(c) == "array") {
for (var b = 0; b < c.length; b++) {
d.push(new a.playlist.item(c[b]))
}
} else {
d.push(new a.playlist.item(c))
}
return d
}
})(jwplayer);
(function (b) {
var a = b.item = function (d) {
var c = jwplayer.utils.extend({}, a.defaults, d);
if (c.sources.length == 0) {
c.sources = [new b.source(c)]
}
for (var e = 0; e < c.sources.length; e++) {
c.sources[e] = new b.source(c.sources[e])
}
return c
};
a.defaults = {
description: "",
image: "",
mediaid: "",
title: "",
tags: "",
duration: -1,
sources: []
}
})(jwplayer.playlist);
(function (d) {
var b = undefined,
a = jwplayer.utils,
c = {
file: b,
label: b,
bitrate: b,
width: b,
height: b,
type: b
};
d.source = function (f) {
var e = a.extend({}, c);
for (var g in c) {
if (a.exists(f[g])) {
e[g] = f[g];
delete f[g]
}
}
if (e.type && e.type.indexOf("/") > 0) {
e.type = a.extensionmap.mimeType(e.type)
}
return e
}
})(jwplayer.playlist);
(function (b) {
var a = b.utils,
c = b.events,
d = document;
var e = b.embed = function (t) {
var p = new e.config(t.config),
i, k, j = p.width,
l = p.height,
n = "Error loading player: ",
h = b.plugins.loadPlugins(t.id, p.plugins);
p.id = t.id;
k = d.getElementById(t.id);
i = d.createElement("div");
i.id = k.id;
i.style.width = j.toString().indexOf("%") > 0 ? j : (j + "px");
i.style.height = l.toString().indexOf("%") > 0 ? l : (l + "px");
k.parentNode.replaceChild(i, k);
function m(w, v) {
for (var u in v) {
if (typeof w[u] == "function") {
(w[u]).call(w, v[u])
}
}
}
function f() {
if (a.typeOf(p.playlist) == "array" && p.playlist.length < 2) {
if (p.playlist.length == 0 || !p.playlist[0].sources || p.playlist[0].sources.length == 0) {
r();
return
}
}
if (h.getStatus() == a.loaderstatus.COMPLETE) {
for (var w = 0; w < p.modes.length; w++) {
if (p.modes[w].type && e[p.modes[w].type]) {
var x = p.modes[w].config,
u = a.extend({}, x ? e.config.addConfig(p, x) : p),
v = new e[p.modes[w].type](i, p.modes[w], u, h, t);
if (v.supportsConfig()) {
v.addEventListener(c.ERROR, g);
v.embed();
m(t, u.events);
return t
}
}
}
if (p.fallback) {
a.log("No suitable players found and fallback enabled");
new e.download(i, p, r)
} else {
a.log("No suitable players found and fallback disabled");
q()
}
}
}
function q() {
i.parentNode.replaceChild(k, i)
}
function g(u) {
s(i, n + u.message)
}
function o(u) {
s(i, "Could not load plugins: " + u.message)
}
function r() {
s(i, n + "No playable sources found")
}
function s(u, w) {
if (!p.fallback) {
return
}
var v = u.style;
v.backgroundColor = "#000";
v.color = "#FFF";
v.width = a.styleDimension(p.width);
v.height = a.styleDimension(p.height);
v.display = "table";
v.opacity = 1;
var y = document.createElement("p"),
x = y.style;
x.verticalAlign = "middle";
x.textAlign = "center";
x.display = "table-cell";
x.font = "15px/20px Arial, Helvetica, sans-serif";
y.innerHTML = w.replace(":", ":<br>");
u.innerHTML = "";
u.appendChild(y)
}
b.embed.errorScreen = s;
h.addEventListener(c.COMPLETE, f);
h.addEventListener(c.ERROR, o);
h.load();
return t
}
})(jwplayer);
(function (d) {
var a = d.utils,
h = d.embed,
b = d.playlist.item,
f = undefined;
var c = h.config = function (j) {
function m(q, p, o) {
for (var n = 0; n < q.length; n++) {
var r = q[n].type;
if (!q[n].src) {
q[n].src = o[r] ? o[r] : p + "jwplayer." + r + (r == "flash" ? ".swf" : ".js")
}
}
}
var l = {
fallback: true,
height: 270,
primary: "html5",
width: 480,
base: f
}, i = {
html5: {
type: "html5"
},
flash: {
type: "flash"
}
}, k = a.extend(l, j);
if (!k.base) {
k.base = a.getScriptPath("jwplayer.js")
}
if (!k.modes) {
k.modes = (k.primary == "flash") ? [i.flash, i.html5] : [i.html5, i.flash]
}
if (k.listbar) {
k.playlistsize = k.listbar.size;
k.playlistposition = k.listbar.position
}
m(k.modes, k.base, {
html5: k.html5player,
flash: k.flashplayer
});
e(k);
return k
};
c.addConfig = function (i, j) {
e(j);
return a.extend(i, j)
};
function e(l) {
if (!l.playlist) {
var n = {};
for (var k in b.defaults) {
g(l, n, k)
}
if (!n.sources) {
if (l.levels) {
n.sources = l.levels;
delete l.levels
} else {
var j = {};
g(l, j, "file");
g(l, j, "type");
n.sources = j.file ? [j] : []
}
}
l.playlist = [n]
} else {
for (var m = 0; m < l.playlist.length; m++) {
l.playlist[m] = new b(l.playlist[m])
}
}
}
function g(k, i, j) {
if (a.exists(k[j])) {
i[j] = k[j];
delete k[j]
}
}
})(jwplayer);
(function (e) {
var g = e.embed,
j = e.utils,
i = document,
h = "pointer",
c = "none",
a = "block",
f = "100%",
d = "relative",
b = "absolute";
g.download = function (n, y, l) {
var q = j.extend({}, y),
u, o = q.width ? q.width : 480,
r = q.height ? q.height : 320,
z, s, k = y.logo ? y.logo : {
prefix: "http://p.jwpcdn.com/",
file: "logo.png",
margin: 10
};
function x() {
var E, F, D, G, C = q.playlist,
J, B, G, H = ["mp4", "aac", "mp3"];
if (C && C.length) {
J = C[0];
B = J.sources;
for (G = 0; G < B.length; G++) {
var A = B[G],
I = A.type ? A.type : j.extensionmap.extType(j.extension(A.file));
if (A.file) {
for (G in H) {
if (I == H[G]) {
E = A.file;
F = J.image
} else {
if (j.isYouTube(A.file)) {
D = A.file
}
}
}
if (E || D) {
continue
}
}
}
} else {
return
}
if (E) {
z = E;
s = F;
if (k.prefix) {
if (j.isHTTPS()) {
k.prefix = k.prefix.replace("http://", "https://ssl.")
}
k.prefix += e.version.split(/\W/).splice(0, 2).join("/")
}
t();
p()
} else {
if (D) {
m(D)
} else {
l()
}
}
}
function t() {
if (n) {
u = v("a", "display", n);
v("div", "icon", u);
v("div", "logo", u);
if (z) {
u.setAttribute("href", j.getAbsolutePath(z))
}
}
}
function w(A, C) {
var D = i.querySelectorAll(A);
for (var B = 0; B < D.length; B++) {
for (var E in C) {
D[B].style[E] = C[E]
}
}
}
function p() {
var A = "#" + n.id + " .jwdownload";
n.style.width = "";
n.style.height = "";
w(A + "display", {
width: j.styleDimension(Math.max(320, o)),
height: j.styleDimension(Math.max(180, r)),
background: "black center no-repeat " + (s ? "url(" + s + ")" : ""),
backgroundSize: "contain",
position: d,
border: c,
display: a
});
w(A + "display div", {
position: b,
width: f,
height: f
});
w(A + "logo", {
top: k.margin + "px",
right: k.margin + "px",
background: "top right no-repeat url(" + k.prefix + k.file + ")"
});
w(A + "icon", {
background: "center no-repeat url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgNJREFUeNrs28lqwkAYB/CZqNVDDj2r6FN41QeIy8Fe+gj6BL275Q08u9FbT8ZdwVfotSBYEPUkxFOoks4EKiJdaDuTjMn3wWBO0V/+sySR8SNSqVRKIR8qaXHkzlqS9jCfzzWcTCYp9hF5o+59sVjsiRzcegSckFzcjT+ruN80TeSlAjCAAXzdJSGPFXRpAAMYwACGZQkSdhG4WCzehMNhqV6vG6vVSrirKVEw66YoSqDb7cqlUilE8JjHd/y1MQefVzqdDmiaJpfLZWHgXMHn8F6vJ1cqlVAkEsGuAn83J4gAd2RZymQygX6/L1erVQt+9ZPWb+CDwcCC2zXGJaewl/DhcHhK3DVj+KfKZrMWvFarcYNLomAv4aPRSFZVlTlcSPA5fDweW/BoNIqFnKV53JvncjkLns/n/cLdS+92O7RYLLgsKfv9/t8XlDn4eDyiw+HA9Jyz2eyt0+kY2+3WFC5hluej0Ha7zQQq9PPwdDq1Et1sNsx/nFBgCqWJ8oAK1aUptNVqcYWewE4nahfU0YQnk4ntUEfGMIU2m01HoLaCKbTRaDgKtaVLk9tBYaBcE/6Artdr4RZ5TB6/dC+9iIe/WgAMYADDpAUJAxjAAAYwgGFZgoS/AtNNTF7Z2bL0BYPBV3Jw5xFwwWcYxgtBP5OkE8i9G7aWGOOCruvauwADALMLMEbKf4SdAAAAAElFTkSuQmCC)"
})
}
function v(A, D, C) {
var B = i.createElement(A);
if (D) {
B.className = "jwdownload" + D
}
if (C) {
C.appendChild(B)
}
return B
}
function m(A) {
var B = v("embed", "", n);
B.src = "http://www.youtube.com/v/" + (/v[=\/](\w*)|\/(\w+)$|^(\w+)$/i).exec(A).slice(1).join("");
B.type = "application/x-shockwave-flash";
B.width = o;
B.height = r
}
x()
}
})(jwplayer);
(function (c) {
var b = c.utils,
d = c.events,
a = {};
var e = c.embed.flash = function (l, m, q, k, o) {
var h = new c.events.eventdispatcher(),
i = b.flashVersion();
b.extend(this, h);
function r(t, s, u) {
var v = document.createElement("param");
v.setAttribute("name", s);
v.setAttribute("value", u);
t.appendChild(v)
}
function p(t, u, s) {
return function (v) {
try {
if (s) {
document.getElementById(o.id + "_wrapper").appendChild(u)
}
var x = document.getElementById(o.id).getPluginConfig("display");
if (typeof t.resize == "function") {
t.resize(x.width, x.height)
}
u.style.left = x.x;
u.style.top = x.h
} catch (w) {}
}
}
function j(u) {
if (!u) {
return {}
}
var w = {};
for (var t in u) {
var s = u[t];
for (var v in s) {
w[t + "." + v] = s[v]
}
}
return w
}
function g(v) {
if (!v) {
return {}
}
var y = {}, x = [];
for (var s in v) {
var u = b.getPluginName(s);
var t = v[s];
x.push(s);
for (var w in t) {
y[u + "." + w] = t[w]
}
}
y.plugins = x.join(",");
return y
}
function n(u) {
var s = {};
for (var t in u) {
if (typeof (u[t]) == "object") {
s[t] = "[[JSON]]" + b.jsonToString(u[t])
} else {
s[t] = u[t]
}
}
return s
}
this.embed = function () {
q.id = o.id;
if (i < 10) {
h.sendEvent(d.ERROR, {
message: "Flash version must be 10.0 or greater"
});
return false
}
var D;
var x = b.extend({}, q);
if (l.id + "_wrapper" == l.parentNode.id) {
D = document.getElementById(l.id + "_wrapper")
} else {
D = document.createElement("div");
D.id = l.id + "_wrapper";
D.style.position = "relative";
// D.style.width = b.styleDimension(x.width);
// D.style.height = b.styleDimension(x.height);
D.className = 'width' + x.width;
l.parentNode.replaceChild(D, l);
D.appendChild(l)
}
var t = k.setupPlugins(o, x, p);
if (t.length > 0) {
b.extend(x, g(t.plugins))
} else {
delete x.plugins
}
if (typeof x["dock.position"] != "undefined") {
if (x["dock.position"].toString().toLowerCase() == "false") {
x.dock = x["dock.position"];
delete x["dock.position"]
}
}
var C = b.getCookies();
for (var u in C) {
if (typeof (x[u]) == "undefined") {
x[u] = C[u]
}
}
var E = "#000000",
A, v = x.wmode ? x.wmode : (x.height && x.height <= 40 ? "transparent" : "opaque"),
w = ["height", "width", "modes", "events", "primary", "base", "fallback"];
for (var z = 0; z < w.length; z++) {
delete x[w[z]]
}
var s = window.location.pathname.split("/");
s.splice(s.length - 1, 1);
s = s.join("/");
x.base = s + "/";
a[l.id] = n(x);
if (b.isIE()) {
var B = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" " width="100%" height="100%" id="' + l.id + '" name="' + l.id + '" tabindex=0"">';
B += '<param name="movie" value="' + m.src + '">';
B += '<param name="allowfullscreen" value="true">';
B += '<param name="allowscriptaccess" value="always">';
B += '<param name="seamlesstabbing" value="true">';
B += '<param name="wmode" value="' + v + '">';
B += '<param name="bgcolor" value="' + E + '">';
B += "</object>";
l.outerHTML = B;
A = document.getElementById(l.id)
} else {
var y = document.createElement("object");
y.setAttribute("type", "application/x-shockwave-flash");
y.setAttribute("data", m.src);
y.setAttribute("width", "100%");
y.setAttribute("height", "100%");
y.setAttribute("bgcolor", E);
y.setAttribute("id", l.id);
y.setAttribute("name", l.id);
y.setAttribute("tabindex", 0);
r(y, "allowfullscreen", "true");
r(y, "allowscriptaccess", "always");
r(y, "seamlesstabbing", "true");
r(y, "wmode", v);
l.parentNode.replaceChild(y, l);
A = y
}
o.container = A;
o.setPlayer(A, "flash")
};
this.supportsConfig = function () {
if (i) {
if (q) {
try {
var u = q.playlist[0],
s = u.sources;
if (typeof s == "undefined") {
return true
} else {
for (var t = 0; t < s.length; t++) {
if (s[t].file && f(s[t].file, s[t].type)) {
return true
}
}
}
} catch (v) {
return false
}
} else {
return true
}
}
return false
};
function f(s, t) {
if (b.isYouTube(s)) {
return true
}
if (b.isRtmp(s, t)) {
return true
}
if (t == "hls") {
return true
}
var u = b.extensionmap[t ? t : b.extension(s)];
if (!u) {
return false
}
return !!(u.flash)
}
};
e.getVars = function (f) {
return a[f]
}
})(jwplayer);
(function (c) {
var a = c.utils,
b = a.extensionmap,
d = c.events;
c.embed.html5 = function (g, h, o, f, k) {
var j = this,
e = new d.eventdispatcher();
a.extend(j, e);
function l(q, r, p) {
return function (s) {
try {
var t = document.querySelector("#" + g.id + " .jwmain");
if (p) {
t.appendChild(r)
}
if (typeof q.resize == "function") {
q.resize(t.clientWidth, t.clientHeight);
setTimeout(function () {
q.resize(t.clientWidth, t.clientHeight)
}, 400)
}
r.left = t.style.left;
r.top = t.style.top
} catch (u) {}
}
}
j.embed = function () {
if (c.html5) {
f.setupPlugins(k, o, l);
g.innerHTML = "";
var p = c.utils.extend({}, o);
var q = new c.html5.player(p);
k.container = document.getElementById(k.id);
k.setPlayer(q, "html5")
} else {
var r = new a.scriptloader(h.src);
r.addEventListener(d.ERROR, i);
r.addEventListener(d.COMPLETE, j.embed);
r.load()
}
};
function i(p) {
j.sendEvent(p.type, {
message: "HTML5 player not found"
})
}
j.supportsConfig = function () {
if ( !! c.vid.canPlayType) {
try {
if (a.typeOf(o.playlist) == "string") {
return true
} else {
var p = o.playlist[0].sources;
for (var r = 0; r < p.length; r++) {
var q = p[r].file,
s = p[r].type;
if (n(q, s)) {
return true
}
}
}
} catch (t) {
return false
}
}
return false
};
function n(p, q) {
if (navigator.userAgent.match(/BlackBerry/i) !== null) {
return false
}
if (a.isRtmp(p, q)) {
return false
}
var r = b[q ? q : a.extension(p)];
if (!r) {
return false
}
if (r.flash && !r.html5) {
return false
}
return m(r.html5)
}
function m(p) {
var q = c.vid;
if (!p) {
return true
}
try {
if (q.canPlayType(p)) {
return true
} else {
return false
}
} catch (r) {
return false
}
}
}
})(jwplayer);
(function (c) {
var b = c.embed,
a = c.utils,
d = a.extend(function (i) {
var g = i.config,
e = g.plugins,
f = g.analytics,
h = (a.isHTTPS() ? "https://ssl." : "http://") + "p.jwpcdn.com/" + c.version.replace(/(\d+)\.(\d+).*/, "$1/$2") + "/jwpsrv.js";
delete g.key;
if (c.key) {
g.key = c.key
}
delete g.analytics;
e = e ? e : {};
e[h] = f ? f : {};
g.plugins = e;
return new b(i)
}, b);
c.embed = d
})(jwplayer);
(function (d) {
var c = [],
a = d.utils,
e = d.events,
b = e.state,
g = document;
var f = d.api = function (t) {
var x = this,
h = {}, l = {}, A = {}, o = [],
i = undefined,
D = false,
p = [],
y = undefined,
s = {}, n = {};
x.container = t;
x.id = t.id;
x.getBuffer = function () {
return w("jwGetBuffer")
};
x.getContainer = function () {
return x.container
};
x.addButton = function (H, F, G, K) {
try {
n[K] = G;
var J = "jwplayer('" + x.id + "').callback('" + K + "')";
w("jwDockAddButton", H, F, J, K)
} catch (I) {
a.log("Could not add dock button" + I.message)
}
};
x.removeButton = function (F) {
w("jwDockRemoveButton", F)
}, x.callback = function (F) {
if (n[F]) {
n[F]()
}
};
x.getDuration = function () {
return w("jwGetDuration")
};
x.getFullscreen = function () {
return w("jwGetFullscreen")
};
x.getStretching = function () {
return w("jwGetStretching")
};
x.getHeight = function () {
return w("jwGetHeight")
};
x.getLockState = function () {
return w("jwGetLockState")
};
x.getMeta = function () {
return x.getItemMeta()
};
x.getMute = function () {
return w("jwGetMute")
};
x.getPlaylist = function () {
var G = w("jwGetPlaylist");
if (x.renderingMode == "flash") {
a.deepReplaceKeyName(G, ["__dot__", "__spc__", "__dsh__"], [".", " ", "-"])
}
for (var F = 0; F < G.length; F++) {
if (!a.exists(G[F].index)) {
G[F].index = F
}
}
return G
};
x.getPlaylistItem = function (F) {
if (!a.exists(F)) {
F = x.getCurrentItem()
}
return x.getPlaylist()[F]
};
x.getPosition = function () {
return w("jwGetPosition")
};
x.getRenderingMode = function () {
return x.renderingMode
};
x.getState = function () {
return w("jwGetState")
};
x.getVolume = function () {
return w("jwGetVolume")
};
x.getWidth = function () {
return w("jwGetWidth")
};
x.setFullscreen = function (F) {
if (!a.exists(F)) {
w("jwSetFullscreen", !w("jwGetFullscreen"))
} else {
w("jwSetFullscreen", F)
}
return x
};
x.setStretching = function (F) {
w("jwSetStretching", F);
return x
};
x.setMute = function (F) {
if (!a.exists(F)) {
w("jwSetMute", !w("jwGetMute"))
} else {
w("jwSetMute", F)
}
return x
};
x.lock = function () {
return x
};
x.unlock = function () {
return x
};
x.load = function (F) {
w("jwLoad", F);
return x
};
x.playlistItem = function (F) {
w("jwPlaylistItem", parseInt(F));
return x
};
x.playlistPrev = function () {
w("jwPlaylistPrev");
return x
};
x.playlistNext = function () {
w("jwPlaylistNext");
return x
};
x.resize = function (G, F) {
if (x.renderingMode == "html5") {
i.jwResize(G, F)
} else {
var H = g.getElementById(x.id + "_wrapper");
if (H) {
H.style.width = a.styleDimension(G);
H.style.height = a.styleDimension(F)
}
}
return x
};
x.play = function (F) {
if (typeof F == "undefined") {
F = x.getState();
if (F == b.PLAYING || F == b.BUFFERING) {
w("jwPause")
} else {
w("jwPlay")
}
} else {
w("jwPlay", F)
}
return x
};
x.pause = function (F) {
if (typeof F == "undefined") {
F = x.getState();
if (F == b.PLAYING || F == b.BUFFERING) {
w("jwPause")
} else {
w("jwPlay")
}
} else {
w("jwPause", F)
}
return x
};
x.stop = function () {
w("jwStop");
return x
};
x.seek = function (F) {
w("jwSeek", F);
return x
};
x.setVolume = function (F) {
w("jwSetVolume", F);
return x
};
x.loadInstream = function (G, F) {
y = new f.instream(this, i, G, F);
return y
};
x.getQualityLevels = function () {
return w("jwGetQualityLevels")
};
x.getCurrentQuality = function () {
return w("jwGetCurrentQuality")
};
x.setCurrentQuality = function (F) {
w("jwSetCurrentQuality", F)
};
x.getCaptionsList = function () {
return w("jwGetCaptionsList")
};
x.getCurrentCaptions = function () {
return w("jwGetCurrentCaptions")
};
x.setCurrentCaptions = function (F) {
w("jwSetCurrentCaptions", F)
};
x.getControls = function () {
return w("jwGetControls")
};
x.getSafeRegion = function () {
return w("jwGetSafeRegion")
};
x.setControls = function (F) {
w("jwSetControls", F)
};
var r = {
onBufferChange: e.JWPLAYER_MEDIA_BUFFER,
onBufferFull: e.JWPLAYER_MEDIA_BUFFER_FULL,
onError: e.JWPLAYER_ERROR,
onFullscreen: e.JWPLAYER_FULLSCREEN,
onMeta: e.JWPLAYER_MEDIA_META,
onMute: e.JWPLAYER_MEDIA_MUTE,
onPlaylist: e.JWPLAYER_PLAYLIST_LOADED,
onPlaylistItem: e.JWPLAYER_PLAYLIST_ITEM,
onPlaylistComplete: e.JWPLAYER_PLAYLIST_COMPLETE,
onReady: e.API_READY,
onResize: e.JWPLAYER_RESIZE,
onComplete: e.JWPLAYER_MEDIA_COMPLETE,
onSeek: e.JWPLAYER_MEDIA_SEEK,
onTime: e.JWPLAYER_MEDIA_TIME,
onVolume: e.JWPLAYER_MEDIA_VOLUME,
onBeforePlay: e.JWPLAYER_MEDIA_BEFOREPLAY,
onBeforeComplete: e.JWPLAYER_MEDIA_BEFORECOMPLETE,
onDisplayClick: e.JWPLAYER_DISPLAY_CLICK,
onControls: e.JWPLAYER_CONTROLS,
onQualityLevels: e.JWPLAYER_MEDIA_LEVELS,
onQualityChange: e.JWPLAYER_MEDIA_LEVEL_CHANGED,
onCaptionsList: e.JWPLAYER_CAPTIONS_LIST,
onCaptionsChange: e.JWPLAYER_CAPTIONS_CHANGED
};
a.foreach(r, function (F) {
x[F] = C(r[F], z)
});
var v = {
onBuffer: b.BUFFERING,
onPause: b.PAUSED,
onPlay: b.PLAYING,
onIdle: b.IDLE
};
a.foreach(v, function (F) {
x[F] = C(v[F], q)
});
function C(F, G) {
return function (H) {
return G(F, H)
}
}
x.remove = function () {
if (!D) {
throw "Cannot call remove() before player is ready";
return
}
m(this)
};
function m(F) {
p = [];
f.destroyPlayer(F.id)
}
x.setup = function (F) {
if (d.embed) {
m(x);
var G = d(x.id);
G.config = F;
return new d.embed(G)
}
return x
};
x.registerPlugin = function (I, H, G, F) {
d.plugins.registerPlugin(I, H, G, F)
};
x.setPlayer = function (F, G) {
i = F;
x.renderingMode = G
};
x.detachMedia = function () {
if (x.renderingMode == "html5") {
return w("jwDetachMedia")
}
};
x.attachMedia = function () {
if (x.renderingMode == "html5") {
return w("jwAttachMedia")
}
};
function q(F, G) {
if (!l[F]) {
l[F] = [];
z(e.JWPLAYER_PLAYER_STATE, E(F))
}
l[F].push(G);
return x
}
function E(F) {
return function (H) {
var G = H.newstate,
J = H.oldstate;
if (G == F) {
var I = l[G];
if (I) {
for (var K = 0; K < I.length; K++) {
if (typeof I[K] == "function") {
I[K].call(this, {
oldstate: J,
newstate: G
})
}
}
}
}
}
}
function B(F, G, H) {
if (!A[F]) {
A[F] = {}
}
if (!A[F][G]) {
A[F][G] = [];
z(G, k(F, G))
}
A[F][G].push(H);
return x
}
function k(F, G) {
return function (I) {
if (F == I.component) {
var H = A[F][G];
if (H) {
for (var J = 0; J < H.length; J++) {
if (typeof H[J] == "function") {
H[J].call(this, I)
}
}
}
}
}
}
function j(F, G) {
try {
F.jwAddEventListener(G, 'function(dat) { jwplayer("' + x.id + '").dispatchEvent("' + G + '", dat); }')
} catch (H) {
a.log("Could not add internal listener")
}
}
function z(F, G) {
if (!h[F]) {
h[F] = [];
if (i && D) {
j(i, F)
}
}
h[F].push(G);
return x
}
x.dispatchEvent = function (H) {
if (h[H]) {
var G = a.translateEventResponse(H, arguments[1]);
for (var F = 0; F < h[H].length; F++) {
if (typeof h[H][F] == "function") {
h[H][F].call(this, G)
}
}
}
};
x.dispatchInstreamEvent = function (F) {
if (y) {
y.dispatchEvent(F, arguments)
}
};
function w() {
if (D) {
var H = arguments[0],
F = [];
for (var G = 1; G < arguments.length; G++) {
F.push(arguments[G])
}
if (typeof i != "undefined" && typeof i[H] == "function") {
switch (F.length) {
case 4:
return (i[H])(F[0], F[1], F[2], F[3]);
case 3:
return (i[H])(F[0], F[1], F[2]);
case 2:
return (i[H])(F[0], F[1]);
case 1:
return (i[H])(F[0]);
default:
return (i[H])()
}
}
return null
} else {
p.push(arguments)
}
}
x.playerReady = function (F) {
D = true;
if (!i) {
x.setPlayer(g.getElementById(F.id))
}
x.container = g.getElementById(x.id);
a.foreach(h, function (G) {
j(i, G)
});
z(e.JWPLAYER_PLAYLIST_ITEM, function (G) {
s = {}
});
z(e.JWPLAYER_MEDIA_META, function (G) {
a.extend(s, G.metadata)
});
x.dispatchEvent(e.API_READY);
while (p.length > 0) {
w.apply(this, p.shift())
}
};
x.getItemMeta = function () {
return s
};
x.getCurrentItem = function () {
return w("jwGetPlaylistIndex")
};
function u(H, J, I) {
var F = [];
if (!J) {
J = 0
}
if (!I) {
I = H.length - 1
}
for (var G = J; G <= I; G++) {
F.push(H[G])
}
return F
}
return x
};
f.selectPlayer = function (i) {
var h;
if (!a.exists(i)) {
i = 0
}
if (i.nodeType) {
h = i
} else {
if (typeof i == "string") {
h = g.getElementById(i)
}
}
if (h) {
var j = f.playerById(h.id);
if (j) {
return j
} else {
return f.addPlayer(new f(h))
}
} else {
if (typeof i == "number") {
return c[i]
}
}
return null
};
f.playerById = function (i) {
for (var h = 0; h < c.length; h++) {
if (c[h].id == i) {
return c[h]
}
}
return null
};
f.addPlayer = function (h) {
for (var i = 0; i < c.length; i++) {
if (c[i] == h) {
return h
}
}
c.push(h);
return h
};
f.destroyPlayer = function (j) {
var i = -1,
k;
for (var m = 0; m < c.length; m++) {
if (c[m].id == j) {
i = m;
k = c[m];
continue
}
}
if (i >= 0) {
var n = k.id,
h = g.getElementById(n + (k.renderingMode == "flash" ? "_wrapper" : ""));
if (a.clearCss) {
a.clearCss("#" + n)
}
if (h) {
var l = g.createElement("div");
l.id = n;
h.parentNode.replaceChild(l, h)
}
c.splice(i, 1)
}
return null
};
d.playerReady = function (i) {
var h = d.api.playerById(i.id);
if (h) {
h.playerReady(i)
} else {
d.api.selectPlayer(i.id).playerReady(i)
}
}
})(jwplayer);
(function (b) {
var c = b.events,
a = c.state;
b.api.instream = function (e, k, o, r) {
var j = e,
d = k,
i = o,
l = r,
g = {}, q = {};
function h() {
j.callInternal("jwLoadInstream", o, r)
}
function n(s, t) {
d.jwInstreamAddEventListener(t, 'function(dat) { jwplayer("' + j.id + '").dispatchInstreamEvent("' + t + '", dat); }')
}
function f(s, t) {
if (!g[s]) {
g[s] = [];
n(d, s)
}
g[s].push(t);
return this
}
function p(s, t) {
if (!q[s]) {
q[s] = [];
f(c.JWPLAYER_PLAYER_STATE, m(s))
}
q[s].push(t);
return this
}
function m(s) {
return function (u) {
var t = u.newstate,
w = u.oldstate;
if (t == s) {
var v = q[t];
if (v) {
for (var x = 0; x < v.length; x++) {
if (typeof v[x] == "function") {
v[x].call(this, {
oldstate: w,
newstate: t,
type: u.type
})
}
}
}
}
}
}
this.dispatchEvent = function (v, u) {
if (g[v]) {
var t = _utils.translateEventResponse(v, u[1]);
for (var s = 0; s < g[v].length; s++) {
if (typeof g[v][s] == "function") {
g[v][s].call(this, t)
}
}
}
};
this.onError = function (s) {
return f(c.JWPLAYER_ERROR, s)
};
this.onFullscreen = function (s) {
return f(c.JWPLAYER_FULLSCREEN, s)
};
this.onMeta = function (s) {
return f(c.JWPLAYER_MEDIA_META, s)
};
this.onMute = function (s) {
return f(c.JWPLAYER_MEDIA_MUTE, s)
};
this.onComplete = function (s) {
return f(c.JWPLAYER_MEDIA_COMPLETE, s)
};
this.onSeek = function (s) {
return f(c.JWPLAYER_MEDIA_SEEK, s)
};
this.onTime = function (s) {
return f(c.JWPLAYER_MEDIA_TIME, s)
};
this.onVolume = function (s) {
return f(c.JWPLAYER_MEDIA_VOLUME, s)
};
this.onBuffer = function (s) {
return p(a.BUFFERING, s)
};
this.onPause = function (s) {
return p(a.PAUSED, s)
};
this.onPlay = function (s) {
return p(a.PLAYING, s)
};
this.onIdle = function (s) {
return p(a.IDLE, s)
};
this.onInstreamClick = function (s) {
return f(c.JWPLAYER_INSTREAM_CLICK, s)
};
this.onInstreamDestroyed = function (s) {
return f(c.JWPLAYER_INSTREAM_DESTROYED, s)
};
this.play = function (s) {
d.jwInstreamPlay(s)
};
this.pause = function (s) {
d.jwInstreamPause(s)
};
this.seek = function (s) {
d.jwInstreamSeek(s)
};
this.destroy = function () {
d.jwInstreamDestroy()
};
this.getState = function () {
return d.jwInstreamGetState()
};
this.getDuration = function () {
return d.jwInstreamGetDuration()
};
this.getPosition = function () {
return d.jwInstreamGetPosition()
};
h()
}
})(jwplayer)
};