LSP: thumbnailing; currently disabled

This commit is contained in:
Cat 2016-12-20 16:57:56 +01:00 committed by Thulinma
parent db543cb4e4
commit b0326ccd1e
7 changed files with 105 additions and 14 deletions

22
embed/wrappers/img.js Normal file
View file

@ -0,0 +1,22 @@
mistplayers.img = {
name: 'HTML img tag',
mimes: ['html5/image/jpeg'],
priority: Object.keys(mistplayers).length + 1,
isMimeSupported: function (mimetype) {
return (this.mimes.indexOf(mimetype) == -1 ? false : true);
},
isBrowserSupported: function (mimetype,source,options,streaminfo) {
//only use this if we are sure we just want an image
if ((options.forceType) || (options.forceSource) || (options.forcePlayer)) { return true; }
return false;
},
player: function(){}
};
var p = mistplayers.img.player;
p.prototype = new MistPlayer();
p.prototype.build = function (options) {
var ele = this.element('img');
ele.src = options.src;
ele.style.display = 'block';
return ele;
}