#18418490 FLV가 설정에 관계없이 자동으로 실행되던 버그 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6910 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2009-11-05 05:20:00 +00:00
parent 27c622bdfc
commit 7a557ee42f

View file

@ -450,13 +450,7 @@ function _displayMultimedia(src, width, height, options) {
};
var params = jQuery.extend(defaults, options || {});
var autostart;
if (jQuery.browser.mozilla || jQuery.browser.opera) {
// firefox and opera uses 0 or 1 for autostart parameter.
autostart = (params.autostart && params.autostart != 'false') ? '1' : '0';
} else {
autostart = (params.autostart && params.autostart != 'false') ? 'true' : 'false';
}
var autostart = (params.autostart && params.autostart != 'false') ? 'true' : 'false';
delete(params.autostart);
var clsid = "";
@ -483,6 +477,11 @@ function _displayMultimedia(src, width, height, options) {
+ '<embed src="'+src+'" autostart="'+autostart+'" width="'+width+'" height="'+height+'" flashvars="'+params.flashvars+'" wmode="'+params.wmode+'"></embed>'
+ '</object>';
} else {
if (jQuery.browser.mozilla || jQuery.browser.opera) {
// firefox and opera uses 0 or 1 for autostart parameter.
autostart = (params.autostart && params.autostart != 'false') ? '1' : '0';
}
html = '<embed src="'+src+'" autostart="'+autostart+'" width="'+width+'" height="'+height+'"';
if(params.wmode == 'transparent') {
html += ' windowlessvideo="1"';