Extension talk:YouTube

About this board

Create a video gallery?

11
Stormwatch (talkcontribs)

Is there a way to, using this extension, create a gallery of video thumbnails? (I tried to link to a Wikia page to provide an example of what I want, but the stupid spam filter detected it as spam.)

94rain (talkcontribs)

Try not add https://

Stormwatch (talkcontribs)
94rain (talkcontribs)
Stormwatch (talkcontribs)

Well, you did it with video files from the Commons. What I had in mind, as in my example, is a gallery of embedded YouTube videos. And this, I can't get to work.

Commuter3 (talkcontribs)

You simply copy the URL then post it in Special:Videos, where after the video is put on the wiki, you type in the name of the video and put it in the gallery.

TitusiMW (talkcontribs)

@Commuter3,

I am looking for exact same use case as described by @Stormwatch. Can you please clarify your comment above?


1/ Is the page Special:Videos created by this YouTube extension? I dont have this extension and I dont have this special page either. Got a bit confused because @94rain said no extension is needed to achieve this capability.


2/ When you add youtube video link to the Special:Videos, it will not upload the video file to my wiki installation, right? I want video files to stay in youtube and not bloat storage in my wiki. If I am understanding you correctly, you are saying that it will simply assign a name to the youtube video and then I can use that name in the thumbnail? Example above uses File:* format to link thumbnails to vides. If it is just the name on my wiki and not actual file, then you would you chnage code below?

File:Gulenie-MP4.ogv|Baby


3/ Is this all compatible with MW's built feature to link thumbnail to a separate MW page?

File:Gulenie-MP4.ogv|Baby|link=MediaWiki


What I am trying to do is have a thumbnail gallery of videos. Clicking on thumbnails will take me to another MW page. In that MW page, I would have youtube video embedded at top and have some text descirption at the bottom. I dont want video file upload on my wiki. It needs to stay on youtube.


Any help/pointers, greatly appreciated. Thanks!


Commuter3 (talkcontribs)

Only thumbnails? Enter the video link/code, as in i.ytimg.com/vi/[CODE]/[? (mg, hq, sd, maxres][default, 1, 2, 3].jpg

For video-thumbnail links to MW pages, do this:

<gallery>
VideoThumbnail1.png|Caption|link=Random Page
VideoThumbnail2.png|Caption|link=Random Page
VideoThumbnail2.png|Caption|link=Random Page
</gallery>

The images have to be formatted in a file format like png or jpg.

This post was hidden by Commuter3 (history)
This post was hidden by Commuter3 (history)
Mjk200 (talkcontribs)

you can download preview of video from youtubethumbnaildownloaderonline.com/?id=t0Q2otsqC4I

also download preview using browser extension from addons.mozilla.org/en-US/firefox/addon/thumbnail-downloader-online-hd/

Reply to "Create a video gallery?"

Visual Editor and Youtube Extension

1
95.223.7.205 (talkcontribs)

Can I insert youtube Videos with the help of the visual editor?

Reply to "Visual Editor and Youtube Extension"
TheAafi (DCW) (talkcontribs)

I embeded a YouTube video here and it appears the frame is leaning too much towards left. A suggestion is that it be made by default centric and alignment commands be allowed.

Reply to "Iframe alignment"

Could be max-width=100% for mobile?

4
B.Shapoval (talkcontribs)

How to set maximum width in per cent for mobile view?

B.Shapoval (talkcontribs)

I found following solution (to MediaWiki:Mobile.css):

@media screen and (max-width: 750px) {
    iframe {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
}

It works with images too, so no additional limitations needed.

Aafi (talkcontribs)

Doesn't appear to work in WMAU skin's mobile view? @Samwilson, do you happen to have any ideas?

Samwilson (talkcontribs)

@TheAafi: Setting iframe{ max-width:100%; <nowiki>}</nowiki> works in my testing. Possibly this is a change that the YouTube extension should make, rather than adding special handling in the WMAU skin.

Reply to "Could be max-width=100% for mobile?"

Provided ID could not be validated

2
ChasFortna (talkcontribs)

All of my embeded videos started showing this statement"Provided ID could not be validated." in place of the preview that was there previously.

ChasFortna (talkcontribs)

Found if you add the /youtu.be in the tag

<youtube>/youtu.be/x-XXxXXxxxX</youtube>

you get a frame with a button to Load the Video and then caution you about YouTube collecting personal information

Is there a way to go back to the preview?

Reply to "Provided ID could not be validated"

Lazy loading on iframe

1
Cory (talkcontribs)

Google PageSpeed Insights says too late on process embed YouTube in my site.

This extension has $wgYouTubeEnableLazyLoad option but using non-standard technique.

So, I make a simple patch to append loading="lazy" on <iframe>.

patch→ https://kimagurenote.net/file/YouTube-1.9.3_lazyloading.patch

see details in Japanese 日本語の説明はこちら

Please test it if you were in trouble because of SEO.

Thank you.

Reply to "Lazy loading on iframe"

Is it possible to change alignment of the video to middle?

1
37.195.67.61 (talkcontribs)

When you insert a video from youtube it is created aligned left

Is it possible to align it to the middle of the page?

Reply to "Is it possible to change alignment of the video to middle?"

YouTube nocookie (and Phabricator Tag)

2
Valerio Bozzolan (talkcontribs)

I would like to have the ability to use a custom YouTube URL, for example, to adopt the "YouTube nocookie" domain or an Invidious instance.

Also it could be nice to add a cute Phabricator tag to track this stuff. Do you like this idea?

Stefahn (talkcontribs)

I would consider using this extension too, if it could serve the video from youtube-nocookie.com instead of youtube.com. Any chance this can be implemented?

Reply to "YouTube nocookie (and Phabricator Tag)"
2003:F5:F025:0:193:158:60:154 (talkcontribs)

which URLs need to be whitelisted in $wgCSPHeader 'default-src' to still allow youtube embeds? I tried 'youtube.com' 'www.youtube.com' '*.youtube.com' 'youtu.be' to no avail. (videos work fine when CSP is disabled)

2003:F5:F025:0:193:158:60:154 (talkcontribs)

spamfilter doesn't let me post the link that worked :P

you need https and www. and it's youtube-nocookie.com followed by /embed/ (even the trailing / is needed)

Reply to "Youtube & CSP"

Other supported video services

2
Rob Kam (talkcontribs)

Other supported video services doesn't include Wikimedia Commons, please could this get added?

Valerio Bozzolan (talkcontribs)

Nope because Wikimedia Commons already works in your wiki out of the box without any extension. Check this:

InstantCommons

Reply to "Other supported video services"