Skip to content

Commit

Permalink
try embed urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ras1 committed Aug 4, 2024
1 parent bf6cf31 commit 3572040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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/watch?v=${v.video_id}`)}
url={props.videos.map(v => `https://www.youtube.com/embed/${v.video_id}`)}
controls={true}
loop={props.repeatVideo}
playing={true}
Expand Down

0 comments on commit 3572040

Please sign in to comment.