Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2012-01-04 18:17:30

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_youtube

v1.0.1 now out. Just a small update to fix a bug with the HD parameter.

Offline

#14 2012-09-24 13:57:51

debeo
Member
Registered: 2012-09-24
Posts: 16

Re: arc_youtube

Hi everyone!

Is there a way to set param attribute (wmode=“transparent”) to embed tag inside ‘player-container’ div? I have lightbox on the same page as videos.

Thanx!

Offline

#15 2012-09-25 13:04:23

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: arc_youtube

debeo wrote:

Is there a way to set param attribute (wmode=“transparent”) to embed tag inside ‘player-container’ div? I have lightbox on the same page as videos.

Hi! You should be able to transform the tag output with jQuery or etc_query, if there is no simpler solution.

Offline

#16 2014-01-24 14:52:36

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 446
Website

Re: arc_youtube

Is there a way to have closed captions automatically enabled?

Usually this is added to the youtube id:

?rel=0&cc_load_policy=1

Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#17 2014-01-24 20:03:30

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_youtube

Kjeld wrote #278444:

Is there a way to have closed captions automatically enabled?

Usually this is added to the youtube id:

?rel=0&cc_load_policy=1...

Hi Kjeld, currently there isn’t a way of auto enabling the closed captions, but I’m looking into adding support for this for you. I’ve added cc_load_policy=1 but it doesn’t appear to be working as expected. Could you perhaps give me an example of a video where you know this parameter actually works so that I can test the updated plugin code is actually working?

Offline

#18 2014-01-26 14:59:54

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 446
Website

Re: arc_youtube

Thank you very much, Andy.

the ?rel=0& part is essential, too. I added ?rel=0&cc_load_policy=1 to the YouTube ID in the custom field used for your plugin in the video in this article.

But I also discovered another easier way. Check “Always show captions” in the Account Settings of your YouTube account… That appears to work just fine as you can see here.

Unfortunately, the YouTube captions don’t display on the iPhone and iPad, but that is not an issue of the plugin, but of IOS.

Considering that YouTube Account Settings offers the “Always show captions” option, I’m not sure anymore now if your plugin still needs this function. I’m OK with just using the Account Settings option, but others may think differently?


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#19 2014-02-03 19:58:36

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_youtube

Hi Kjeld,

I’ve added the parameters cc (equivalent of cc_load_policy) and related (rel) to the tag. According to Youtube’s API docs you should only need to use cc_load_policy=1 to load the captions by default, but it doesn’t seem to work for me. rel=0 turns off the related videos.

Offline

#20 2014-02-04 00:48:31

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 446
Website

Re: arc_youtube

Thanks for checking it out, Andy.

As I wrote above, it now seems to work for me with “Always show captions” turned on in the Account Settings of my YouTube account. Does this work for you as well?


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#21 2014-02-04 19:40:30

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_youtube

Kjeld wrote #278650:

As I wrote above, it now seems to work for me with “Always show captions” turned on in the Account Settings of my YouTube account. Does this work for you as well?

Hi Kjeld, as I understand it the option in the settings only enables captions by default for videos you view. cc_load_policy is by default set to 0 which means captions will be shown for a user that has opted to have them always enabled, otherwise they will be off. cc_load_policy=1 should ensure that the captions are on for all users. The way to check this is to open a page with your embedded video in using something like Chrome’s incognito window where any settings you have made in Youtube won’t affect the video and you can check how it will look to other users of your page.

Offline

#22 2014-02-05 03:13:05

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 446
Website

Re: arc_youtube

monkeyninja wrote #278665:

Hi Kjeld, as I understand it the option in the settings only enables captions by default for videos you view. cc_load_policy is by default set to 0 which means captions will be shown for a user that has opted to have them always enabled, otherwise they will be off. cc_load_policy=1 should ensure that the captions are on for all users. The way to check this is to open a page with your embedded video in using something like Chrome’s incognito window where any settings you have made in Youtube won’t affect the video and you can check how it will look to other users of your page.

In Chrome’s incognito window the captions do indeed not automatically display for me. But after I have turned them on for clip they are automatic for all others as well.

Too bad you can’t make cc_load_policy=1 work in the plugin.


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#23 2014-02-11 12:06:24

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 446
Website

Re: arc_youtube

I installed the latest version of your plugin and set cc to 1, but the captions do not show. Is that still the issue you previously mentioned that you were having?


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#24 2014-02-11 22:26:45

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_youtube

Kjeld wrote #278812:

I installed the latest version of your plugin and set cc to 1, but the captions do not show. Is that still the issue you previously mentioned that you were having?

I’ve taken another look through the Youtube docs and realised that the cc_load_policy parameter has been deprecated, so it will not work anymore.

I’m currently working on a new version of the plugin and will remove this and some other deprecated parameters as it seems that my plugin has a few redundant parameters now.

The only way you can enable captions on the video by default now is if you own the video and can enable them from the video’s settings.

Offline

Board footer

Powered by FluxBB