If I enter a full youtube URL copied from the address bar then it doesn't play.
See original GitHub issueBe 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
- Please see the minimal reproduction at https://codesandbox.io/s/react-player-youtube-wedji
Environment
- URL attempting to play: https://www.youtube.com/watch?v=Qtb11P1FWnc&ab_channel=Coldplay
- Browser: Chrome
- Operating system: Tested on MacOS and Ubuntu (20.04)
- jsFiddle example:
Other Information
Does play correctly in the demo.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Good spot! The updated regex for parsing the
channel=
param is incorrectly picking upab_channel=
too.I have a fix. I’ll publish a release in the next couple of days.