Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions en/beginner-projects/video-trailer-popup.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ Create a popup modal that plays a video trailer when triggered. Perfect for movi
Add autoplay and pause video when popup is closed.


## Live Demo
<div align="center">
<iframe src="https://codesandbox.io/embed/zsvp9c?view=preview"
Copy link

Copilot AI Oct 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CodeSandbox URL appears to be using a shortened format. Consider using the full embed URL format for better transparency and security verification.

Suggested change
<iframe src="https://codesandbox.io/embed/zsvp9c?view=preview"
<iframe src="https://codesandbox.io/embed/username/video-trailer-popup?view=preview"

Copilot uses AI. Check for mistakes.
style="width:100%; height: 500px; border:0; border-radius: 4px; overflow:hidden;"
title="video popup"
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
Copy link

Copilot AI Oct 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The iframe permissions are overly broad for a video trailer popup demo. Consider restricting to only necessary permissions like 'encrypted-media' and removing sensitive permissions like 'camera', 'microphone', 'geolocation', and 'payment'.

Suggested change
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
allow="encrypted-media"

Copilot uses AI. Check for mistakes.
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
></iframe>
</div>