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年前
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?