Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 28 12311 ... LastLast
Results 1 to 10 of 1152

Hybrid View

  1. #1
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,305

    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, 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,305
    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
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,305
    Did you use Dev-4 ? It has corrected most of these issues
    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

  8. #8
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,305

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

    Any chance to have tried just the binary on a different machine ? Meanwhile, I'll build a special version for you with logs of what it sees but disqualifies as chromecast devices. Any chance to use this device spy tool or the Linux equivalent (can't remember the name now, but it is in squeeze2upno manual)
    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

  9. #9
    Senior Member
    Join Date
    Mar 2013
    Posts
    652
    @Philippe_44

    I'm installing the dev tools for Upnp on my windows 10 machine now and will see what I can find out.

    Amazingly both my CCA Devices now suddenly show up in LMS...they have not done that all day...
    Even more surprisingly, even the one that is currently streaming from Google Music is showing in LMS...something is wrong with this world!!! Only thing I did was turn on my Windows PC...
    Last edited by CommanderROR; 2015-11-14 at 09:09.

  10. #10
    Senior Member
    Join Date
    Mar 2013
    Posts
    652
    This is interesting...

    I think I might actually have a clue about what's going on...

    Device Spy finds plenty of devices, including the CCA units. However, it also finds a couple of "dead" devices, and some of those carry the same name. Could that be an issue for your Bridge Plugin?

    I've currently got two "Esszimmer" devices and three "Wohnzimmer". I guess they are stored somewhere in network limbo (most likely my Router) and show up even if they have not been connected for a while. I'll try and see if I can remove those listings somehow...


    UPDATE: It's too early to uncork the vintage wine, but it seems like that was indeed the problem. My Fritz Box stores info on former clients, and apparently does not delete it automatically. After I removed the devices that shared the same name as the CCA Players it now seems to work OK. I'll keep you posted if this sticks or falls apart!

    UPDATE2: It looks like AutoPlay ist also working. This is great, since it adds a much-needed feature to CCA!

    Thanks philippe_44 you are a true hero!
    Last edited by CommanderROR; 2015-11-14 at 09:36.

Posting Permissions

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