container's height in pixels
*/
IZKflashDalai.prototype.setHeight = function(height) {
this.style.height = height;
}
/*
* METHOD loadVideoClip
*
* Requests a new pmmsid from DalaiLlama, if the
container is hidden it
* makes it visible
*
* @param pmmsid: string indicating a new target video clip for DalaiLlama
* @param captions: An array of caption strings, empty string or null
* @param skin: A string ("blue" or "grey") or null
*/
IZKflashDalai.prototype.loadVideoClip = function(pmmsid, captions, skin) {
var _skin = skin || "grey";
var _captions = captions || "";
this.player.PlayVideoLarge(pmmsid, _captions, _skin);
this.show();
}
/*
* METHOD openPlaylist
*
* Requests a playlist from DalaiLlama
*
* @param see DalaiLlama
*/
IZKflashDalai.prototype.openPlaylist = function(server, pls, start, startid) {
this.player.OpenPlaylist(server, pls, start, startid);
}
/*
* METHOD loadAudioClip
*
* Requests a new pmmsid from DalaiLlama, if the
container is hidden it
* makes it visible
*
* @param pmmsid: string indicating a new target video clip for DalaiLlama
* @param captions: An array of caption strings, empty string or null
* @param skin: A string ("blue" or "grey") or null
*/
IZKflashDalai.prototype.loadAudioClip = function(pmmsid, captions, skin) {
var _skin = skin || "grey";
var _captions = captions || "";
this.player.PlayAudioLarge(pmmsid, _captions, _skin);
this.show();
}
/*
* METHOD loadURL
*
* Requests a new url into the player's designated area.
*
* @param url: string indicating the new url
*/
IZKflashDalai.prototype.loadURL = function(url) {
this.iframe.src = url;
this.show();
}
/*
* METHOD setBgColor
*
* Sets the
element's background color:
*
* @param color: CSS string indicating a new color value for the
* containers background
*/
IZKflashDalai.prototype.setBgColor = function(color) {
this.style.backgroundColor = color;
}
/*
* METHOD show
*
* makes the
element visible
*/
IZKflashDalai.prototype.show = function() {
if(!this.isVisible()) {
this.style.display = "block";
}
if(this.curtain) {
this.curtainFrameStyle.display = "none";
this.curtainFrame.src = "";
window.currentItem = null;
window.newPlayerInstance = true;
window.g_MotifId = null;
window.g_expandOnLoad = false;
}
}
/*
* METHOD hide
*
* hides the
element
*/
IZKflashDalai.prototype.hide = function() {
if(this.isVisible()) {
this.style.display = "none";
this.iframe.src = "";
if(this.curtain) {
this.curtainFrameStyle.display = "none";
this.curtainFrame.src = "";
window.currentItem = null;
window.newPlayerInstance = true;
window.g_MotifId = null;
window.g_expandOnLoad = false;
}
}
}
/*
* METHOD isVisible
*
* @returns Boolean indicating whether the
element is visible or not
*/
IZKflashDalai.prototype.isVisible = function() {
if(this.style.display == "block") {
return true;
}
return false;
}
this.IZKflashDalai = new IZKflashDalai(this.DalaiLlama);