NYCPHP Meetup

NYPHP.org

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

David Roth davidalanroth at gmail.com
Wed Dec 28 04:01:38 EST 2011


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