/** * Add multioptions for video quality * @param string $section * @param string $namespace * @param unknown_type $key * @param Zend_Form_Element $element * @param Zend_Form $form * @param Zend_Controller_Action $controller */ public function prepareConfigElement($section, $namespace, $key, Zend_Form_Element $element, Zend_Form $form, Zend_Controller_Action $controller) { // nothing to do if this isn't the right section if ($namespace != $this->getId()) { return; } switch ($key) { // add multioptions for veetle server ip selection case 'plugins_hulu_video_quality': if ($element instanceof Zend_Form_Element_Select) { $element->setMultiOptions(array('480_vp6' => '16x9 30fps Medium (480_vp6)', '400_h264' => '16x9 30fps H264 400K (400_h264)', '650_h264' => '16x9 30fps H264 650K (650_h264)', '1000_h264' => '16x9 30fps H264 Medium (1000_h264)')); } break; case 'plugins_hulu_preferred_cdn': if ($element instanceof Zend_Form_Element_Select) { $element->setMultiOptions(array('limelight' => 'Limelight', 'level3' => 'Level3', 'akamai' => 'Akamai')); } break; case 'plugins_hulu_selection_priority': if ($element instanceof Zend_Form_Element_Select) { $element->setMultiOptions(array('cdn' => X_Env::_('p_hulu_conf_value_priority_cdn'), 'quality' => X_Env::_('p_hulu_conf_value_priority_quality'))); } break; } }