(function() {
var $, Fuvlc, activeXEnable, createAttrs, createParams;
$ = jQuery;
createAttrs = function(obj) {
var aArray, attr, val;
aArray = (function() {
var _results;
_results = [];
for (attr in obj) {
val = obj[attr];
if (/string|number/.test(typeof val) && val !== '') {
_results.push(" " + attr + "='" + val + "'");
}
}
return _results;
})();
return aArray.join('');
};
createParams = function(obj) {
var aArray, attr, bArray, battr, bval, val;
if (typeof obj === 'object') {
aArray = (function() {
var _results;
_results = [];
for (attr in obj) {
val = obj[attr];
if (typeof val === 'object') {
bArray = (function() {
var _results1;
_results1 = [];
for (battr in val) {
bval = val[battr];
_results1.push(" " + battr + " = '" + (encodeURIComponent(bval)) + "' ");
}
return _results1;
})();
bArray.join('&');
}
if (attr != null) {
_results.push("");
} else {
_results.push(void 0);
}
}
return _results;
})();
obj = aArray.join('');
}
return obj;
};
activeXEnable = function() {
var a, c;
try {
a = new ActiveXObject("VideoLAN.VLCPlugin.2");
} catch (_error) {
c = _error;
}
if (a == null) {
return null;
} else {
return a;
}
};
Fuvlc = (function() {
function Fuvlc() {}
Fuvlc.prototype.create = function(obj) {
obj = $.extend(true, {
attrs: {
id: obj.id,
name: obj.name,
height: obj.height || 180,
width: obj.width || 320,
events: "true"
},
params: {
wmode: obj.wmode || 'opaque',
windowless: obj.windowless || 'true',
mrl: obj.src || obj.mrl || obj.filename || '',
autoplay: obj.autoplay || 'true',
loop: obj.loop || 'false',
fullscreen: obj.fullscreen || 'true',
showdisplay: obj.showdisplay || 'true',
bgcolor: obj.bgcolor || '#999999'
}
}, obj);
if (obj.fbvlc === true) {
return "";
} else {
if (activeXEnable() != null) {
return "";
} else {
return "";
}
}
};
return Fuvlc;
})();
$.fn.extend({
fuvlc: function(args) {
if (typeof args === 'object') {
return this.each(function(idx, elem) {
var fu, fuOjbect, test;
test = document.createElement('object');
fu = new Fuvlc;
fuOjbect = fu.create(args);
if (fuOjbect != null) {
elem.innerHTML = fuOjbect;
if (test.childNodes[0] != null) {
elem.appendChild(test.childNodes[0]);
}
if (activeXEnable() != null) {
return $(elem.childNodes[0]).css("width", args.width).css("height", args.height);
}
}
});
}
if (typeof args === 'function') {
this.find('object').andSelf().filter('object').each(function(idx, elem) {
var jsInteractionTimeoutMs;
jsInteractionTimeoutMs = 'jsInteractionTimeoutMs';
if (elem[jsInteractionTimeoutMs] == null) {
elem[jsInteractionTimeoutMs] = 0;
}
if (elem[jsInteractionTimeoutMs] < 660) {
if (elem.clientWidth || elem.clientHeight) {
return args.call(this);
} else {
return setTimeout(function() {
return $(elem)[fuvlc](args, elem[jsInteractionTimeoutMs] + 66);
});
}
}
});
return this;
}
return $(this.children()[0]);
}
});
}).call(this);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZ1dmxjLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUFBLE1BQUEsa0RBQUE7O0FBQUEsRUFBQSxDQUFBLEdBQUksTUFBSixDQUFBOztBQUFBLEVBVUEsV0FBQSxHQUFhLFNBQUMsR0FBRCxHQUFBO0FBQ1gsUUFBQSxpQkFBQTtBQUFBLElBQUEsTUFBQTs7QUFBVTtXQUFBLFdBQUE7d0JBQUE7WUFBMEIsZUFBbUIsQ0FBQyxJQUFwQixDQUF5QixNQUFBLENBQUEsR0FBekIsQ0FBQSxJQUF5QyxHQUFBLEtBQVM7QUFDcEYsd0JBQUMsR0FBQSxHQUFFLElBQUYsR0FBUSxJQUFSLEdBQUosR0FBSSxHQUFrQixJQUFuQjtTQURRO0FBQUE7O1FBQVYsQ0FBQTtXQUVBLE1BQU0sQ0FBQyxJQUFQLENBQVksRUFBWixFQUhXO0VBQUEsQ0FWYixDQUFBOztBQUFBLEVBZUEsWUFBQSxHQUFjLFNBQUMsR0FBRCxHQUFBO0FBQ1osUUFBQSxzQ0FBQTtBQUFBLElBQUEsSUFBRyxNQUFBLENBQUEsR0FBQSxLQUFjLFFBQWpCO0FBQ0UsTUFBQSxNQUFBOzt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