Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 101 1231151 ... LastLast
Results 1 to 10 of 1005
  1. #1
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    2,822

    Announce: CastBridge = integrate Chromecast players with LMS (squeeze2cast)

    This is an announcement of a plugin that integrates Chromecast audio devices with LMS so they behave like a normal player (squeezelite). It is largely derived from my other plugin UPnPBridge. It contains 2 parts

    - a Perl LMS plugin which just here for installation, managing the configuration file and start/stop of the bridge application runtime
    - the bridge application which is the proxy between the 'Cast' side and the LMS side. It exists for Windows, Linux (ARM, x86, x64) and OSX. It does not have to run on the LMS computer, any computer on the same network will work, but the auto installation will use the same machine.

    The stable version is now part of the 3rd party plugin built-in list, so you should find it in the plugins page, under the name "Chromecast Bridge" (NB: for upgraders from early 0.1.0.0 version please erase your configuration file and generate a new one)

    If you want to test the development version (there is not always one on-going), just add the following repository

    Code:
    development version: http://downloads.sourceforge.net/project/lms-to-cast/dev/repo-sf.xml
    stable version http://downloads.sourceforge.net/project/lms-plugins-philippe44/repo-sf.xml
    Go to the 'Chromecast Bridge' settings to check but it should work, no parameter tweaking is normally needed (it's more simple than UPnP). It will install the bridge application on the LMS machine and run it.

    NB: A port is used to open a webserver (49152 by default, but it might vary up to 49162). Under Windows, you might have a popup (only the very first time the application is started) asking to allow squeeze2cast-win to access your network. If not and if players are detected and seem to play but you have only silence, go under c:\programdata\squeezebox\cache\Installedplugins\p lugins\castbridge and launch squeeze2cast-win.exe, or edit your firewall parameters to allow this program to run - you only need to do that once. In all cases:

    !! CHECK YOUR FIREWALL STATUS !!

    There is no gapless (I don't think Cast supports it) nor smart transition. Don't try synchronization with other players, it will not work and have unpredictable results. Synchronized start is possible, but don't try to keep synchronization during playback. I hope that when Google release its synchronization mechanism, I'll be able to use it

    [edit 2016-01-10]: versions starting 0.2.x.x handle each ChromeCast group of players as just another LMS player, so it gives synchronising within a CC group.
    [edit 2016-01-23]: under Windows, if everything seems to work but you have no sound, you *must* add a firewall rule authorizing squeeze2cast-win.exe or go into C:\ProgramData\Squeezebox\Cache\InstalledPlugins\P lugins\CastBridge and launch *once* squeezecast-win.exe where you'll be prompted for authorization
    Last edited by philippe_44; 2016-12-18 at 22:00.
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express

  2. #2
    Senior Member
    Join Date
    Mar 2013
    Posts
    652
    Thanks for attempting this. I'm still having some issues here...my LMs Log keeps reporting this: [15-11-13 09:07:53.7618] Plugins::CastBridge::Squeeze2cast::beat (171) crashed ... restarting over and over on Linux (Debian ARM) using the ARMv6_hf binary. I'm off to work now, will test more later today.

  3. #3
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    2,822
    Quote Originally Posted by CommanderROR View Post
    Thanks for attempting this. I'm still having some issues here...my LMs Log keeps reporting this: [15-11-13 09:07:53.7618] Plugins::CastBridge::Squeeze2cast::beat (171) crashed ... restarting over and over on Linux (Debian ARM) using the ARMv6_hf binary. I'm off to work now, will test more later today.
    Are you using a raspi ? I'm doing my tests on a B, but LMS is not running on it, just the squeeze2cast-am6hf binary. I've tried standalone on an Odroid C1, a raspiB+ and on a Cubie2 that runs LMS. All worked
    Last edited by philippe_44; 2015-11-13 at 01:30.
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express

  4. #4
    Senior Member
    Join Date
    Mar 2013
    Posts
    652
    It's an Odroid U3. Strangely it worked once (but only showed my FireTV, not the Chromecast Audio devices) but then suddenly stopped. I'll try it again once I get home.

  5. #5
    Senior Member
    Join Date
    Mar 2013
    Posts
    652
    OK, back home now.

    So...the Plugin seems to load fine, it also finds three devices ,my Amazon FireTV and two devices it just calls "Hash...xxxx"which should then be the CCA units.
    Sadly, it only shows my FireTV as Player in LMS an still spams the LMS log with "crashed - restarting" messages.

    [15-11-13 13:10:25.7510] Plugins::CastBridge::Squeeze2cast::beat (171) crashed ... restarting
    [15-11-13 13:10:37.3794] Slim::Web::JSONRPC::requestMethod (443) request not dispatchable!
    [15-11-13 13:10:37.4194] Slim::Web::JSONRPC::requestMethod (443) request not dispatchable!
    [15-11-13 13:10:37.4300] Slim::Web::JSONRPC::requestMethod (443) request not dispatchable!
    [15-11-13 13:10:37.4368] Slim::Web::JSONRPC::requestMethod (443) request not dispatchable!
    [15-11-13 13:10:37.4486] Slim::Web::JSONRPC::requestMethod (443) request not dispatchable!
    [15-11-13 13:10:40.4814] Plugins::CastBridge::Squeeze2cast::beat (171) crashed ... restarting
    [15-11-13 13:10:44.3810] Slim::Web::JSONRPC::requestMethod (443) request not dispatchable!
    [15-11-13 13:10:44.4324] Slim::Web::JSONRPC::requestMethod (443) request not dispatchable!

    Something must be missing on my Setup I guess. Or maybe the Players are interfering with each other? Squeeze2Cast Log looks like this:

    [13:15:32.103885] main:1252 Starting squeeze2cast version: v0.1.0.0-dev-2

    [13:15:32.104080] slimproto_loglevel:942 slimproto change log
    [13:15:32.104109] stream_loglevel:293 stream change log
    [13:15:32.104135] output_mr_loglevel:316 output_mr init 3
    [13:15:32.104160] decode_init:125 init decode, include codecs: exclude codecs:
    [13:15:32.104181] WebServerLogLevel:144 webserver change loglevel 3
    [13:15:32.104205] main:1290 Buffer path /tmp
    [13:15:32.159495] uPNPInitialize:841 uPNP init success - 192.168.178.54:49152
    [13:15:32.159589] uPNPInitialize:852 ControlPoint registered
    [13:15:32.159615] uPNPInitialize:863 WebServer enabled
    [13:15:32.159638] uPNPInitialize:874 VirtualDir set for Squeezelite
    [13:15:32.159658] uPNPInitialize:891 Callbacks registered for VirtualDir
    [13:15:36.883624] CallbackEventHandler:583 Answer to uPNP search -1306523000
    [13:15:36.883650] CallbackEventHandler:583 Answer to uPNP search -1307571576
    [13:15:41.826354] CallbackEventHandler:583 Answer to uPNP search -1306521264
    [13:15:41.826379] CallbackEventHandler:583 Answer to uPNP search -1318057264
    [13:15:47.000188] UpdateMRThread:657 Begin Cast devices update
    [13:15:47.037451] UpdateMRThread:744 Updating configuration /var/lib/squeezeboxserver/prefs/castbridge.xml

    Retarting Squeeze2cast after crash: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/CastBridge/Bin/squeeze2cast-armv6hf -Z -I -f /var/log/squeezeboxserver/castbridge.log -d all=debug -x /var/lib/squeezeboxserver/prefs/castbridge.xml
    [13:15:49.029745] main:1252 Starting squeeze2cast version: v0.1.0.0-dev-2

  6. #6
    Senior Member
    Join Date
    Mar 2013
    Posts
    652
    OK, some progress here:

    I pulled the plug from my FireTV, and then the ChromeCast devices showed up as players. Apparently the bridge tries to use FireTV as a CC, fails and then crashes.
    Despite that success (workaround for now, will need to find a way to make the Plugin ignore my FireTV) I could not get the CCA to play. It starts and then immediately stops again.

    I then used TuneIn on my Phone to Cast to the CCA in the dining room, which worked perfectly. When I tried to connect with LMS again it failed to show the CCA devices completely. It scans for them, but comes up empty. Will keep trying!

  7. #7
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    2,013
    Installed on Win 10 LMS, has been working flawlessly for the last 6 hours, apart from no replaygain and no gapless, it behaves just like any other Squeezebox.

    I started a shuffled playlist using the web GUI, controlling volume, skip track etc. with SqueezeControl app, on my Android phone, and using same app on my Nexus tablet as a display, 54 tracks in and still going strong.

    Haven't tried to sync.

    Many thanks..
    Attached Images Attached Images  
    LMS 7.9 on a Raspberry Pi 3/piCorePlayer 3.10, playlists and LMS cache on a USB stick, 25K+ music library on a WD MyCloud network drive,
    Rasberry Pi 2 > piCorePlayer 3.02 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Raspberry Pi 3/piCorePlayer 3.10/HiFiBerry DAC+ > Cambridge Audio Minx 5 (study)
    1 x Boom (dining room) - 1 x Radio (garage) - 1 x Touch (display and controller only) - 1 x SB3 (spare)

  8. #8
    Senior Member
    Join Date
    Apr 2013
    Posts
    141
    I have two Amazon Fire Tvs and they both showed up in LMS. I tried playing music to them and it didn't work and then it caused my CCA to dissappear as well. I restarted CastBridge and my CCA is working again. I have just turned the Amazon Fire's off in LMS but it would be great if they didn't show up if they aren't going to cooperate. Also, it I have to make sure whatever app I am casting from is fully disconnected before using CastBridge as it won't just take over the CCA when I switch to it. It seems switching between apps causes problems as I now have to restart the bridge to get my CCA to show up again in LMS. It's a bummer that these things can't do gapless, I could have sworn that gapless worked with Google Music but I just tested again with some live concerts I have uploaded and sure enough there are small perceptible breaks between the tracks. Looks like I wont be replacing any of my squeezeplayers with more CCA's just yet.

  9. #9
    Senior Member
    Join Date
    Apr 2013
    Posts
    141

    Airplay working with the Chromecast?

    Has anyone tried airplay yet using one of the shairplay plugins? I haven't yet tried to install that plugin on my Windows LMS but am curious if anyone else has and if it is working with the CCA.

  10. #10
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    2,397
    Before I invest in a CCA does it support 24bit/96 and/or 24/192 FLAC ?
    Vortexbox LMS 7.9 music on QNAP TS419p via NFS iThingys/iPeng/Tablets
    Living Room - SB3 -> Onkyo TS606 - > Celestion Ditton F20s - Zone 2 -> Sony TA FE 320 -> Sennheiser RS 130 & B&W P7
    Office - RPi -> Sony TA FE320 -> Celestion F10s / SB3 -> Onkyo CRN 755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - SB Touch -> Topping TP21 -> AKG Headphones Bedroom (TV) - Amazon Fire TV (SB Player) -> Topping TP20 -> Wharfedale Modus Cubes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •