Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 131 1231151101 ... LastLast
Results 1 to 10 of 1308
  1. #1
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,972

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

    This plugin/app integrates Chromecast players found on your network and let LMS use them as if they were regular Squeezeboxes (they appear as a modified squeezelite instance). It derives form my UPnP/DLNA bridge.

    The stable version is now part of the 3rd party plugin built-in list, so you should find it in the plugins page. 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
    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.

    It should provide pretty much all the features of squeezelite, except synchronization (all you can have is a 2-sec accurate sync start). ChromeCast group of players appear as another LMS player, so it gives synchronization within a CC group

    There are two processing modes

    1- Passthrough
    • In this mode, the audio tracks are simply passed to the ChromeCast player with almost no modification (except a few tweaks for PCM -uncompressed- and flac).
    • Except for PCM tracks, replay gain, fade in/out/in-out will not work
    • Gapless does not work
    • Supported codecs are ogg, mp3, flac, pcm and aac with limitations - result will vary from track to track


    2- Full processing
    • In this mode, the tracks are decoded and resampled (if needed) by the bridge and either sent as uncompressed PCM or re-encoded using flac or mp3
    • This mode provides much better compatibility as the same format is sent to the ChromeCast player all the time
    • Replay gain, fade in/out/in-out are supported
    • Supported codecs are ogg,mp3,aac,flac,pcm
    • There is a special option named "flow" to send all the tracks as a long single stream to enable true gapless and crossfade (you'll lose metadata display on the ChromeCast player)


    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. In any case:

    !! CHECK YOUR FIREWALL STATUS !!

    The Bridge installs a web server on a random port from 49152 (can be configured), up to 32 ports, so your firewall must allow that. If everything seems to work but you have no sound, you propably have these ports blocked to the Chromcast player cannot get the audio. In Windows, add a 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

    Other tips

    With docker you must use 'host' mode network
    Last edited by philippe_44; 2018-08-14 at 10:42.
    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, GGMM E5

  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
    3,972
    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, GGMM E5

  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,601
    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  
    Study/Server - LMS 7.9.2 - Pi3B+/pCP 4.0.0-b5/pi screen/HiFiBerry DAC+/jivelite, 25K library and playlists on WDMyCloud, LMS cache on a USB stick (formatted ntfs).
    Lounge - Pi2/pCP 4.0.0-b5 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Pi3B/pCP 4.0.0-b5 > HiFiBerry AMP+/retro radio
    Garage - Pi3B/Pi screen/HiFiBerry DAC+/pCP 4.0.0-b5 > Edifier R980T
    In car - RPi3B/pCP in AP mode > HiFiBerry DAC+ > car's audio (files on a 2TB USB drive)
    Spares - 1xTouch, 1xSB3, 1xRadio, 1xBoom

  8. #8
    Senior Member
    Join Date
    Apr 2013
    Posts
    182
    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
    182

    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
    3,074
    Before I invest in a CCA does it support 24bit/96 and/or 24/192 FLAC ?
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

Posting Permissions

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