jakiestfu / Youtube-TV

A small, slick, library independent YouTube User/Playlist player
https://github.com/jakiestfu/Youtube-TV#demos
205 stars 125 forks source link

YouTube device support message #44

Open racafe opened 9 years ago

racafe commented 9 years ago

It appears that YouTube is upgrading to a new version which is not going to be supported with this plugin, does anyone know how to solve this?

youtube

HeathNaylor commented 9 years ago

This is not accurate, I just configured this plugin today with no issues at all, can you post a gist of your code? Seems like something in your options is off.

racafe commented 9 years ago

@HeathNaylor I actually put the screenshot from the demo: http://jakiestfu.github.io/Youtube-TV/demos/default.html

Check it out, it works but it preppends to the list a message that is not going to be supported with the new version of YouTube API.

HeathNaylor commented 9 years ago

Interesting, mine is working in a production website right now, I specified a string for the playlist id.

beweinreich commented 9 years ago

I'm getting same thing on production website.

Looks like YouTube decided to phase out v2 of their API today. See here: http://youtube-eng.blogspot.com/2014/03/committing-to-youtube-data-api-v3_4.html

fnezrick commented 9 years ago

yes im seeing this too... it is even prepending on the demos on github: http://jakiestfu.github.io/Youtube-TV/demos/default.html

Does anyone have a fix for this? or is it time to move to a new plugin? Thanks!

beweinreich commented 9 years ago

There's no quick fix. The code would have to be updated to use the V3 API.

I might have some time this weekend to submit a pull request, but if there are any brave JavaScript developers who want to tackle it first... Do it!

bradleywest92 commented 9 years ago

Hi guys, did you produce a fix for this at all?

HeathNaylor commented 9 years ago

I would just like to point out that mine is still fine in production, I am using the playlist option.

bradleywest92 commented 9 years ago

Is that without the other video coming first Heath? If so would love to see your one in action if you didn't mind?

lilithebowman commented 9 years ago

I did a 10-second fix to our production website with the same issue by editing the iframe in-browser. (For our case the settings were all the defaults anyway.)

Removing all of the settings and just putting youtube.com/embed/--insert your id here-- worked.

Not sure what to do about the settings other than update them to v3 format as well (if they're supported).

[edit] Sorry, looks like I misunderstood the scope of this tool and where the error lies. Yes, updating this to the v3 API will be involved. I'm trying to figure it out right now.

The way this plugin works would have to change. Each user would have to add their application at the Google Developer's Console: https://console.developers.google.com/project

Then we could update this JS to interface with the new API like so: https://developers.google.com/youtube/v3/code_samples/javascript#my_uploaded_videos

mrstork commented 9 years ago

Try this fork https://github.com/Giorgio003/Youtube-TV It uses the v3 api so you will need to enter your google developer key, but solves the issue

HeathNaylor commented 9 years ago

We have too many forks. @jakiestfu can we get a commitment from you that your branch will be updated and considered best?

Giorgio003 commented 9 years ago

Chiming in here, I did managed to tackle API V3 a few weeks ago which does require an API Key to use. However you can obtain one for free (https://developers.google.com/youtube/v3/getting-started) which gives a generous 50 million token requests per day.
Should be plenty for most projects however I look to optimize this further by removing some unused variables within Youtube-TV, and possibly introduce some caching to prevent some repeated token requests on previous data.
Apart from my changes to documentation, responsiveness, additional 'light' theme, etc. There is still some other issues I wish to attend to before pushing; Cleaning up the code by optimizing and removing unused code (ie. loadAds function is never used as the ads integrated into the Youtube player).
I was going to mention the visible key however referrers seem to be working again for browser applications key allowing you to limit by domain or IP preventing any external use.
As @HeathNaylor mentioned too many forks can get confusing overtime, I can PR into @jakiestfu 's repo if he's interested, or if not I created a reference markdown while I was converting from APIv2 to APIv3 (APIv2-3_Reference.md it might miss some last minute tweaks but it contains all the variable and url name changes). Either way I have enabled the issue tracker on my fork in case anyone comes across bugs that need to be squashed.

stevebrush commented 9 years ago

Thanks so much Giorgio003! Your work saved me many hours.

bachors commented 9 years ago

I've changed to v3 http://ibacor.com/download/demo/youtube-channels/