|
|
@ -365,10 +365,6 @@ var sActualBrowser ; |
|
|
|
function SetUrl( url ) { |
|
|
|
function SetUrl( url ) { |
|
|
|
|
|
|
|
|
|
|
|
url = FCK.GetUrl( url, FCK.SEMI_ABSOLUTE_URL ) ; |
|
|
|
url = FCK.GetUrl( url, FCK.SEMI_ABSOLUTE_URL ) ; |
|
|
|
PrefixeUrl = self.location.href.replace(/\/main\/inc\/lib\/fckeditor\/editor\/plugins\/flvPlayer\/flvPlayer\.html/, ""); |
|
|
|
|
|
|
|
PrefixeUrl = PrefixeUrl.replace(/http:\/\/[^\/]+/, ""); |
|
|
|
|
|
|
|
url = PrefixeUrl + url; |
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( sActualBrowser == 'flv' ) |
|
|
|
if ( sActualBrowser == 'flv' ) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -452,44 +448,37 @@ Media.prototype.setAttribute = function( attr, val ) |
|
|
|
} |
|
|
|
} |
|
|
|
} ; |
|
|
|
} ; |
|
|
|
|
|
|
|
|
|
|
|
Media.prototype.getInnerHTML = function ( objectId ) |
|
|
|
Media.prototype.getInnerHTML = function ( objectId ) { |
|
|
|
{ |
|
|
|
|
|
|
|
var embeddingMethod = FCKConfig[ 'FlashEmbeddingMethod' ]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var embeddingMethod = FCKConfig[ 'FlashEmbeddingMethod' ]; |
|
|
|
var randomnumber = Math.floor( Math.random() * 1000001 ) ; |
|
|
|
var randomnumber = Math.floor( Math.random() * 1000001 ) ; |
|
|
|
var thisWidth = this.width ; |
|
|
|
var thisWidth = this.width ; |
|
|
|
var thisHeight = this.height ; |
|
|
|
var thisHeight = this.height ; |
|
|
|
|
|
|
|
|
|
|
|
var thisMediaType = 'single' ; |
|
|
|
var thisMediaType = 'single' ; |
|
|
|
if ( !GetE( 'rbFileType' ).checked ) |
|
|
|
if ( !GetE( 'rbFileType' ).checked ) { |
|
|
|
{ |
|
|
|
|
|
|
|
thisMediaType = 'mpl' ; |
|
|
|
thisMediaType = 'mpl' ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Alignment
|
|
|
|
// Alignment
|
|
|
|
var cssalign = '' ; |
|
|
|
var cssalign = '' ; |
|
|
|
var cssfloat = '' ; |
|
|
|
var cssfloat = '' ; |
|
|
|
if ( this.align == 'center' ) |
|
|
|
if ( this.align == 'center') { |
|
|
|
{ |
|
|
|
|
|
|
|
cssalign = 'margin-left: auto;margin-right: auto;' ; |
|
|
|
cssalign = 'margin-left: auto;margin-right: auto;' ; |
|
|
|
} |
|
|
|
} else if ( this.align == 'right' ) { |
|
|
|
else if ( this.align == 'right' ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
cssfloat = 'float: right;' ; |
|
|
|
cssfloat = 'float: right;' ; |
|
|
|
} |
|
|
|
} else if ( this.align == 'left' ) { |
|
|
|
else if ( this.align == 'left' ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
cssfloat = 'float: left;' ; |
|
|
|
cssfloat = 'float: left;' ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var s = ''; |
|
|
|
var s = ''; |
|
|
|
|
|
|
|
|
|
|
|
s += '\n'; |
|
|
|
s += '\n'; |
|
|
|
|
|
|
|
|
|
|
|
s += '<div id="player' + randomnumber + '-parent" style="text-align: center;' + cssfloat + '">\n'; |
|
|
|
s += '<div id="player' + randomnumber + '-parent" style="text-align: center;' + cssfloat + '">\n'; |
|
|
|
s += '<div style="border-style: none; height: ' + thisHeight + 'px; width: ' + thisWidth + 'px; overflow: hidden; background-color: rgb(220, 220, 220); ' + cssalign + '">' ; |
|
|
|
s += '<div style="border-style: none; height: ' + thisHeight + 'px; width: ' + thisWidth + 'px; overflow: hidden; background-color: rgb(220, 220, 220); ' + cssalign + '">' ; |
|
|
|
|
|
|
|
|
|
|
|
if (embeddingMethod == 'swfobject') |
|
|
|
if (embeddingMethod == 'swfobject') { |
|
|
|
{ |
|
|
|
|
|
|
|
s += '<script src="' + FCKConfig.ScriptSWFObject + '" type="text/javascript"></script>\n' ; |
|
|
|
s += '<script src="' + FCKConfig.ScriptSWFObject + '" type="text/javascript"></script>\n' ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -497,13 +486,14 @@ Media.prototype.getInnerHTML = function ( objectId ) |
|
|
|
|
|
|
|
|
|
|
|
// A hidden div containing setting, added width, height, overflow for MSIE7
|
|
|
|
// A hidden div containing setting, added width, height, overflow for MSIE7
|
|
|
|
s += '<div id="player' + randomnumber + '-config" style="display: none; visibility: hidden; width: 0px; height: 0px; overflow: hidden;">' ; |
|
|
|
s += '<div id="player' + randomnumber + '-config" style="display: none; visibility: hidden; width: 0px; height: 0px; overflow: hidden;">' ; |
|
|
|
// Save settings.
|
|
|
|
|
|
|
|
for ( var i in this ) |
|
|
|
// Save settings
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
//this prints extra params see #4217
|
|
|
|
|
|
|
|
for ( var i in this ) { |
|
|
|
if ( !i || !this[i] ) continue ; |
|
|
|
if ( !i || !this[i] ) continue ; |
|
|
|
if ( !i.match( /(set|get)/ ) ) |
|
|
|
if ( !i.match( /(set|get)/ ) ) { |
|
|
|
{ |
|
|
|
//s += i + '=' + this[i] + ' ' ;
|
|
|
|
s += i + '=' + this[i] + ' ' ; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
s += '</div>' ;
|
|
|
|
s += '</div>' ;
|
|
|
@ -511,14 +501,11 @@ Media.prototype.getInnerHTML = function ( objectId ) |
|
|
|
// The player's area.
|
|
|
|
// The player's area.
|
|
|
|
s += '<div id="player' + randomnumber + '">' ; |
|
|
|
s += '<div id="player' + randomnumber + '">' ; |
|
|
|
|
|
|
|
|
|
|
|
if ( embeddingMethod == 'swfobject' ) |
|
|
|
if ( embeddingMethod == 'swfobject' ) { |
|
|
|
{ |
|
|
|
|
|
|
|
s += '<a href="http://www.macromedia.com/go/getflashplayer" target="_blank">Get the Flash Player</a> to see this video.' ; |
|
|
|
s += '<a href="http://www.macromedia.com/go/getflashplayer" target="_blank">Get the Flash Player</a> to see this video.' ; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( embeddingMethod == 'object' || embeddingMethod == 'adobe' ) |
|
|
|
if (embeddingMethod == 'object' || embeddingMethod == 'adobe' ) { |
|
|
|
{ |
|
|
|
|
|
|
|
var p = '' ; // Parameters.
|
|
|
|
var p = '' ; // Parameters.
|
|
|
|
var v = '' ; // Variables.
|
|
|
|
var v = '' ; // Variables.
|
|
|
|
|
|
|
|
|
|
|
@ -532,8 +519,7 @@ Media.prototype.getInnerHTML = function ( objectId ) |
|
|
|
v += 'height=' + thisHeight + '&'; |
|
|
|
v += 'height=' + thisHeight + '&'; |
|
|
|
v += 'autostart=' + this.play + '&'; |
|
|
|
v += 'autostart=' + this.play + '&'; |
|
|
|
|
|
|
|
|
|
|
|
if ( thisMediaType == 'mpl' ) |
|
|
|
if ( thisMediaType == 'mpl' ) { |
|
|
|
{ |
|
|
|
|
|
|
|
v += 'file=' + this.purl + '&'; |
|
|
|
v += 'file=' + this.purl + '&'; |
|
|
|
v += 'autoscroll=true&'; |
|
|
|
v += 'autoscroll=true&'; |
|
|
|
p += 'allowscriptaccess="always" '; |
|
|
|
p += 'allowscriptaccess="always" '; |
|
|
@ -543,91 +529,58 @@ Media.prototype.getInnerHTML = function ( objectId ) |
|
|
|
var dispHeight = thisHeight ; |
|
|
|
var dispHeight = thisHeight ; |
|
|
|
var dispThumbs = false ; |
|
|
|
var dispThumbs = false ; |
|
|
|
|
|
|
|
|
|
|
|
if ( this.dispPlaylist != 'none' ) |
|
|
|
if ( this.dispPlaylist != 'none' ) { |
|
|
|
{ |
|
|
|
if ( this.dispPlaylist == 'right' ) { |
|
|
|
if ( this.dispPlaylist == 'right' ) |
|
|
|
if ( this.playlistDim.length > 0 ) { |
|
|
|
{ |
|
|
|
|
|
|
|
if ( this.playlistDim.length > 0 ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dispWidth = thisWidth - this.playlistDim ; |
|
|
|
dispWidth = thisWidth - this.playlistDim ; |
|
|
|
if ( this.playlistDim < 100 ) |
|
|
|
if ( this.playlistDim < 100 ) { |
|
|
|
{ |
|
|
|
|
|
|
|
dispThumbs = false ; |
|
|
|
dispThumbs = false ; |
|
|
|
} |
|
|
|
} else { |
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dispThumbs = true ; |
|
|
|
dispThumbs = true ; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
else |
|
|
|
if ( thisWidth >= 550 ) { |
|
|
|
{ |
|
|
|
|
|
|
|
if ( thisWidth >= 550 ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dispWidth = thisWidth - 200 ; |
|
|
|
dispWidth = thisWidth - 200 ; |
|
|
|
dispThumbs = true ; |
|
|
|
dispThumbs = true ; |
|
|
|
} |
|
|
|
} else if ( thisWidth >= 450 ) { |
|
|
|
else if ( thisWidth >= 450 ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dispWidth = thisWidth - 100 ; |
|
|
|
dispWidth = thisWidth - 100 ; |
|
|
|
dispThumbs = false ; |
|
|
|
dispThumbs = false ; |
|
|
|
} |
|
|
|
} else if ( thisWidth >= 350 ) { |
|
|
|
else if ( thisWidth >= 350 ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dispWidth = thisWidth - 50 ; |
|
|
|
dispWidth = thisWidth - 50 ; |
|
|
|
dispThumbs = false ; |
|
|
|
dispThumbs = false ; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
v += 'displaywidth=' + dispWidth + '&' ; |
|
|
|
v += 'displaywidth=' + dispWidth + '&' ; |
|
|
|
} |
|
|
|
} else if ( this.dispPlaylist == 'below' ) { |
|
|
|
else if ( this.dispPlaylist == 'below' ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dispThumbs = true ; |
|
|
|
dispThumbs = true ; |
|
|
|
|
|
|
|
if ( this.playlistDim.length > 0 ) { |
|
|
|
if ( this.playlistDim.length > 0 ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dispHeight = thisWidth - this.playlistDim ; |
|
|
|
dispHeight = thisWidth - this.playlistDim ; |
|
|
|
} |
|
|
|
} else { |
|
|
|
else |
|
|
|
if ( thisHeight >= 550 ) { |
|
|
|
{ |
|
|
|
|
|
|
|
if ( thisHeight >= 550 ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dispHeight = thisWidth - 200 ; |
|
|
|
dispHeight = thisWidth - 200 ; |
|
|
|
} |
|
|
|
} else if ( thisHeight >= 450 ) { |
|
|
|
else if ( thisHeight >= 450 ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dispHeight = thisHeight - 150 ; |
|
|
|
dispHeight = thisHeight - 150 ; |
|
|
|
} |
|
|
|
} else if ( thisHeight >= 350 ) { |
|
|
|
else if ( thisHeight >= 350 ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dispHeight = thisHeight - 100 ; |
|
|
|
dispHeight = thisHeight - 100 ; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
v += 'displayheight=' + dispHeight + '&' ; |
|
|
|
v += 'displayheight=' + dispHeight + '&' ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( this.playlistThumbs == 'false' ) |
|
|
|
if ( this.playlistThumbs == 'false' ) { |
|
|
|
{ |
|
|
|
|
|
|
|
dispThumbs = false ; |
|
|
|
dispThumbs = false ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
v += 'thumbsinplaylist=' + dispThumbs + '&' ; |
|
|
|
v += 'thumbsinplaylist=' + dispThumbs + '&' ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
v += 'shuffle=false&' ; |
|
|
|
v += 'shuffle=false&' ; |
|
|
|
if (this.loop) |
|
|
|
if (this.loop) { |
|
|
|
{ |
|
|
|
|
|
|
|
v += 'repeat=list&' ; |
|
|
|
v += 'repeat=list&' ; |
|
|
|
} |
|
|
|
} else { |
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
v += 'repeat=' + this.loop + '&' ; |
|
|
|
v += 'repeat=' + this.loop + '&' ; |
|
|
|
} |
|
|
|
} |
|
|
|
//v += 'transition=bgfade&' ;
|
|
|
|
//v += 'transition=bgfade&' ;
|
|
|
|
} |
|
|
|
} else { |
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
v += 'file=' + this.url + '&' ; |
|
|
|
v += 'file=' + this.url + '&' ; |
|
|
|
v += 'repeat=' + this.loop + '&' ; |
|
|
|
v += 'repeat=' + this.loop + '&' ; |
|
|
|
v += 'image=' + this.iurl + '&' ; |
|
|
|
v += 'image=' + this.iurl + '&' ; |
|
|
@ -639,39 +592,34 @@ Media.prototype.getInnerHTML = function ( objectId ) |
|
|
|
v += 'showdigits=' + this.displayDigits + '&' ; |
|
|
|
v += 'showdigits=' + this.displayDigits + '&' ; |
|
|
|
v += 'shownavigation=' + this.displayNavigation + '&';
|
|
|
|
v += 'shownavigation=' + this.displayNavigation + '&';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// SET THE COLOR OF THE TOOLBAR
|
|
|
|
// SET THE COLOR OF THE TOOLBAR
|
|
|
|
var colorChoice1 = this.toolcolor ; |
|
|
|
var colorChoice1 = this.toolcolor ; |
|
|
|
if ( colorChoice1.length > 0 ) |
|
|
|
if ( colorChoice1.length > 0 ) { |
|
|
|
{ |
|
|
|
|
|
|
|
colorChoice1 = colorChoice1.replace( '#', '0x' ) ; |
|
|
|
colorChoice1 = colorChoice1.replace( '#', '0x' ) ; |
|
|
|
v += 'backcolor=' + colorChoice1 + '&' ; |
|
|
|
v += 'backcolor=' + colorChoice1 + '&' ; |
|
|
|
} |
|
|
|
} |
|
|
|
// SET THE COLOR OF THE TOOLBARS TEXT AND BUTTONS
|
|
|
|
// SET THE COLOR OF THE TOOLBARS TEXT AND BUTTONS
|
|
|
|
var colorChoice2 = this.tooltcolor ; |
|
|
|
var colorChoice2 = this.tooltcolor ; |
|
|
|
if ( colorChoice2.length > 0 ) |
|
|
|
if ( colorChoice2.length > 0 ) { |
|
|
|
{ |
|
|
|
|
|
|
|
colorChoice2 = colorChoice2.replace( '#', '0x' ) ; |
|
|
|
colorChoice2 = colorChoice2.replace( '#', '0x' ) ; |
|
|
|
v += 'frontcolor=' + colorChoice2 + '&' ; |
|
|
|
v += 'frontcolor=' + colorChoice2 + '&' ; |
|
|
|
} |
|
|
|
} |
|
|
|
// SET COLOR OF ROLLOVER TEXT AND BUTTONS
|
|
|
|
// SET COLOR OF ROLLOVER TEXT AND BUTTONS
|
|
|
|
var colorChoice3 = this.tooltrcolor ; |
|
|
|
var colorChoice3 = this.tooltrcolor ; |
|
|
|
if ( colorChoice3.length > 0 ) |
|
|
|
if ( colorChoice3.length > 0 ) { |
|
|
|
{ |
|
|
|
|
|
|
|
colorChoice3 = colorChoice3.replace( '#', '0x' ) ; |
|
|
|
colorChoice3 = colorChoice3.replace( '#', '0x' ) ; |
|
|
|
v += 'lightcolor=' + colorChoice3 + '&' ; |
|
|
|
v += 'lightcolor=' + colorChoice3 + '&' ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// SET COLOR OF BACKGROUND
|
|
|
|
// SET COLOR OF BACKGROUND
|
|
|
|
var colorChoice4 = this.bgcolor ; |
|
|
|
var colorChoice4 = this.bgcolor ; |
|
|
|
if ( colorChoice4.length > 0 ) |
|
|
|
if ( colorChoice4.length > 0 ) { |
|
|
|
{ |
|
|
|
|
|
|
|
colorChoice4 = colorChoice4.replace( '#', '0x' ) ; |
|
|
|
colorChoice4 = colorChoice4.replace( '#', '0x' ) ; |
|
|
|
v += 'screencolor=' + colorChoice4 + '&' ; |
|
|
|
v += 'screencolor=' + colorChoice4 + '&' ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
v += 'logo=' + this.wmurl + '&' ; |
|
|
|
v += 'logo=' + this.wmurl + '&' ; |
|
|
|
if ( this.rurl.length > 0 ) |
|
|
|
if ( this.rurl.length > 0 ) { |
|
|
|
{ |
|
|
|
|
|
|
|
v += 'recommendations=' + this.rurl + '&' ; |
|
|
|
v += 'recommendations=' + this.rurl + '&' ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|