question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If I enter a full youtube URL copied from the address bar then it doesn't play.

See original GitHub issue

Be sure to search for your issue before opening a new one.

Current Behavior

I have made a minimum reproduction here - https://codesandbox.io/s/react-player-youtube-wedji

If I enter a URL by directly copying from the browser, example: https://www.youtube.com/watch?v=Qtb11P1FWnc&ab_channel=Coldplay then it does not play.

Removing the ab_channel param makes it work.

However it does play correctly in the demo, so I am wondering how can I enable that in my app?

Expected Behavior

Directly copying the URL from youtube should work.

Steps to Reproduce

  1. Please see the minimal reproduction at https://codesandbox.io/s/react-player-youtube-wedji

Environment

Other Information

Does play correctly in the demo.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
cookpetecommented, Nov 23, 2020

Good spot! The updated regex for parsing the channel= param is incorrectly picking up ab_channel= too.

2reactions
cookpetecommented, Dec 8, 2020

Is there a plan to fix this soon? Do you have a time frame for the next release with this fix?

I have a fix. I’ll publish a release in the next couple of days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get a Full Screen YouTube Video Link
Add underscore popup after "watch" in the address bar to get a full screen YouTube video that you can share with students and...
Read more >
YouTube URL Tricks (Link to Specific Time, Embedding ...
... and choose the 2nd option " Copy Video URL at Current Time"Or if you want to know what's going on ... Your...
Read more >
How to Always Show Full URLs in Address Bar of ... - YouTube
How to Always Show Full URLs in Address Bar of Google Chrome [Tutorial] URL : ... Your browser can't play this video.
Read more >
How To Change Custom URL On YouTube 2021 (Desktop ...
If you want to know to change youtube URL on your YouTube channel, this video gives you the simple steps to change your...
Read more >
How to Copy YouTube Video URL at the Current Time
If like me, you share videos all the time at a set timestamp - then this is a shortcut you will need. In...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found