Keyword

K2 and AllVideos - using K2 image as video poster

  • Ian Messenger
  • Ian Messenger's Avatar Topic Author
  • Offline
  • New Member
More
12 years 9 months ago #60924 by Ian Messenger
I have been tyring to use the standard K2 image as the video poster in JW Allvideos. After a lot of investigation, I worked out how to do it and I thought I would share it. This works, but probably does not cover all possibilities.
Using Jooma 1.7.3, K2 V2.5.4 and AllVideos 4.1.

In plugin/content/jw_allvideos/jw_allvideos.php :

around line 80 /* Video Parameters */
add this new line:

$postimage = ($params->get('postimage')); //new line

around line 230 add this line:

$output->posterFrame = $postimage; //new line

just above this line : // Width/height/source folder

in /components/com_k2/models/item.php around line 417 add this new line

else {
$item->videoType='allvideos';
$params->set('afolder', 'media/k2/audio');
$params->set('vfolder', 'media/k2/videos');
$params->set('postimage', $item->imageMedium); //new line

you can change 'Medium' to a more suitable size if you wish.

Hope this helps

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #60925 by peppertown
Good post, that looks useful!

Do you know if this would work with Youtube? If so, where do you store the thumbnail/poster for this to work? Thanks!

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #60926 by gaker
bump

is it ny possibiltiy to create Youtube thumbanils in Allvideos?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum