It has completely stopped working
Hi Team,
Your library is really great.
I had been using your service conveniently, but it completely stopped working a few days ago. Could you please let me know if there is any solution or workaround? I would appreciate your help.
Thank you.
I ran into this exact issue. It was really serious. No detailed exception was thrown.
For me, the workaround now is use v12.1.0 instead of 12.1.1
implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:12.1.0'
I ran into this exact issue. It was really serious. No detailed exception was thrown.
For me, the workaround now is use v12.1.0 instead of 12.1.1
implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:12.1.0'
Thank you for your response. After switching to version 12.1.0, playback is now working correctly. I'll try this for now.
Confirmed, going back to 12.1.0 is working correctly, just to specify the isue, I can see two lines of problems with chromium:
2025-06-19 11:29:02.646 4086-4086 chromium I [INFO:CONSOLE:187] "Unrecognized feature: 'web-share'.", source: https://www.youtube.com/s/player/9fe2e06e/www-widgetapi.vflset/www-widgetapi.js (187) 2025-06-19 11:29:02.653 4086-4086 chromium I [INFO:CONSOLE:196] "Uncaught Error: Invalid video id", source: https://www.youtube.com/s/player/9fe2e06e/www-widgetapi.vflset/www-widgetapi.js (196)
2025-06-19 10:21:56.160 4168-4168 chromium com.~~~~~.~~~~~ I [INFO:CONSOLE:187] "Unrecognized feature: 'web-share'.", source: https://www.youtube.com/s/player/9fe2e06e/www-widgetapi.vflset/www-widgetapi.js (187)
2025-06-19 10:21:56.191 4168-4168 chromium com.~~~~~.~~~~~ I [INFO:CONSOLE:196] "Uncaught Error: Invalid video id", source: https://www.youtube.com/s/player/9fe2e06e/www-widgetapi.vflset/www-widgetapi.js (196)
I ran into this exact issue. so i use manage cookie and webstroage like this
delay(3000L) val cookieManager = android.webkit.CookieManager.getInstance() cookieManager.removeAllCookies(null) cookieManager.removeSessionCookies(null) cookieManager.setAcceptCookie(false)//i use true but it's make same issue so i use false cookieManager.flush() WebStorage.getInstance().deleteAllData() println("cookie clear") delay(4000L) println("is running?") //todo refresh
it works my project so i used it. but sometimes make same issue.
Confirmed, going back to 12.1.0 is working correctly, just to specify the isue, I can see two lines of problems with chromium:
2025-06-19 11:29:02.646 4086-4086 chromium I [INFO:CONSOLE:187] "Unrecognized feature: 'web-share'.", source: https://www.youtube.com/s/player/9fe2e06e/www-widgetapi.vflset/www-widgetapi.js (187) 2025-06-19 11:29:02.653 4086-4086 chromium I [INFO:CONSOLE:196] "Uncaught Error: Invalid video id", source: https://www.youtube.com/s/player/9fe2e06e/www-widgetapi.vflset/www-widgetapi.js (196)
How can I fix this error?#
I have the same error but randomly :
2025-06-19 10:21:56.160 4168-4168 chromium com.~~~~~.~~~~~ I [INFO:CONSOLE:187] "Unrecognized feature: 'web-share'.", source: https://www.youtube.com/s/player/9fe2e06e/www-widgetapi.vflset/www-widgetapi.js (187) 2025-06-19 10:21:56.191 4168-4168 chromium com.~~~~~.~~~~~ I [INFO:CONSOLE:196] "Uncaught Error: Invalid video id", source: https://www.youtube.com/s/player/9fe2e06e/www-widgetapi.vflset/www-widgetapi.js (196)
I use the version 12.1.0 yet and yesterday for a while stopped to work and after it started working again without me doing anything. Today, for some reason, it stopped works again.
Ps. I'm sure about the videoId
Edit: It started working again without me making any changes, I'm afraid the problem might be coming from YouTube.
Hi, thanks for reporting this issue. I can see the same happening in the sample app. Nothing change in the library, this means that something changed on YouTube's side. This is strange since changes in the IFrame Player should not affect the library.
In the sample app everything works fine with the "simple example", but not with the "complete example", so there must be something there.
I will try to take a look in the evening, but if you can please help debugging the issue in the meantime.
According to #1224 this is caused by onReady not being called when automatic initialization is used.
Hey @PierfrancescoSoffritti,
Same issue here ! For me, it's not working on a fresh install, even after restarting the app.
But when clearing the cache and removing data, the player is initializing correctly !
It looks like sometimes the videoId is undefined in the IFrame Player. This was caused by #1169 .
These are the workarounds until I release a fix:
- Pass the videoId when initializing the player, like
youTubePlayerView.initialize(youTubePlayerListener, false, iFramePlayerOptions, "videoId") - Downgrade the library to version
12.1.0.
Sorry for this issue, it slipped through code review.
I have landed a fix in dev, I will close this issue once i release a new version on maven
Version 12.1.2 is now released, the issue should be fixed :)