Headless remote music player using rasplex, controlled by PLEX app on tablet or web app?

Hi guys, I’ll describe what I want to achieve… Thought I’d get a solid design concept together before buying parts.

Intention:

Raspberry Pi based Plex Client to be hidden in a kitchen cupboard with no screen or keyboard / mouse. This Pi is intended to be the audio source for kitchen speakers. it sits on my LAN, so all control will be over TCP/IP.

I want to control this pi using my tablet / phone PLEX app, or my PMS web app on a laptop, just as if I was playing music locally using the tablet / phone / laptop, but the audio output comes from the Pi in the cupboard. Ie: so the app I’m using is interacting with the player in the cupboard rather than the local device.

Is there any way of achieving this in a nice seamless manner, so my family can get on with it easily? ie, pick up the tablet, select and play artist / album / playlist, job done.

I also run Kodi and OSMC on TV’s, but I’d love to use PLEX for this application, as I think it’s user interface for music is superior to Kodi.

Ideals:

I only want to have the commands (“play this album”; “volume up / down”; “stop”; “play this playlist”; etc…) travelling across the WiFi to the client Pi, and then the Pi talking directly to the PMS to stream the media directly across my wired network, keeping traffic off the Wifi, and minimising the amount of hops the data has to take.

Network Topology:
Gigabit Ethernet switch is the heart of my network and connects via CAT6 cable to:

  • Raspberry Pi in cupboard
  • Plex Media Server computer
  • Wireless Access Points
  • NAS
  • Router

I have installed a few ceiling speakers in the kitchen diner, wired back to this same cupboard, ready for three amplifiers to operate from this source. in the cupboard I’ll have three mains switches, and three volume controls to keep it simple to use. so initial setup for the evening will require visiting the cupboard, but general volume and playing controls will be from the remote device.

Bodge-tastic, non favourable options:

One horrid option I would hate to try to make work (and be family friendly), would be to install Raspbian with desktop gui on the Pi, have chromium start up automatically, and make the PMS web page the home page… then remote desktop to the Pi to use the PMS web interface… but I can see this just being a nightmare, and very un-user-friendly.

Another not so great option is to install Kodi / osmc on the Pi, and “cast” to it form the tablet app (if i can make Kodi / osmc accept casting from PLEX that is). I don’t like this option as it requires the data to take the following path:

  • from PMS
  • via CAT6
  • to Switch then out via
  • CAT6
  • to the WAP
  • then via WiFi
  • to Tablet
  • via Wifi
  • to WAP
  • then via CAT6
  • to Switch
  • and once more via CAT6
  • to the Raspberry Pi

Instead of going directly from the server to the player via wired network.

Traffic-wise, the data would be going twice across the network, which is an inefficient use of resource.
The WiFi links in the chain are also a weak point that can cause hiccups.

Many thanks, Scott.

I guess, in a nutshell, what I’m trying to ask is:

Is there an easy way for one plex client to control another plex client?

Cheers, Scott

I’ve been looking at Plex Companion: https://support.plex.tv/hc/en-us/sections/200276908-Plex-Companion

You can “Fling” (I guess that’s Plex for Cast) to the target, however, it relies on the target client having a screen to navigate to the play controls if I wanted to pause for example. so I’m not sure it’s ideal…

Cheers, Scott.

Crikey… further reading demonstrates it may be possible to achieve just what I want to do… https://support.plex.tv/hc/en-us/articles/201165566-Controlling-Flung-Media

So I guess now the question may be, can Rasplex be used to Fling media to?

Yes, you can use any other Plex app to control your headless Rasplex, it works very similar to casting to a cromecast.
The only thing you might not be able to control its the volume from what I remember about some issues other people had. But if I also remember correctly its a bug so it will likely change or gone by now.

You can also find other projects were people added a small screen just to know what the client was doing or reproducing.

Hi dude,

Thanks a lot for the help there!

I have a spare R Pi2 that i’ll try this out on.

I guess a small screen hidden in the cupboard would be a good idea from a maintenance point of view.

How exciting - near to having audio in the kitchen!

Cheers, Scott

Controlling volume may work with some apps. I know it works with the iOS mobile app.
I installed just the same solution a while back, although at the time it was intended to plug in a video projector from time to time as well.

If I had to build the same again for audio-only, I’d go with a Chromecast Audio.

Thanks for that. We’re all Android here,so I’ll have to see of the volume control is an issue or not by simply trying it.

Trouble with the chromecast is it’s only going to play what my phone streams to it, doubling up my network traffic. Plus it only works on WiFi, which is a shame as I have ran Gigabit speed CAT6 Ethernet cable to the location.

Micro SD card arrives for this Raspberry Pi in a couple of days, so will get Rasplex straight on it then and give it a try!

Cheers, Scott

Hoorah!

The SD card arrived today, so I tried it, and it worked like a charm, including volume control from my Android phone.

Now to buy amplifiers, and a hifiberry board, and we’re in business!

Thanks for the help guys!

Hi guys, I’ve written up my little project here:

www.scottbouch.com/remote-raspberry-pi-music-player-rasplex.html

Cheers, Scott.

1 Like

Nice projects @PLEX6FC !

This one might be a little boring compared to burning the garden with a jet propelled lawnmower or an army of daleks, but great blog

Very nice. I’ve been diving into hifi audio, and Plex does offer music streaming of FLAC lossless files too. Other software out there is called Roon, but it’s pricey, and Plex is already paid for.

I got a raspberry pi 3, and Allo Boss DAC hat for the conversion. At the moment I’m using Moode player on the Pi. Works good, but it’s more software, another GUI. It would be nice to cast from Plex. Perhaps rasbplex would be a better solution - but I’m not sure if it’s compatible with this DAC.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.