Open codafogo opened 4 years ago
Happening for me too, on Craft 3.4.6. Nothing else changed on the site recently. Might be a CORS issue? See https://www.chromium.org/Home/chromium-security/extension-content-script-fetches/
Happening for us as well
I'm getting the same issue. Is it a limit from YouTube/Vimeo? For now, I've been using this as a fix:
{% set embedCode = "" %}
{% if 'youtu' in url %}
{% set id = '?v=' in url ? url|split('?v=') : url|split('youtube.com/') %}
{% set embedCode = id is iterable ? 'https://www.youtube.com/embed/' ~ id[1] : null %}
{% elseif 'vimeo' in url %}
{% set id = url|split('vimeo.com/') %}
{% if 'video/' in id[1] %}
{% set embedCode = id is iterable ? 'https://player.vimeo.com/' ~ id[1] : null %}
{% else %}
{% set embedCode = id is iterable ? 'https://player.vimeo.com/video/' ~ id[1] : null %}
{% endif %}
{% endif %}
Same issue, @siebird thanks for the interim fix!
Same issue, on Craft 3.4.23. @siebird thanks for the interim fix!
One note: the backend preview works for Vimeo but not YouTube.
Same problem here. The issue is only with YouTube. Strange enough, on my local site it works just fine. But in the live version (which is identical), all the YouTube videos don't work, only Vimeo functions...
@matanlevkowich I'm having exactly the same issue: the plugin works fine for YouTube videos locally, but not on the live site.
Was the ever a resolution for this both front-end and back-end Or have most of you migrated to another plugin now? If you migrated, what did you choose instead?
I ended up just uninstalling the plugin and changing my code to work without one. I created a field for Video ID (just the Video ID portion of the YouTube url). The drawback is that you can't see a preview of the video on the back-end to confirm you have the Video ID correct. All our videos are on YouTube, so this works for me.
This is the code I have for the video now, and I haven't had any problems since I made this change.
{% if component.videoId %}
<div class="video">
<iframe src="https://www.youtube.com/embed/{{ component.videoId }}?rel=0" frameborder="0" playsinline="0" allowfullscreen="true"></iframe>
</div>
{% endif %}
Had a similar issue as well, hopefully my solution helps someone.
Try updating the embed/embed dependency which this plugin relies on: composer update embed/embed
Dependency link: https://github.com/oscarotero/Embed
This dependency uses the API endpoint: http://www.youtube.com/oembed in older versions of it, when it should be using https://www.youtube.com/oembed. Using the http version will lead to getting a permission denied error.
https://github.com/oscarotero/Embed/pull/418/commits/7dc11da2c917572bfeb4cb32f63e27f877e2c3e8 fixed this.
This might be unrelated but it's worth noting. While debugging I noticed that YouTube was returning a reCAPTCHA on one of our production servers. I tested this on the server by using:
curl -i -X GET "https://www.youtube.com/watch?v=aqz-KE-bpKQ" | grep "To continue with your YouTube experience, please complete the form below."
Had a similar issue as well, hopefully my solution helps someone.
Try updating the embed/embed dependency which this plugin relies on: composer update embed/embed
Dependency link: https://github.com/oscarotero/Embed
This dependency uses the API endpoint: http://www.youtube.com/oembed in older versions of it, when it should be using https://www.youtube.com/oembed. Using the http version will lead to getting a permission denied error.
oscarotero/Embed@7dc11da fixed this.
This might be unrelated but it's worth noting. While debugging I noticed that YouTube was returning a reCAPTCHA on one of our production servers. I tested this on the server by using:
curl -i -X GET "https://www.youtube.com/watch?v=aqz-KE-bpKQ" | grep "To continue with your YouTube experience, please complete the form below."
Thanks for sharing!
Had a similar issue as well, hopefully my solution helps someone.
Try updating the embed/embed dependency which this plugin relies on: composer update embed/embed
Dependency link: https://github.com/oscarotero/Embed
This dependency uses the API endpoint: http://www.youtube.com/oembed in older versions of it, when it should be using https://www.youtube.com/oembed. Using the http version will lead to getting a permission denied error.
oscarotero/Embed@7dc11da fixed this.
This might be unrelated but it's worth noting. While debugging I noticed that YouTube was returning a reCAPTCHA on one of our production servers. I tested this on the server by using:
curl -i -X GET "https://www.youtube.com/watch?v=aqz-KE-bpKQ" | grep "To continue with your YouTube experience, please complete the form below."
This worked for me too. I used: "embed/embed": "v3.4.17"
in my composer.json
All videos across our whole site have disappeared. When I look at the back-end, it looks like the Video Embedder plug-in just stopped working, but I can’t find any reason for it to do so. The same thing happened Jan 20, 2020 and after a few hours it suddenly started working again. The plug-in is not functioning again now, Jan 27.
The field type is still “Video.” When I go into an entry that was working just earlier today and showing a preview of the video in the back-end, the preview is no longer displaying, and the video is missing from the front-end too, of course.