Talk:YouTube

From MediaWiki Widgets

Jump to:navigation, search

This is useful, thanks, but how do I change other parameters like dimensions (widescreen aspect ratio) and add a full-screen button? -Torley

Actually current version of the widget doesn't support these features. Do you know a page for developers where all these parameters are described? I'll be happy to add them. --Sergey Chernyshev 15:31, March 20, 2009 (UTC)
The YouTube API should have something useful. -- Mkailash 00:24, December 27, 2009 (UTC)

The widget is extremely useful, thanks! Is there a way to embed the video in image markup style formatting? -- Mkailash 00:24, December 27, 2009 (UTC)

Contents

Adding a way to link to certain part of YT clip

As per Youtubetime which appends #t=0m00s to a YT clip. Is it possible to add a var for to represent that in this widget? Thanks for the neat widget. --SomaticJourney 18:14, February 24, 2010 (UTC)

Yes, it should be relatively easy to add - it's just start parameter: http://code.google.com/apis/youtube/player_parameters.html#start --Sergey Chernyshev 19:22, February 24, 2010 (UTC)


play list

how to add youtube playlist?

there seems to be no way to do that - do you have documentation about that? --Sergey Chernyshev 20:30, October 4, 2010 (MDT)


Size of Video

Hoping that you could help me make the video embed smaller than the default! Great Widget BTW! --Coffeehound 21:50, January 21, 2011 (MST)

Added width & height parameters - enjoy ;) --Sergey Chernyshev 22:05, January 21, 2011 (MST)
Simply incredible! Thank you for the extremely fast reply and turn around! Works great for me now!--Coffeehound 07:44, January 22, 2011 (MST)


Set Video resolution

Would it be possible to add a video resolution button to the movie frame? So people have the option to choose to play the video in a higher resolution (it looks like the default settings are now such that the video will play in its lowest resolution, 360). Or would it be possible to select the highest resolution video available from youtube to play into a wiki page? Appreciated --Akettner 16:30, April 25, 2011 (MDT)

Setting to align widget left or right edge of a page?

Can you add a setting so that we can define the alignment of the widget. Currently its aligned to the left by default. It'd be nice if we can specify the location

Examples are:- {{#widget:YouTube|id=x7fw9Wvxq1k|height=21|width=400|left}..}

{{#widget:YouTube|id=x7fw9Wvxq1k|left|height=21|width=400}..} Wikimanz 22:07, November 5, 2011 (AST)

A better version

This uses the "new" format for YouTube embeds and adds a new "hd" parameter. If the user's browser is opted-in to the YouTube HTML5 trial, the embeds will use the HTML5 player.

<includeonly><iframe width="<!--{$width|escape:'html'|default:'425'}-->"
height="<!--{$height|escape:'html'|default:355}-->"
src="http://www.youtube.com/embed/<!--{$id|escape:'urlpathinfo'}-->?rel=0&hd=<!--{$hd|escape:'html'|default:'0'}-->"
frameborder="0" allowfullscreen></iframe></includeonly>

Remove everything from after the /noinclude tag and paste this in its place.

If your site uses HTTPS, change http to https in the source to prevent the insecure item warning. --BFeely 11:17, November 20, 2011 (AST)

Navigation
Toolbox