'fieldset', '#title' => t('General Behavior'), '#collapsible' => TRUE, '#collapsed' => FALSE ); // $form['menu']['video_displaydownloadmenutab'] = array( // '#type' => 'checkbox', // '#title' => t('Display download menu tab'), // '#default_value' => variable_get('video_displaydownloadmenutab', 1), // '#description' => t('Toggle display of menu tab to download video from the node page.') // ); // $form['menu']['video_displaydownloadlink'] = array( // '#type' => 'checkbox', // '#title' => t('Display download link'), // '#default_value' => variable_get('video_displaydownloadlink', 1), // '#description' => t('Toggle display of "download" link (below the node content in most themes).') // ); // $form['menu']['video_displayplaytime'] = array( // '#type' => 'checkbox', // '#title' => t('Display playtime'), // '#default_value' => variable_get('video_displayplaytime', 1), // '#description' => t('Toggle the display of the playtime for a video.') // ); // $form['menu']['video_displayfilesize'] = array( // '#type' => 'checkbox', // '#title' => t('Display filesize'), // '#default_value' => variable_get('video_displayfilesize', 1), // '#description' => t('Toggle the display of the filesize for a video.') // ); $form['menu']['video_autoplay'] = array( '#type' => 'checkbox', '#title' => t('Automatically start video on page load'), '#default_value' => variable_get('video_autoplay', TRUE), '#description' => t('Start the video when the page and video loads') ); $form['menu']['video_autobuffering'] = array( '#type' => 'checkbox', '#title' => t('Automatically start video buffering'), '#default_value' => variable_get('video_autobuffering', TRUE), '#description' => t('Start buffering video when the page and video loads') ); $form['player'] = array( '#type' => 'fieldset', '#title' => t('Video Extra Players'), '#collapsible' => TRUE, '#collapsed' => FALSE ); $form['player']['video_cortado'] = array( '#type' => 'textfield', '#title' => t('Path to OGG Cortado Player'), '#default_value' => variable_get('video_cortado', $base_url . '/cortado.jar'), '#description' => t('Copy your cortado.jar file to Drupal root and keep the setting un-changed.') ); $form['player']['mp4_play_in_flowplayer'] = array( '#type' => 'checkbox', '#title' => t('Play HQ MP4 files in Flash Player'), '#default_value' => variable_get('mp4_play_in_flowplayer', FALSE), '#description' => t('Play HQ MP4 files in Flash player.') ); // $gateways = _video_transcoder_types(); // print_r($gateways); // $gateway_options = array(); // foreach( $gateways as $gateway) { // $obj = new stdClass(); // $obj->option = array($gateway => _smsgateway_invoke( 'name', $gateway)); // $gateway_options[] = $obj; // } $form['tranccoder'] = array( '#type' => 'fieldset', '#title' => t('Video Transcoder'), '#collapsible' => FALSE, '#collapsed' => FALSE ); // TODO : write a common function to pick as help $help_transcoders = array(); $help_transcoders[] = l('FFMPEG Default module', 'http://drupal.org/node/722506'); $help_transcoders[] = l('FFMPEG Wrapper module', 'http://drupal.org/project/ffmpeg_wrapper'); $help_transcoders[] = l('ZENCODER Online Transcoder', 'http://zencoder.tv/'); $form['tranccoder']['vid_convertor'] = array( '#type' => 'radios', '#title' => t('Video transcoder'), '#default_value' => variable_get('vid_convertor', 'ffmpeg'), '#options' => $gateways, '#description' => t('Video transcoder will help you to video conversion and automatic thumbnail generaion. You must install !ffmpeg_wrapper module to enable ffmpeg_wrapper support. !list', array('!ffmpeg_wrapper' => l('ffmpeg_wrapper module', 'http://drupal.org/project/ffmpeg_wrapper'), '!list' => theme('item_list', $help_transcoders))) ); $form['tranccoder']['video_transcoder_path'] = array( '#type' => 'textfield', '#title' => t('Path to Video Transcoder'), '#description' => t('Path to executable, you can skip this if your usign ffmpeg_wrapper module support.'), '#default_value' => variable_get('video_transcoder_path', '/usr/bin/ffmpeg'), ); $form['tranccoder']['no_of_video_thumbs'] = array( '#type' => 'textfield', '#title' => t('No of video thumbnails'), '#description' => t('No of thumbnails extracting from video'), '#default_value' => variable_get('no_of_video_thumbs', 5), ); // ffmpeg wapper settings $video_converter = variable_get('vid_convertor', 'ffmpeg'); if($video_converter == 'ffmpeg') { $form['conv'] = array( '#type' => 'fieldset', '#title' => t('FFmpeg video conversion settings.'), '#collapsible' => FALSE, '#collapsed' => FALSE ); //auto thumb videos $form['conv']['autothumb'] = array( '#type' => 'fieldset', '#title' => t('Automatic video thumbnailing'), '#collapsible' => TRUE, '#collapsed' => TRUE ); $form['conv']['autothumb']['video_thumb_path'] = array( '#type' => 'textfield', '#title' => t('Path to Video Thumbnails'), '#description' => t('Path to save video thumbnails extracted from video'), '#default_value' => variable_get('video_thumb_path', 'video_thumbs'), ); $form['conv']['autothumb']['advanced'] = array( '#type' => 'fieldset', '#title' => t('Advanced settings'), '#collapsible' => TRUE, '#collapsed' => TRUE ); $form['conv']['autothumb']['advanced']['video_ffmpeg_thumbnailer_options'] = array( '#type' => 'textfield', '#title' => t('Video thumbnailer options'), '#description' => t('Provide the options for the thumbnailer. Available argument values are: ').'