[PLUGIN] YouTube Cast Receiver

I tested the youtube connection with chrome browser on pc. I think there is only a problem playing a live stream (radio channel) It buffers the stream 10 seconds and after the buffer is played the stream stops.

So think the app is working only no live stream.

Live streams probably won’t work, because it uses a different streaming protocol (HLS / DASH) which MPD doesn’t support. I haven’t come across a MPD-style headless player that is compatible with such streams, unfortunately.

Oh I send you a pm with the log so than you can check. But a lot of thanks for the support nice to get the app running on volumio 3

Thanks for the log. I’ll have a look at it anyway. Who knows, perhaps I was wrong about the streaming protocol :wink:

should it possible to cast youtube music to volumio with de phone? On chrome it is blocked.

I don’t have YouTube Music for testing, but I don’t think it will work because it is a different app overall.

this happens on 3.010
 this is on 3.010
              ___
                  /\_ \                        __
     __  __    ___\//\ \    __  __    ___ ___ /\_\    ___
    /\ \/\ \  / __`\\ \ \  /\ \/\ \ /' __` __`\/\ \  / __`\
    \ \ \_/ |/\ \L\ \\_\ \_\ \ \_\ \/\ \/\ \/\ \ \ \/\ \L\ \
     \ \___/ \ \____//\____\\ \____/\ \_\ \_\ \_\ \_\ \____/
      \/__/   \/___/ \/____/ \/___/  \/_/\/_/\/_/\/_/\/___/

         Free Audiophile Linux Music Player - Version 2.0

      © 2015-2020 Michelangelo Guarise - Volumio Team - Volumio.org

Volumio Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Welcome to Volumio for Raspberry Pi (5.4.59-v7l+ armv7l)
volumio@volumio1:~$ mkdir ytcr-plugin
volumio@volumio1:~$ cd ytcr-plugin
volumio@volumio1:~/ytcr-plugin$ git clone https://github.com/patrickkfkan/volumio-ytcr.git
Cloning into ‘volumio-ytcr’

remote: Enumerating objects: 1787, done.
remote: Counting objects: 100% (1787/1787), done.
remote: Compressing objects: 100% (1443/1443), done.
remote: Total 1787 (delta 269), reused 1782 (delta 264), pack-reused 0
Receiving objects: 100% (1787/1787), 2.26 MiB | 2.35 MiB/s, done.
Resolving deltas: 100% (269/269), done.
volumio@volumio1:~/ytcr-plugin$ cd volumio-ytcr
volumio@volumio1:~/ytcr-plugin/volumio-ytcr$ volumio plugin install

This command will install the plugin on your device

Compressing the plugin
No modules found, running “npm install”
/bin/sh: 1: /usr/local/bin/npm: not found
Error installing node modules: Error: Command failed: /usr/local/bin/npm install
/bin/sh: 1: /usr/local/bin/npm: not found

/bin/mv: cannot stat ‘*.zip’: No such file or directory
child_process.js:650
throw err;
^

Error: Command failed: /bin/mv .zip /tmp/plugins/ytcr.zip
/bin/mv: cannot stat '
.zip’: No such file or directory

at checkExecSyncError (child_process.js:607:13)
at execSync (child_process.js:647:13)
at install (/volumio/pluginhelper.js:689:9)
at Object.<anonymous> (/volumio/pluginhelper.js:751:9)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)

volumio@volumio1:~/ytcr-plugin/volumio-ytcr$

@dvo, Will this work?

$ sudo ln -s /usr/bin/npm /usr/local/bin/npm

yesssss, that did the trick on 3.0.10

Hi @patrickkfkan,

I have written too quickly that morning !
I have done anothers tests, the playlist works !! and the automatic next song too !! I am so sorry for the misunderstanding !!

So, i have been in error because of anothers bugs :

  1. This morning, seeing someone had that issue, i have moved the volumio timeline bar to the end for see if it will go to the next song without really listen to the music (low volume, my children was near watching TV :slight_smile: ) . I see now that moving the timeline bar has no effect on the playing song, and at the end it come back at 0s and stop moving.it is why i throught it wasn’t working.
  2. Also, When i deplace the youtube timeline, it has no effect on the playing song in volumino. After, when the youtube timline arrive at the end, it come at the time where the song is playing on volumino.
  3. The youtube song are not playing up to the end. The last approximatively 30sec are not playing and it pass to the next song.
  4. I have to test more to see exactly what the matter, but i have seen after playing few youtube songs volumio come back to the initial volumio playlist. I hear the initial playlist but it is the youtube picture on the player. I have to test more, that problem seems absent if the volumio playlist is empty.

Hope it will help.

That’s node, not npm.

Anyway, you should be upgrading this beta version.

When you say “deplace the timeline”, did you mean seeking? You also said you didn’t update your MPD, which is why seeking doesn’t work and the songs got cut off early (I assume you are running Volumio 2.x and not the beta 3.x).

1 Like

that’s the only version that runs smooth at the moment,
so no upgrade for me :slight_smile: and all versions after 3.15 are just x86
updates so why ?

1 Like

So try this, and then reinstall the plugin

@patrickkfkan
worked like a charm like always 
 :wink:

sorry it’s casting it to 2 devices 
 that’s why it has a echo lol
playing goes well , but add to queue doesn’t showup in queue,
but if i press next it will play the next
it will play the whole playlist

1 Like

Yes, i mean seeking.
Yes, i use volumio 2.873
I am gonna to follow your instruction for MPD update and will try again.
Thank you.

EDIT : Your MPD update installation solved my issue. Thank you a lot !

You are adding on the mobile app, right? When you add a video to the queue it should show up as the last item in the queue. The app will add it first, then notify the plugin that the queue has been updated. At least that’s my case - Android, YouTube version 16.14.34

Ok, let me know if you run into problems.

Also reboot after you have updated your MPD.

s8 - 16.14.34 with account and refreshed a few times
 not in queue

The way this plugin works, is that it keeps the Volumio queue unchanged. Everything is shown on the YouTube app.