Skip to content

Commit 79ca638

Browse files
committed
try fix youtube video error 153
1 parent 6fbf6dc commit 79ca638

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/MediaSlider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export const MediaSlider: React.FC<MediaSliderProps> = ({
161161
src={`https://www.youtube.com/embed/${ytId}?rel=0&playsinline=1&mute=1&fs=0&enablejsapi=1${autoPlay ? "&autoplay=1" : ""}`}
162162
title={current.title || "Trailer"}
163163
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
164+
referrerPolicy="strict-origin-when-cross-origin"
164165
// Native fullscreen intentionally disabled to use custom control
165166
ref={(el) => {
166167
if (el && autoPlay) {

0 commit comments

Comments
 (0)