Video keeps pausing after 1 second
Closed this issue · 2 comments
darias08 commented
Hello,
I have the the prop for play
to true and it keeps pausing the video every second. Here's a sample of my code how I have it set up.
<YoutubeVideos
apiKey={YOUTUBE_API_KEY}
videoId='KVZ-P-ZI6W4'
play={true}
style={{alignSelf: 'stretch', height: 250}}
/>
darias08 commented
Just to update this post:
I see where the error is coming from when I console.log
the error. It's saying UNAUTHORIZED_OVERLAY
every time I press play on the video and it goes back to pause after 1 second.
darias08 commented
After searching. I found what was causing as mentioned in the readMe page. I didn't know that having a view
component within the youtube player causes it to pause the video.