When I am trying to add video using Vimeo URL that time alert message comes. so please give me a better solution.
-
Can you please post the error messageRaj Mohan R– Raj Mohan R2019年07月04日 06:07:04 +00:00Commented Jul 4, 2019 at 6:07
-
Attention Error: "Video not found" <=== already mentioned sir. thanksSarvesh Patel– Sarvesh Patel2019年07月04日 06:54:02 +00:00Commented Jul 4, 2019 at 6:54
-
this worked for me on version 2.3.4 github.com/magento/magento2/commit/…Seefan– Seefan2021年03月21日 18:00:50 +00:00Commented Mar 21, 2021 at 18:00
1 Answer 1
What magento2 version are you using? Just pasted this Vimeo video url in a Magento 2.3.1 and works perfectly: https://player.vimeo.com/video/298200022
That url comes from the sharing Iframe box, check the image:
It seems that some vimeo videos are available trough the api and some others aren't, for example:
This video is not available through the url Magento2 uses to get it:
https://player.vimeo.com/video/295556470
Magento calls: https://vimeo.com/api/v2/video/295556470.json
curl -I https://vimeo.com/api/v2/video/295556470.json == 404 Not Fount
This other one is available:
https://player.vimeo.com/video/298200022
Magento calls: https://vimeo.com/api/v2/video/298200022.json
curl -I https://vimeo.com/api/v2/video/298200022.json == 200 OK
If we use a video that returns a 404 the message Video Not Found is then triggered, so you have to make sure the video you are trying to use is available through the Api, probably this is a setting for the video in Vimeo
-
Yes i did that but still not works.Sarvesh Patel– Sarvesh Patel2019年07月04日 09:03:39 +00:00Commented Jul 4, 2019 at 9:03
-
what is your magento version? did you try with a different video?SantiBM– SantiBM2019年07月04日 12:06:48 +00:00Commented Jul 4, 2019 at 12:06
-
Version Magento 2.3.1 and yes I tried sirSarvesh Patel– Sarvesh Patel2019年07月04日 12:14:08 +00:00Commented Jul 4, 2019 at 12:14
-
Try adding some breakpoints in this file which is the one throwing the error: vendor/magento/module-product-video/view/adminhtml/web/js/get-video-information.jsSantiBM– SantiBM2019年07月04日 14:01:48 +00:00Commented Jul 4, 2019 at 14:01
-
Thank you I will check it, sirSarvesh Patel– Sarvesh Patel2019年07月05日 03:33:46 +00:00Commented Jul 5, 2019 at 3:33