I did following steps to apply imagecache preset to the video thumbnail image.
1. Created tpl.php file for view
2. Did following changes into the tpl.php file

<?php foreach ($fields as $id => $field): ?>
  <?php if (!empty($field->separator)): ?>
    <?php print $field->separator; ?>
  <?php endif; ?>

  <<?php print $field->inline_html;?> class="views-field-<?php print $field->class; ?>">
    <?php if ($field->label): ?>
      <!--label class="views-label-<?php print $field->class; ?>">
        <?php //print $field->label; 
		if($field->label == 'Nid') $nid = trim(strip_tags($field->content));
		?>:
      </label-->
    <?php endif; ?>
      <?php
      // $field->element_type is either SPAN or DIV depending upon whether or not
      // the field is a 'block' element type or 'inline' element type.
	  $path = htmlspecialchars(substr(htmlentities($field->content, ENT_QUOTES), strpos(htmlentities($field->content, ENT_QUOTES), 'http://')), ENT_NOQUOTES);
	  $path = preg_replace('/&amp;quot;/' , '', substr($path, 0,  strpos($path, 'alt')));
	  $path = substr($path, strpos($path, "/sites"));
	  if($field->label == 'Thumbnail'):
		  print l(html_entity_decode(theme_imagecache('image_316x176', $path)), "node/$nid", array(
			'html' => TRUE,
			'attributes' => array('title' => t('Go to the previous image.')),
		  ));
	  else:
      ?>
      <<?php print $field->element_type; ?> class="field-content"><?php print $field->content; ?></<?php print $field->element_type; ?>>
  </<?php print $field->inline_html;?>>
<?php 
		endif;
endforeach; ?>

This is a quick fix as video module is taking default image size settings.
But it would be great if we get imagecache preset for selection while setting format in view.

I am working on this. If anyone who already fixed this please update the patch here.

Comments

hypertext200’s picture

thanks for your contribution, we video module development appreciate your work, and hope to continue with a another addon to the module

mandarmbhagwat78’s picture

StatusFileSize
new2.84 KB

I am adding imagecache preset to the view to render video thumbnail image.
I am attaching video_views_handler_field_image.inc file, which I modified. Please remove _.txt before use.

But I am facing following issues:
1. video thumbnail field label is not changing as per format selection.
2. rendering only thumbnail image even though selected value is 'Preview' or imagecache preset.

Require help from video module development team.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

lort’s picture

.. is anyone still working on this?