Error on click in Related videos #133
Unanswered
anthonycassol
asked this question in
Q&A
Replies: 1 comment 2 replies
-
huh, seems like a bug. I will look into it. you can override the behaviour for now like this - <YoutubePlayer
webViewProps={{
onShouldStartLoadWithRequest: (request) => {
// your custom handling here
// return false here to stop a unwanted redirection (like clicking on a related video)
}
}}
/> info on how it works: documentation |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hii. I'm having a problem clicking on related videos. Is it possible to disable them?
Error:
TypeError: undefined is not an object (evaluating 'request.mainDocumentURL.startsWith').
Thanks Everyone.
Beta Was this translation helpful? Give feedback.
All reactions