/** * Get the necessary embed parameters for embedding a flash object. For now we assume * the flash object will be as big as the dimensions of the player. * @param string @config The Player configuration that is going to be embedded * @return array The array with the flash object dimensions */ public static function getEmbedParameters() { //If no config has been passed, use the player defaults. if (LongTailFramework::$current_config == "") { LongTailFramework::loadPlayerFlashVars(); } $flash_vars = LongTailFramework::$loaded_flash_vars; $params = array("width" => $flash_vars["Basic Player Settings"]["General"]["width"]->getDefaultValue(), "height" => $flash_vars["Basic Player Settings"]["General"]["height"]->getDefaultValue(), "controlbar" => $flash_vars["Basic Player Settings"]["Appearance"]["controlbar"]->getDefaultValue()); return $params; }