Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › Amazon S3 not playing the video in protected mode
- This topic has 13 replies, 2 voices, and was last updated 10 years, 11 months ago by carlb930.
-
AuthorPosts
-
November 27, 2013 at 9:58 pm #10123carlb930Member
I have read the prior posts, but still can’t get my videos to play in protected mode. They play fine in unprotected mode.
Here is my page with a test video to see what I mean: [http://bradfordconsultingcompanies.com/pbhv1a]
I have two short codes on that page; one for an embedded image and the other for an anchor text.
Here are the two shortcodes:
[wp_lightbox_protected_s3_video name=”S3+Protected+Video.mp4″ bucket=”pbhvseries” width=”850″ height=”478″ source=”S3VideoTest.png”]
[wp_lightbox_anchor_text_protected_s3_video name=”S3+Protected+Video.mp4″ bucket=”pbhvseries” width=”850″ height=”478″ text=”click here to open the s3 protected video”]
In the case of the embedded image, I’ll pulling both the image and the video from S3.
I have doubled checked both of my Amazon codes and they are correct. I have tried with all plugins disabled except LightBox and that didn’t solve the problem either.
Please advise….
Carl Bradford
Bradford Consulting Companies
November 27, 2013 at 10:36 pm #59278wpCommerceModeratorHi, have you checked the following post?
November 28, 2013 at 1:18 am #59279carlb930Memberes, I did read the post you referenced. Thanks for mentioned it however.
I did double check my S3 credentials. They are correct.
The name for my bucket is: pbhvseries which seems OK, and it works in uprotected mode.
On video encoding; I produced and rendered the video with Camtasia 8. The LightBox settings for the S3 protected mode does not offer an auto play like in your instruction video so I presume that you have made changes in the plugin since that instruction video was created (if autoplay is even required to work correctly). I did follow the links about encoding, but felt that if the video plays in unprotected, it must be encoded correctly. Is this a good assumption?
Carl Bradford
November 28, 2013 at 3:57 am #59280wpCommerceModeratorHi, have you simplified the name of the video as well? A name like the following is likely to cause issues:
name="S3+Protected+Video.mp4"
We still have the
autoplay
option. We just made it so you can now selectively enable/disable it on a shortcode (instead of enabling it globally in the settings). For example:[wp_lightbox_protected_s3_video name="video.mp4" bucket="pbhvseries" width="850" height="478" source="http://www.example.com/thumb.png" autoplay="true"]
November 28, 2013 at 3:08 pm #59281carlb930MemberOK, I have it working now. I unchecked the HTML5 video selections and then I used my splash image from my WordPress blog vs. hosting that on Amazon. For some reason the video works in protected mode, but when I also host my embedded image there it doesn’t work with that one. Not sure why. But at least now my videos are protected.
November 28, 2013 at 3:31 pm #59282carlb930MemberOh, I forgot to mention that I shortened the URLs for the S3 files as well and got rid of the + between words…I think that also helped; thanks for that suggestion
November 28, 2013 at 10:35 pm #59283wpCommerceModeratorHi, what is the URL to your embedded image? I tried to check the page link you shared but it doesn’t exist anymore.
November 30, 2013 at 6:03 pm #59284carlb930MemberYes, I removed it. I have move to my production page which is currently listed at: [http://bradfordconsultingcompanies.com/pbhv1]
The videos are now working in protected mode. However, I still have to use a locally hosted image as my embedded video vs. using one hosted on Amazon S3, but that works OK for me.
As I complete this series of videos, I’ll be placing them on my website.
Carl Bradford
December 1, 2013 at 12:22 am #59285wpCommerceModeratorHi, so everything is working fine now? I’m still not sure what you mean by “use a locally hosted image as my embedded video vs. using one hosted on Amazon S3”.
December 1, 2013 at 3:26 pm #59286carlb930MemberWhat I meant by that is that when I tried to use the same embedded image for my video, when I put that on S3, the video wouldn’t work in protected mode. The video would play just fine, but the image wouldn’t display. So when I placed the embedded image on my WordPress site and used that URL in the shortcode, it works just fine. When I placed the same image on S3 and tried to use that URL in protected mode in the short code, only a small “image missing” icon is seen. When clicking on the small icon, the video still pops up and will play, but I couldn’t get the embedded image to display on my page using S3..the image only displays using my library of images on my WordPress site..and that is what I’m using now.
December 1, 2013 at 10:59 pm #59287wpCommerceModeratorHi, I think I understand what is happening. Lightbox Ultimate doesn’t have any restrictions as to where you can host your anchor image. You can host your image anywhere. All you need is the URL to that image. But the browser also needs to be able to render it. If you set it to “private” Amazon S3 will prevent the browser from loading it (which is why you are seeing the “image missing” icon).
It’s just like inserting an image to a WordPress post/page. You can either load it from your WordPress media library or an external source (As long as the browser can render from that external source).
December 2, 2013 at 2:06 pm #59288carlb930MemberI think I see what you mean. I set the URL for the S3 image as private but I thought the plugin would then allow the image to display in the same way that it allows the video to play even though it is set in protected mode. I guess the plugin works on a protected video, but not a protected image which is embedded. Correct?
When I set the URL for the embedded image hosted on S3 to “Everyone” then it works just fine. Obviously, I’m not concerned with the privacy of the image, only the video in this case.
Please let me know if the plugin does treat the video differently from the embedded image when set to protected mode.
Carl Bradford
December 2, 2013 at 10:59 pm #59289wpCommerceModeratorDoes the plugin treat video differently from the embedded image when set to protected mode?
– yes, which is why we don’t mention in the documentation that the anchor image can be protected as well.
December 3, 2013 at 2:34 pm #59290carlb930MemberThanks, for clearing that up for me….you’ve been very helpful to me on this matter. I sent a client your way for another of your plugins yesterday, and I’ll likely be trying some of your other plugins as well.
-
AuthorPosts
- You must be logged in to reply to this topic.