Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › Lightbox protected embed shortcode requesting S3 video in wrong order
- This topic has 9 replies, 4 voices, and was last updated 7 years, 5 months ago by wpCommerce.
-
AuthorPosts
-
August 10, 2016 at 8:14 am #13644cball251Member
Hi there. I’m using the following shortcode on a page of my site:
[wp_lightbox_embed_protected_s3_video name=”intro-test.mp4″ bucket=”lessonsdm” width=”1000″ height=”563″]
The issue is that I get an error when I go to play the video [html5: Video file not found], and returns this URL:
[https://lessonsdm.s3.amazonaws.com/intro-test.mp4?…]
As you can see it’s placing the bucket before the “s3.amazonaws” in the request which seems to be causing the issue. Interestingly enough, the shortcode using cloudfront works just fine, except I need the videos to work on iOS devices. I had the video set to public when trying cloudFront, and they are now set to private when trying the “private s3 embed”. It is a properly encoded H.264 mp4.
I’ve scoured all 65 pages of the forum and can’t find anything on this, so any help is appreciated. My site is membership based, so if you need access to it I’ll need to provide you with login details.
Any help is appreciated!
August 10, 2016 at 9:24 pm #73923wpCommerceModeratorHi, Please provide a link to the page in question so I can take a look. Is there a folder containing the video? Does it work if you set to public?
May 30, 2017 at 9:16 pm #73924455FilmsMemberWas there ever a fix for this issue?
I am also having the same problem where the bucket is being placed at the beginning of the url [http://bucket.s3.amazonaws.com/video.mp4?…]
Please let me know what the solution was.
Thanks
May 30, 2017 at 11:54 pm #73925adminKeymasterPlease share a link to the page where you have the shortcode then we can inspect that page and see what is going wrong. Then we will be able to help you.
May 31, 2017 at 12:52 am #73926455FilmsMemberHere is the page with the shortcode:
[http://ds9documentary.com/testingground/]
June 1, 2017 at 7:40 am #73927wpCommerceModerator@455Films, Do you have this checkbox enabled in the General Settings? – Disable Shortcode Formatting
If so please uncheck it.
June 1, 2017 at 7:11 pm #73928455FilmsMemberI did that, but the link formatting is still incorrect. When I click on the image anchor, the lightbox player pops up and says “html 5 video file not found.”
The link it is trying to reach for the video is still putting the bucket first.
June 2, 2017 at 6:13 am #73929wpCommerceModeratorActually that’s not the issue here. The bucket name is supposed to be at the beginning. I followed your link to see If I can get more details from the S3 server. It seems to be returning this message:
The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.
Where is your bucket located?
June 2, 2017 at 9:45 pm #73930455FilmsMemberThe bucket was created at the root level of my Amazon S3 Console. The region is US-East (Ohio)
June 3, 2017 at 7:50 am #73931wpCommerceModeratorThanks. It looks like your bucket is hosted in a region that supports only Amazon S3 signature version 4.
http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
We will need to make some adjustments in our code so it works with this API. I have sent an email to your registered email address for site access. Let me know if you don’t receive it.
-
AuthorPosts
- You must be logged in to reply to this topic.