[PLUGIN] YouTube for Volumio

Unfortunately our request to google to raise the daily limits, resulted in the API key to be invalidated. This is because we are not allowed to use youtube API to play audio without showing the video.
Bummer.

We are however already looking for an alternative solution.

In the meanwhile we are removing the youtbe plugin from the repository, to avoid confusion of people installing it without it working.
As soon as this is solved we will add it again.

Anybody which want to jump in and help is more than welcome, contatct us via the support page (select business proposal):
volumio.org/contact/

NOTE: The code method and personal API solution are not viable, since they do require advanced skill (we want everybody to be able to enjoy it)

Ok Many thanks @michelangelo !
So, for those who want use the youtube plugin, they have to use the latest version given in this thread and use their own API key: right?

hi everybody

i have a problem with the creation of oauth id on the google developers console.
i follow the instructions in youtube-for-volumio-t6608-160.html
the problem is adding the scope …/auth/youtube.readonly’ needs google validation
and i don’t know what to put in

  • Authorized domains
  • Applications home link
  • Application Privacy Policy link

i create oauth id without …/auth/youtube.readonly but using the generate api key , client id and client secret don’t open the consent screen

thanks for your help

Plungin doesnt work for me. Error is lookink like “No result”
I’m already login with plugin 1.0.1 version.

Anyone have solve od this problem?
Screen Shot 2020-03-22 at 1.00.32 PM.png

You don’t have to send for verification. Just click “save”.

You have to use this plugin: https://forum.volumio.org/youtube-for-volumio-t6608-230.html#p70392. Uninstall the other then install this one.

Yes, I did it - it works. I picked up the versions - it works. I don’t touch the plug :slight_smile:

Same for me :smiley:

I did everything and now plugin works with my oauth.

But it stops playing song approximately in the half.

What i must to do?

Nice info:smiley::

Hi,

Same here, use my own API / credential, the tracks stop approximately at half, but if played again from playlist, it work till the end of the track.

Yeah I have some weird things like this.

1 Like

Hello,

i have installed youtube - Plugin from youtube-api-20191110.zip to use my own account created in Google Developer Console.
The plugin can access to my subscriptions, search and all work’s !
But i cannot hear anything. mpc print’s no play is in course.
The system is a Raspberry PI - 3 with hifiberry.

I have put an auth.json in plugin directory… with this contents:

{“volumio”:{
“client_id”:“xxxxxxxxxx”,
“project_id”:“xxxxxxxx”,
“auth_uri”:“xxxxxxxxx”,
“token_uri”:“xxxxxxxxx”,
“auth_provider_x509_cert_url”:“xxxxxxxxxxxxxxxxxx”,
“client_secret”:“xxxxxxxxxx”,
“redirect_uris”:[“http://127.0.0.1:9004”]}
}

but on WEB - API Plugin settings i set the API – Data too…
On system it write’s a file authToken.js…

What’s wrong ?
Thanks !

Thank you very much Patrick for all the effort to build that workaround. Basically I can connect now to youtube and all my channels and playlists are loaded and displayed. My major issue is that I can not playback the videos. The first frame is displayed but it can not be played. Is there any codec missing? I already played around with the buffer size, but I can not get it working. I use the USB 2.0 Interface.
Did someone face the same problem? Thanks again for the great support.

Hm, still not working / showing “No results”. :confused:

  • Uninstalled the stock version
  • volumio vrestart
  • manually installed the plugin from here, v. 0.1.0 from 24.12.2019
  • Had to abort using Ctrl + C since the installed asked on commandline about enabling the plugin with no obvious way to say yes.
  • volumio vrestart
  • Entered API-Key, Client-ID + -Secret

Did you authorized your device after that? @ google.com/device with the code given by the plugin…

Hi to all!

I used volumio first time in 2016 and it was fantastic. One month ago i resintalled it on my raspberry pi2 with hi-fiDac. All goes well.
Then i struggling a little bit to understand how to install and configure this youtube plugin alongside Patrick Version.

It works, i use the same api process sometimes on other plugins made with laravel.

I agree with Michelangelo maybe this method it’s not the best for end user but it works.

Now there is a great problem though. I tried to play some random songs starting from random searches. And there is the problem. All songs finishing before the 75% of the song. I don’t know if there is a youtube rules but i think so.
I also tried to use tubio app for android. It can stream song played about youtube on a dlna enabled client. And i can stream on volumio.
Also in this case, 2-3 songs played on my tubio app and streamed on volumio stopped at about 75-80% in 2 case on 3.

So youtube stop the playback from ceratain devices like stop the music after 30 minutes if you don’t touch a keyboard button on your pc.

Have you some suggestions?

I also use stream what you hear to stream on dlna from my pc to volumio. But the sound quality goes down dramatically!

Bye
Gabriele

The plugin is not giving me any. The field is blank.

P.s. Oh and I can’t uninstall it completely. The big icon on the main menu always remains.

Try to check On: “Use Default” and save. Then re-check it off. This made me to re-authorize my device with a new code. If this doesn’t work I would try to uninstall then re-install the plugin…

Hi,

If can’t see the code on volumio it’s because you need to configure OAuth 2.0 for TV and Limited-Input Device Applications.

See:

https://developers.google.com/identity/protocols/oauth2/limited-input-device