Skip to content

Commit

Permalink
revert embed, try removing nocookie host
Browse files Browse the repository at this point in the history
  • Loading branch information
ras1 committed Aug 4, 2024
1 parent 3572040 commit c9b67fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function Player(props) {
<ReactPlayer
className='player'
ref={props.playerRef}
url={props.videos.map(v => `https://www.youtube.com/embed/${v.video_id}`)}
url={props.videos.map(v => `https://www.youtube.com/watch?v=${v.video_id}`)}
controls={true}
loop={props.repeatVideo}
playing={true}
Expand All @@ -31,7 +31,7 @@ function Player(props) {
youtube: {
playerVars: {},
embedOptions: {
host: "https://www.youtube-nocookie.com",
// host: "https://www.youtube-nocookie.com",
}
},
attributes: {},
Expand Down

0 comments on commit c9b67fd

Please sign in to comment.