NYCPHP Meetup

[joomla] K2 and Allvideos - How to do a Youtube thumbnail?

David Roth davidalanroth at gmail.com
Wed Dec 28 06:34:32 EST 2011


Hi Donna.

Thanks for your post.

This is my understanding, which could be totally wrong but here it goes.

I installed K2 for the first time using Joomla 1.7.3. When testing it out to put in a Youtube video link, it complained that Allvideos wasn't installed.
So I installed Allvideos, but still have not been able to figure a way to have my own thumbnail/poster image displayed with the embedded Youtube player.
I saw on the website for Allvideos they mentioned a high-traffic website that used Allvideos, located at:
http://www.impactwrestling.com
While looking at the website, I noticed on the right hand side of the screen they have labeled a "Video Gallery". It appears to me they are able to have a thumbnail of their own as the poster for the Youtube video, and when you click on the video it starts.
I did a View HTML Source and could see they use the K2 routines and also make reference to vidthumb (which I couldn't find as part of Allvideos) with a link to a JPG for their thumbnails.

You can do with K2 and Allvideos this:
{youube}id_code_for_youtube_video_goes_here{/youtube} and it will take care of the embedded video player for you. I have seen some examples where you can pass the width and height of the player window through, but no way that I could find to specific an image to be used as the poster/thumbnail. I'm guessing that it supports doing this locally hosted videos such as M4V, because it might actually insert your graphic into the player.

David



On Dec 28, 2011, at 5:24 AM, Donna Marie Vincent wrote:

> I use hwdvideoshare because it does use images for videos. But can you not use youtubes embed code in K2 instead of allvideos? That would do it. 
> 
> Sent from my iPhone
> 
> On Dec 28, 2011, at 4:01 AM, David Roth <davidalanroth at gmail.com> wrote:
> 
>> Thanks for the reply, Mark.
>> 
>> I looked at AllVideosReloaded and it doesn't look like it supports an img for use with Youtube unless I overlooked something.
>> 
>> David
>> 
>> On Dec 27, 2011, at 7:41 PM, Mark Holberg wrote:
>> 
>>> David,
>>> 
>>> I believe with a locally hosted video you place a .jpg with the same file base name as the video, and it becomes the poster image (image that displays before the video plays).
>>> 
>>> My first instinct would be to try placing a jpg with the same name as the YouTube video in the base folder for the locally hosted videos - as specified in the AllVideos plugin.
>>> 
>>> When I used AllVideosReloaded with Joomla 1.5, (either from their doc or the JW Player site - I don't remember which right off) code like this would work {m4v img="poster/testimonial-poster.jpg" width="440" height="266"}sbhc1{/m4v}
>>> 
>>> if the structure was /images/stories/video
>>> then poster would be /images/stories/poster
>>> 
>>> Whether you can designate a poster image regardless of whether you are streaming a local or remote video I can't say. I never tried remote.
>>> 
>>> Hope this spares you the several bruises I suffered banging my head against the wall on this problem.
>>> Mark
>>> 
>>> 
>>> 
>>> On 12/27/2011 4:49 AM, David Roth wrote:
>>>> Anyone familiar with K2 and Allvideos? I installed K2 andIn the  it looks very useful.  (Thanks again Stephen Britton for recommending it.) I then needed to install Allvideos so it would work with media.
>>>> 
>>>> I want to be able to have embedded Youtube links with control over the thumbnail being displayed, but since Youtube limits your selection to three random video frames to act as the "poster" or thumbnail, I'd prefer to select my own graphic and have it displayed.
>>>> 
>>>> So I have been checking out K2 and Allvideos. On Joomlaworks.gr they have as an example of a website using their Allvideos plug-in here:
>>>> http://www.impactwrestling.com
>>>> 
>>>> Look in the above URL and see on the right where it says Video Gallery. Notice how a graphic is displayed first in the youtube video before it's played and then it proceeds normally to play the Youtube video. That's what I want to be able to do, create my own graphic to display before the user clicks on the video.
>>>> 
>>>> Since I'm new to K2 and Allvideos as I mentioned, it's not clear to me how this is being accomplished to display these Youtube videos with the thumbnails. I poked around a little in the HTML but that's only going to show me after it's been processed by the plug-ins.
>>>> 
>>>> I've seen example code like this:
>>>> 
>>>> {youtube}heu37ej3qs{/youtube}
>>>> 
>>>> which embeds a Youtube player. But I've been unable to find an example of where a graphic image to be used as the thumbnail is being specified.
>>>> 
>>>> Any brilliant insight to this would be greatly appreciated.
>>>> 
>>>> David Roth
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> New York PHP SIG: Joomla! Mailing List
>>>> http://lists.nyphp.org/mailman/listinfo/joomla
>>>> 
>>>> NYPHPCon 2006 Presentations Online
>>>> http://www.nyphpcon.com
>>>> 
>>>> Show Your Participation in New York PHP
>>>> http://www.nyphp.org/show_participation.php
>>>> 
>>> 
>>> -- 
>>> Mark Holberg
>>> WayNorth Web
>>> Complete Web Services - Design, Development&   Marketing
>>> 200 Washington St., Suite 307
>>> Watertown, NY 13601
>>> 315-486-0615
>>> http://www.WayNorth.com




More information about the Joomla mailing list