Closed vpzomtrrfrt closed 4 years ago
The CloudFront URL with just http instead of https seems to work. There must be some issue with TLS/SSL....
I've seen this behavior. You need to modify your CloudFront endpoint to not require any request headers OR pass the necessary request headers (which requires AVPro Video version 2.0.) Either technique should resolve the issue.
What request headers would be required? Is it not passing Host?
It depends on how you have things configured on the CloudFront side. If you're using the AWS default policies, it will be expecting an origin and access-control-request
Depending on your needs, you'll either need to send the necessary headers (which requires AVProVideo 2.0) or set up your own custom Cache Policy that doesn't require any headers be present (but don't do that if you're trying to restrict loading the videos to just your app!)
More info can be found here: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html
Note that I have no affiliation with Amazon or Renderheads, just trying to be helpful. 👍
I wouldn't expect cache/origin policies affect required headers, but I don't really need headers passed anyway.
It still doesn't work even after changing the policies
@jrjones @AndrewRH We'll experiment with this more and report back, that said, big thanks for being super helpful!!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. If you wish to continue this issue, then please create a new issue as we do not monitor closed issues.
(Windows 10.0.18362, Unity 2018.4.24f1, AVPro Video 1.11.4)
Loading this video hosted on S3 works fine: https://vrigami.s3.amazonaws.com/CnkN0KNxpafGM2NzGBr5hDBP4Iv1ScN3.mp4
But trying to use this CloudFront distribution pointed at S3 doesn't: https://d3pk9p2ot72weq.cloudfront.net/CnkN0KNxpafGM2NzGBr5hDBP4Iv1ScN3.mp4
This vague error is logged:
The two links download the same file, so I don't know what would be different that's tripping up the video player