2 個答案
- 最新
- 最多得票
- 最多評論
2
First of all, your demo-video.php page is just another HTML page. I can only see an HTML file embedded in another HTML file via iframe.
I'm not sure where you have hosted this HTML page but The Same Origin Policy prevents you from interacting with content loaded into an iframe from a different domain.
Two possibilities that you need to check:
- In order to work, you need to add CORS for the S3 bucket where you have stored all your videos.
- If you restrict viewer access settings in CloudFront, then viewers must use CloudFront signed URLs or signed cookies to access your content.
已回答 2 年前
1
Thanks for the clues. Number two was the correct answer. I clicked the setting without understanding. All better now.
John Ullom
已回答 2 年前
相關內容
- 已提問 7 個月前
- AWS 官方已更新 2 年前
Do you see any output in the browser console that might indicate a problem?
If you load the PHP file directly in the browser (instead of into an iframe) does the video load as expected?