diff --git a/common/img/play.png b/common/img/play.png new file mode 100644 index 000000000..26bf6ac82 Binary files /dev/null and b/common/img/play.png differ diff --git a/common/js/common.js b/common/js/common.js index ce878170f..d5db12795 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -532,35 +532,15 @@ function _displayMultimedia(src, width, height, options) { var clsid = ""; var codebase = ""; var html = ""; + width = parseInt(width, 10); + height = parseInt(height, 10); if(/\.(gif|jpg|jpeg|bmp|png)$/i.test(src)){ html = ''; - } else if(/\.flv$/i.test(src) || /\.mov$/i.test(src) || /\.moov$/i.test(src) || /\.m4v$/i.test(src)) { - html = ''; - } else if(/\.swf/i.test(src)) { - clsid = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'; - - if(typeof(enforce_ssl)!='undefined' && enforce_ssl){ codebase = "https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"; } - else { codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"; } - html = ''; - html += ''; - for(var name in params) { - if(params[name] != 'undefined' && params[name] !== '') { - html += ''; - } - } - html += '' + '' + ''; - } else { - if (navigator.userAgent.match(/(firefox|opera)/i)) { - // firefox and opera uses 0 or 1 for autostart parameter. - autostart = (params.autostart && params.autostart != 'false') ? '1' : '0'; - } - - html = ''; + html += ''; + html += ''; } return html; }