FYI, https://developers.google.com/youtube/js_api_reference

The deprecation of the YouTube JavaScript Player API was announced on January 27, 2015.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

guschilds’s picture

Status: Active » Needs review
FileSize
3.49 KB
3.49 KB

Thanks for bringing this up.

Attached are patches that remove the JS API option from the configuration settings in both the 7.x-1.x branch and 8.x-1.x branch.

It would be greatly appreciated if someone would apply these patches and test to ensure the rest of the configuration continues working as desired. They are pretty simple patches so I don't anticipate any negative side effects. Marking as "Needs review".

Thanks again!

guschilds’s picture

Status: Needs review » Needs work

Actually, after looking at the YouTube Embedded Players and Player Parameters, this option seems to still control the use of the IFrame API. We should probably leave the option in, but change the wording to make that clear.

  • guschilds committed a0a49b6 on 8.x-1.x
    Issue #2454215 by tyler.frankenstein, guschilds: Renamed JS API option...

  • guschilds committed 727d6ae on 7.x-1.x
    Issue #2454215 by tyler.frankenstein, guschilds: Renamed JS API option...
guschilds’s picture

Status: Needs work » Fixed

I've committed fixes for this to both the 7.x-1.x and 8.x-1.x branches. As previously mentioned, the enablejsapi option/parameter still enables use of the IFrame API, so I left the option, renamed it to IFrame API, and updated the link in the setting to the IFrame API documentation. Thanks again for bringing this up!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jenlampton’s picture

Status: Closed (fixed) » Active

@guschilds, be careful that strings run through t() don't end up with line breaks in them, otherwise those line-breaks will cause problems with translations.

There are several instances in this commit of strings in t() (usually form item descriptions) getting line-breaks added at the 80 character mark. Maybe your editor needs a Drupal plugin? :)

Reopening for a follow-up commit.

edit: it looks like the text #markup element could use that fix too! (that one was likely my fault)

guschilds’s picture

Status: Active » Fixed

Thanks for pointing this out @jenlampton. I went ahead and created #2924794: Remove line breaks within t() strings to address it since it involves code outside of this issue and I didn't see a follow up commit. Going to close this back up.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.